Hey all you cool cats and kittens!
This has been a very useful thread. I have installed ADB on openhabian and connected to my fire stick. I can run several commands successfully from putty. I haven’t tried writing these into a script yet but that will come soon.
The power commands won’t turn it off (or standby or whatever it’s called when the remote powers off the screen)
adb shell input keyevent KEYCODE_POWER
adb shell input keyevent 26
Like I mentioned, other commands work fine including KEYCODE_SLEEP but that just turns the screen black, doesn’t turn it off.
If I press the power button on the remote to turn off the screen manually, I can later send other commands that will bring it back on, adb shell input keyevent 3 will power up and go to the home screen. KEYCODE_POWER will not turn it on.
Any reason why only the power commands don’t work? Any log for adb I can go look at? The putty command shows nothing.