Some Bits: Nelson's log

9 posts in June 2021

Youtube TV and ads

I’m finally trying to go full cord-cutter and use Youtube TV instead of DirecTV and/or Comcast cable with a TiVo or other DVR. So far so good, sorta, the ads suck.

Youtube TV is a great product. $65 in the US gets you access to about 100 channels, mostly high quality content. Also you get local TV although you do have to prove to Youtube where you live (via browser geolocation, lol.) You can watch 3 streams at once. If you pay extra you can get premium channels, 4K streaming, offline viewing, more than 3 streams at once. The only real drawback I’ve seen so far is that it’s stereo audio only although they’re promising to finally add 5.1 eventually. (Youtube itself has this same problem; wtf, folks?) There’s one minor problem which is Roku officially doesn’t support Youtube TV anymore (they’re having a contract dispute), but Google solved that problem by shoving Youtube TV into the main Youtube app for now.

The bad thing is the ads. Youtube TV is full of ads. I watched a 48 minute episode of Top Chef last night and was forced to watch 10 minutes of ads, mostly in 2 minute blocks. Unskippable. The ads themselves weren’t too bad (and I have ad personalization turned off). But the volume was at least 10dB higher than the show content. And did I mention the ads were unskippable? Just awful. A way worse experience than pirating the show or watching on a traditional DVR where you can fast forward over the ads.

And that’s the confusion. If you watch Youtube TV shows via Video-on-Demand (VOD), the ads are unskippable. And placed later as separate content from the show. If you watch a show via DVR (a recording) you record the ads as the show is broadcast. But you can fast forward over them.

Youtube TV is making a distinction between “a show you have recorded” vs “a show we pulled from a library for you”. I’m sure this makes perfect sense contractually. Technically it’s nonsense. At least, I hope YouTube isn’t making a specific digital recording of a show just for me when I told it to record it. Surely they’re making one recording and sharing it to everyone? Maybe not; Sling’s exemption from copyright licensing relies entirely on getting a separate copy of the stream for every viewer, I don’t know how they record them. Anyway that’s all legal trickery garbage.

The real confusion is a UI problem. All the Youtube TV UI gives you is “add to library”. That both puts any VODs the show has in a special Library view for you (for convenience) and also starts DVR recording any new episodes that are broadcast. So when you first add Top Chef it looks like you already have all the episodes! But only VOD versions; you have to wait until something is broadcast to get the DVR version, the one you can skip ads in. Shows end up being twice in your Library, one VOD and one DVR, and you can choose which version you want. It’s pretty clumsy. Also there’s rumors that some shows / channels force you to watch the VOD version with its ads but I haven’t’ experienced that yet.

It’s all so dumb. The VOD experience is better in absolutely every way. Except for the ads, which Youtube and the content providers have chosen to be super aggressive about. (Apparently this varies show by show). I sort of accept that I should be somehow paying “extra” for VOD access, it is pretty valuable to have 10 years of a show all available to you at once to stream. OTOH I’m already paying $65/mo for access to this product and the VOD playback is consuming no resources, so why do I get punished by being forced to see ads? Mostly I’m irritated by the overlap with the DVR model.

I wonder how long this DVR exception will last. It’s clearly in both the content provider’s interest and Youtube’s interest to force me in to the VOD ad model instead. For that matter I should feel lucky the mute button still works in VOD ads.

Here’s what really worries me; the VOD ads are way more valuable. They can be updated any time. They are personalized to me via my YouTube login. And they are unskippable. I suspect these ads are worth 10x the value to the advertiser that a normal broadcast ad is worth. Expect this kind of ad to be the future, particularly as more people get rid of personal DVRs and cable subscriptions in favor of the clearly superior streaming on demand.

BTW I tried a little technical wizardry to block the Youtube TV VODs. In particular switching to AdGuard DNS. Didn’t work; I suspect Youtube serves all the video streams from the same DNS name. A filtering proxy or an aggressive firewall could probably block the VOD ads with packet inspection although SSL makes that harder. But even so there’s no reason the app would let you get away with it; it seems quite likely the Youtube TV app would just refuse to let you watch anything if it can’t force the ads into your eyeballs.

A little birdie tells me another way to skip Youtube TV ads is to stream on a computer with ad blockers installed. The fancier ones can block the VOD ads while still showing the show. The problem then is you need to get the video to your TV screen. Chromecast won’t work for that, because it just sends the URLs over to be played so you aren’t watching your computer’s ad-free stream. HDMI or video mirroring will work. But this all requires you have a PC in the loop. My goal here is to get the TCL Roku TV to do everything, no PCs involved. The downside is Roku isn’t about to let you install an ad blocker.

Starlink Dishy: getting some deeper status

This blog post contains details on some hidden status method from Starlink’s user terminal, including what satellite it’s currently talking to.

I’ve been hacking around a bit with Dishy, the Starlink user satellite terminal. They provide some nice consumer tools for basic status: am I connected, what kind of bandwidth am I getting, a basic graph of history of outages. And a new feature, a fancy 2d map of where it thinks obstructions are (ie: the trees around you).

Behind the scenes Dishy implements a gRPC server with lots and lots of data. And happily the server supports reflection, so you can interrogate it for features. They keep adding new features! Mostly I’ve interacted with this using the starlink-grpc-tools package; it hides all the gRPC and just provides some command line programs for dumping data to CSV, InfluxDB, whatever. It’s quite nice! But it’s limited in that it only supports some of Dishy’s methods. There are others!

gRPC software

Ironically I have no experience working with gRPC. The hacking tool of choice seems to be grpcurl which lets you invoke methods via the command line. That’s a little low level so I am using grpcui which gives a simple web UI to gRPC servers that support reflection. There’s lots of other options for a tool like that btw.

So, what other gRPC methods are hiding in there?

dish_get_context

First try is a jackpot; dishGetContext. It mostly returns some stuff in other methods; device_info, obstructions, etc.

Update: lol that didn’t last long. Now when I call the method I get “PermissionDenied”, I think because of a firmware update. It was working on firmware a4908729. It’s now failing on firmware 4990ce8d.

But it also returns a bunch of information that looks to be about which satellite Dishy is currently talking to! It will tell me my cell ID (shouldn’t change?), a satellite ID, a gateway ID, and a “seconds to slot end”. It looks like Dishy swaps satellites every 15 seconds. The satellite IDs correlate pretty well with what a satellite tracker says. There’s also a “backup beam” that turns on sometimes after packet loss. It’s all super cool!

device_info	
id	ut01000000-00000000-000XXXXX
hardware_version	rev1_pre_production
software_version	990b956d-a7fc-4c9b-a3ab-c09a309ac425.uterm.release
country_code	US
utc_offset_s	-28799
obstruction_fraction	0.0064355433
obstruction_valid_s	178496
cell_id	1142511
pop_rack_id	38
seconds_to_slot_end	3.531043
device_state	
uptime_s	178780
initial_satellite_id	1186
initial_gateway_id	544
on_backup_beam	true

Here’s a quick little shell script to monitor cell, satellite, gateway, and also a ping to 8.8.8.8 once a second.

while :; do
  grpcurl -plaintext -d '{ "dishGetContext": {} }' 192.168.100.1:9200 SpaceX.API.Device.Device/Handle | 
    jq  '.dishGetContext|.cellId,.initialSatelliteId,.initialGatewayId,.onBackupBeam,.secondsToSlotEnd' | tr '\n' ' '; 
  ping -c 1 -W 1 8.8.8.8 | awk -F/ '/^rtt/ { print $5 }' ; 
  sleep 1;
done   

Unimplemented methods

I went through all the other methods in the gRPC stuff. I skipped the ones that starlink-grpc-tools already supports like “status”, etc. Sorry to anyone else but for me I already knew what those did.

Unfortunately all the other interesting looking methods I could find returned errors suggesting they aren’t implemented. get_next_id, get_location, a bunch of wifi_ methods I suspect are in the router (not Dishy).

dish_emc: Fast Switching

One last method looked interesting, dish_emc. That API call seems mostly to be about RF radio state; channels, modulation details, etc. But there’s a fast_switching flag. Maybe fast switching is a frequency thing. But my hope is that it’s related to a promised feature where Dishy predicts obstructions and switches to new satellites to avoid them. My real hope is that this feature isn’t yet turned on and turning it on will magically make my Internet better.

So I turned it on: "dish_emc":{"fast_switching": true}}. I did that today around 11am on 2021-06-27. It didn’t immediately break my Internet so.. good? I’ll check back in 24 hours to see if it had any change. It may amount to nothing though.

Update: after 24 hours I think making this API call did nothing. Either the API isn’t implemented at all, or fast_switching was already on, or it doesn’t make a difference whatever it does. My money is on the “not implemented at all”. Here’s a graph of drop rate; I made the change right about the middle of the time axis here.

dish_emc looks like it returns status data too. But calling it, all the results are 0 or false. Maybe it’s not implemented or has some lockout. Here’s the result from that set call:

is_test_device	false
uuid	
timestamp	0
state	
sky_search_state	
snr	0
seconds_until_schedule	0
snr_uptime	0
cplane_uptime	0
percent_scheduled	0
cplane_updates	0
downlink_throughput	0
uplink_throughput	0
connected	false
sys_uptime	0
gps_latitude	0
gps_longitude	0
gps_pdop	0
rf_mode	0
phi	0
theta	0
rx_channel	0
tx_channel	0
t_dbf_max	0
t_center	0
baseline_heating	0
additional_heating	0
total_heating	0
target_total_heating	0
auto_power_snow_melt_enabled	false
voltage	0
rx_beam_state	0
tx_beam_state	0
half_duplex_state	0
manual_tilt_enabled	false
tilt_angle	0
pll_tx_lock_detected	0
eirp_exceeded_threshold	false
eirp_scale_override	0
idle_override_enabled	false
theta_override_enabled	false
theta_override_value	0
phi_override_enabled	false
phi_override_value	0
rx_chan_override_value	0
tx_chan_override_value	0
sky_search_override_enabled	false
fast_switching_enabled	false
modulation_override_value	0
force_eirp_failure	false
force_pll_unlock	false
ut_ine_success	0
rf_ready	false

TPM 2.0 and Windows 11

Windows 11 news came out today with a big surprise: it’s going to require TPM 2.0 support in your system. What the heck is that? “Trusted Platform Module”, a bit of extra hardware that’s used to store secrets for security and encryption. And a lot of Windows PCs don’t have it. But it can be added.

The easiest way to see if your system will run Windows 11 is to run Microsoft’s health check app. It’ll give you a simple yes/no. If it says “no” it’s likely it’s because your system doesn’t have TPM 2.0. To test for TPM specifically try running “tpm.msc” from the start menu (Win-R): it will tell you the status of TPM on your system.

Neither of my desktop PCs have it, neither my fairly new and fancy Asus X570-Pro nor my older cheaper Asus Z270-P. It seems pretty random whether a desktop machine has it or not. Hopefully most newer laptops do? I don’t know, I think my 2017 Razer Blade does.

You can add TPM hardware to some motherboards. There’s a 14 pin header for that purpose if you’re lucky. My X570-Pro has one, the Z270-P does not. If you have the header can then buy a little motherboard specific add-on module like this Asus one for pretty cheap, $15 or $20. I bet those are about to get scarce!

Some motherboards also support something called “fTPM” or “firmware TPM” (AMD) or PTT (Intel). This implements TPM in other parts of the motherboard’s hardware rather than a specific dedicated TPM. Perhaps that’s less secure, I don’t know. My X570-Pro has that ability. I turned it on in the BIOS and now my system is cleared as ready to run Windows 11. Not sure about the older Z270-P system, the manual has no info on TPM in it.

I’m curious why Microsoft is requiring TPM; given it’s not universal or may only exist behind an obscure BIOS setting this choice has to cut deeply into their market. They use TPM for BitLocker, their hard drive encryption product. I’ve never seen the need to use that myself so never looked in to TPM before. I wonder if TPM is good for anything else in practice? Linux supports it and can use it for some things like generating ssh keys.

Plotter materials

One thing I like about pen plotting is how crunchy the materials are. I’m used to doing generative art and graphic design on screen where all the lines are pixel-perfect and if anything you try to hide the pixels, too. Ink and paper are much messier. Paper has texture and fiber. Ink bleeds and flows unevenly. There’s different kinds of pen inks, pigments that sit on top of the paper vs dyes that soak into it.

But despite liking all that crunchiness I also want control. I am particularly frustrated with the dot you get when the pen is dropped on to a page as the ink blots into the paper. Different materials have different amounts of bleed, consistency, etc. Sometimes you want something that works pretty much like pixels on a screen.

For paper I like this Neenah Exact Vellum Bristol, 8.5″ x 11″, 67 lb/147 gsm. It’s good heavy card stock. Paper is nicely flat but has just a bit of texture so that a swift moving pen leaves a slight graininess. (It’s not polished paper). It’s pretty cheap too, about $0.04 a sheet, so I’m using this for sketches that I expect to throw away.

The other paper I’ve used is this generic 5x7 note card 80lb / 216 gsm. The paper is a bit more polished than the vellum. I haven’t looked at cards too closely, mostly I just liked it came with matching envelopes and in small quantities.

Pens are a much bigger fun topic. I’ve tried lots but my go-to for basic solid line work is the Sakura Pigma Micron 05. My favorite thing is the very clean line it makes. Seriously looks like magic coming out of the pen, a solid smooth line. Almost no pooling / dots at the start or end of a line. I’ve never seen it smear or soak through heavy paper. The pens work great in a vertical orientation and ink flows cleanly at 50% speed on an AxiDraw; 75% starts being a little too fast. They come in a reasonable variety of colors, 15 in all, although the palette is a little heavy on the dark colors. The ink is advertised as archival quality. The 0.45mm pen (size 05) has the most color options and the line genuinely seems about 0.45mm thick. Parallel lines spaced 0.4mm show just a bit of white paper through, 0.3mm parallel lines make for a nearly solid color.

(I should disclose I’m a noobie to the pen plotter world, only been playing around with it on the side for a few months. There’s lots more to learn about materials!)

Android Tablet: Samsung Galaxy Tab S7+

A little over a year ago I bought an Android tablet on a whim. I liked it so much I’ve already upgraded it, trading up from an Samsung Galaxy Tab S5e to an S7+. It’s kind of a dumb time to be buying this, Samsung is likely to announce the S8 line in a few weeks. But I got a good price on the 256GB storage model.

Really what I wanted was a bigger screen. The S5e has an excellent 11″ screen (245x160mm) but the S7+ has a 12.4″ screen (285x185mm). iPad Pro size, not iPad size. They’re both excellent AMOLED screens but the extra inch in each direction is great for media consumption. The real thing that put me over the top was reading comic books; juts a little small for old eyes on the 11″.

Other than that the S7+ is just an upgrade all around. More storage, more RAM (get the 256GB storage at least; the 128GB has less RAM), faster CPU (8 cores, good lord). Great battery; lasted 5 days with 8 hours of the screen being turned on. Fingerprint sensor hidden under the screen which is a nice improvement. Really it’s just a great piece of hardware. There’s a common meme that the Android tablet market is dead. It’s true there are fewer manufacturers than there used to be but Samsung is doing such a great job it’s fine.

Still reasonably happy with Samsung’s software, or rather the way it gets out of the way when you don’t use it. I switched to Nova Launcher again for the launcher and the rest of Samsung’s stuff mostly disappears. Except the parts I want, like the facial recognition unlocking. Samsung’s a little slow with Android releases, I think about 6 months behind? But they do get there and have a decent track record of support longevity.

And then there’s the S-Pen. I don’t know what to say about the S-Pen. This is Samsung’s big innovation, they’ve been at stylus support for a lot longer than Apple. It’s quite good at drawing, the pressure sensitivity is nice. Mostly it seems to serve to augment the UI, there’s all these gestures you can make with the pen both on screen and in the air to do magic things like take screenshots and scribble on them, zoom the camera, etc. I guess it’s kind of neat? But it requires you hold a pen in your hand; I’m perfectly happy with the touchscreen, thanks. And the pen gets in the way. It magnetically attaches nicely to the back of the screen but there it is sitting out. I have a case that holds the pen on the side and that’s OK too only the pen is thicker than the tablet, so everything’s unnecessarily bulky. I’ve already put the pen away permanently and now am looking for a case that doesn’t make any effort to leave room for it. Maybe if I were drawing art on my tablet I’d be excited to use it.

Starlink obstruction map

Sometime around June 3 Starlink pushed a handy new feature, a full map of obstructions in Dishy’s view. Previously it only told you about obstructions in each of 12 slices of the circle; now it’s got a two dimensional map.

That corresponds to what I expected; I have a tall tree to the Northeast. Not sure about the lesser blob to the north but presumably it’s a second tree. Unfortunately while these obstructions look small they really do affect my connection meaningfully. Dishy spends most of its time looking to the north so that side matters more.

FWIW the way this feature seems to work is a new gRPC endpoint in Dishy itself called dish_get_obstruction_map. The older 1752790c firmware doesn’t support it; I only started seeing the map when I upgraded to db6b5d22. That was release about June 3.

(Vaguely related; I maintain a crowdsourced list of Dishy firmware revisions.)

PS5 vs TCL 6: dark HDR

I’ve got my Playstation 5 plugged directly into my TCL 6 Series TV. That makes for what should be a great picture: 2160p resolution, HDR10 color. It looks great! When it works.

The setup started developing a problem where sometimes when I turned it on everything was way too dark. Like the whole picture was scrunched down to 0-50% brightness. It happened randomly and maybe dependent on the order I turned things on. But it got worse and worse until I just couldn’t use HDR anymore.

The fix is to reboot the TCL TV. No, seriously. TVs no longer turn off when they’re off, they keep running their computer in the background. So you need a full reboot via system menus (or power cord).

If you search you find lots of people online are having this problem, plenty of Reddit discussions. There’s also a bunch of other “HDR dark?” articles that talk about a different problem, which is the default picture settings for HDR are way darker than standard color. But this problem is a real bug and no amount of boosting brightness, etc will fix it.

Update: no, turns out reboots don’t always fix it. I’ve started from a soft reboot of both the PS5 and the TCL TV and gotten into the dim HDR mode. I haven’t tried a full hard / cold reboot (ie: unplug the damn thing).

I may have found another fix though, which is to go into a debug menu and select the “update dimming firmware” option. I don’t think the firmware update itself does anything, or rather maybe there’s no firmware to update. But it seems to cause the TV to reboot the HDR connection and twice now it’s come back at the right brightness. The magic sequence is HOME BUTTON (5X) - RW - PAUSE - FF - PAUSE - RW. This brings up the so called “platform menu”; there’s lots of hidden menus in Roku documented here and here.

Dicks on a map (NSFW)

There’s a classic style of visualization on the Web; “dots on a map”. You take a basic Google map or whatever and draw dots on top of it to indicate things: locations of stores, tourist highlights, demographic data, whatever.

Sniffies is a gay hookup app in the vein of Grindr or Tinder. It has a nice dots on a map Web UI so you can see people around you. Only instead of dots they’re little bubbles with user photos. This being a gay app, what that means is lots and lots of photos of intimate anatomy. Dicks on a map.

Image below is NSFW.

A MapBox map with many penises in location circles

Android Scoped Storage, SyncThing, GPSLogger

I’m trying to synchronize data from Mendhak’s GPSLogger to other devices. I’m running the latest Android (11?) on a Pixel 3. GPSLogger supports a nice variety of sync options but none are quite right for me, so I thought I’d try using SyncThing on the data files on the phone instead. But I ran into a confusing permissions / security thing in Android where SyncThing couldn’t see GPSLogger’s data files. Here’s what’s going on.

First off, where are the files? The GPSLogger docs say they are in a folder with a name like /sdcard/Android/data/com.mendhak.gpslogger/files/. The first confusing this is that /sdcard prefix: apparently this is different on different devices. But the path from Android on down should be consistent.

If I access this files via the SolidExplorer Android file browser it shows up as a storage named “Internal Memory”, the default. (Presumably this could also be an SDcard or something). From there I can click Android and get three choices: data, media, and obb. Click data, search the giant list for com.mendhak.gpslogger, and there I am. Bottom line: GPSLogger stores its files in /sdcard/Android/data/com.mendhak.gpslogger under the root directory, at least on my phone. It’s just where the root is can be confusing.

If I plug in my phone and access it on my Windows machine as a USB drive, I can find my data with this path:
This PC\Pixel 3\Internal shared storage\Android\data\com.mendhak.gpslogger
Seems logically consistent; get to the root of the internal memory, then drill in on Android.

Unfortunately as of Android 11, ordinary apps can no longer access the data folder of other apps. This is presumably a security update, I guess the assumption is most of the time those files are private to the app and shouldn’t be visible. There’s an elaborate new system called “Scoped Storage” where apps can explicitly choose to share files but a lot of apps haven’t really caught up to that. It’s great that Android has a filesystem you can just access at all but over time they’ve complicated it.

There’s a couple of workarounds to the Android restrictions. A bunch of file explorer apps (including Solid) have hacked around it somehow to show you all the folders. Not sure how, I wonder if they’re using the opt-out procedure which is listed as “temporary”, a compatibly measure, and comes with other restrictions.

But this doesn’t help me with SyncThing; it doesn’t seem to support the workaround. All it shows me under “Android” is “media”, a sign that it’s stuck inside the scoped storage sandbox. Which is a little weird because I think it’s supposed to work thanks to including this patch. In particular there’s a “Use advanced Folder Picker: Select any folder on the device for syncing” that sounds like it should enable the workaround. It just doesn’t seem to work.

I also tried SyncThing-Fork, an experimental version. It has a little wheel next to the directory picker that gives you some “advanced” picker. It shows a data folder but that folder is empty. There’s so much drama getting Google Play Store approval I’m not sure it even can work. I briefly tried the FDroid version too (which is a bit more up to date) and it didn’t work there either. Anyway not thrilled at the idea of the fork, particularly if I have to install it via FDroid! So not pursuing that option further.

I finally gave up; the SyncThing app just can’t access that folder. Which is too bad. But fortunately there’s an easy other solution, which is just to get GPSLogger to write files to a different place instead. I chose to put them in /Documents/GPSLogger. Near as I can tell this directory is world-accessible. At least SyncThing can get at it, although IIRC I had to give it one-time permission to access it.

And so now I have SyncThing syncing GPSLogger’s files to my Linux server. Yay! Honestly it would have been a lot easier just to use SFTP or something from GPSLogger but I didn’t really want to set any of the GPSLogger options up. SyncThing seems to be working.