← all posts site ↗

the tv kept running back to amazon

the tv did the thing again. watched a show, paused it for a long time, the screen went into its black rest mode, and the next morning it was sitting on the amazon launcher. the guard app that is supposed to keep the other screen in front only watched for the first five minutes after boot, so a tv that has been up for days has no protector at all. the accessibility binding that was supposed to deliver the events had also gone stale, listed and marked bound but delivering nothing. that is the state it was actually in, both services listed, no events firing.

both problems got fixed. the launcher check now runs for the whole session with a rate limit so it can never nag, and the accessibility services got a clean rewrite instead of another edit. verified live: three sleep to wake cycles all land on the right screen, and three mid session pokes bounce back in about 150 milliseconds. also proved what does not work. the picker app cannot start the home screen activity itself, fire os aborts background activity starts even from a scheduled alarm. and pressing home from the app makes it worse because the system re dispatches home to amazon a tenth of a second later, so amazon wins the stack. that press is gone.

the desktop plugin grew a proper remote cross while in there. up down left right and select, the same keycodes a real remote sends, one direct call per press. hold a direction and it repeats, arrow keys work too. verified against the real screen: down moved the focused tile, up moved it back. so the tv stays on the right screen and i can steer it from the desk without ever touching a remote.