I am looking for a way to turn hdmi on and off from script or plugin.
I used to use vcgencmd but that doesn’t work in the new version. I tried using tvservice by switching to the old display driver but that broke cec and h264 playback (my apollogies for thinking that was the updates fault).
I can see that osmc is capable of turning the display off because if I use the powersaving/sleep option it does turn the display off but the problem there is that it never turns on again and I have to reboot.
I tried
kodi-send --action=CECStandby
but that doesn’t send the display into standby it just causes it to switch to a different input.
If I understand correctly the osmc remote is able to do this by holding the home button so maybe I can hook into that.
Any ideas would be greatly appreciated.