|
Ok, I just tested a bit more extensively and this is sooooo strange! I've narrowed it down even further.
First a few remarks:
1) Even without running lircd, when killing kodi using systemctl, standby doesn't work anymore. However, it's important to note that when killing kodi, the last "screen" of kodi remains on the screen. So it isn't completely killed to a black screen.
2) I did indeed have a typo, KEY_POWER and KEY_SLEEP does put the Orangepi into sleep, which is good.
Narrowed down reason of not working standby:
When lircd is started manually from putty, it works perfectly: power button works, you can put the box into standby using the remote (wakeup only through button).
However, when lircd is started from autostart.sh (see below in code), the standby function breaks. On the other hand, when any other command than lircd is run from autostart.sh, it doesn't break the standby function.
- #!/bin/sh
- lircd /storage/.config/lircd.conf
Copy code
So this is a real mystery: what happens differently when lircd is run from autostart compared to run from putty.
|
|