2023-02-26, 13:42
I run kodi-rpi on arch ARM (linux-rpi, aarch64) on a RPi4.
On HDMI 0 a monitor is connected, on HDMI 1 an audio system. I tend to listen to music for hours and since the monitor consumes a lot of power I want to toggle it off/on using a script mapped to a key on my remote.
When using fkms I use vcgencmd display_power 0/1 2 for that (0 = off, 1 = on). When using kms the vcgencmd doesn't work anymore, but kodi has the option of putting the monitor to sleep after 5 mins or more when idle under system power saving, and that also works with kms.
How does kodi do that? How can I use that in a script?
On HDMI 0 a monitor is connected, on HDMI 1 an audio system. I tend to listen to music for hours and since the monitor consumes a lot of power I want to toggle it off/on using a script mapped to a key on my remote.
When using fkms I use vcgencmd display_power 0/1 2 for that (0 = off, 1 = on). When using kms the vcgencmd doesn't work anymore, but kodi has the option of putting the monitor to sleep after 5 mins or more when idle under system power saving, and that also works with kms.
How does kodi do that? How can I use that in a script?