Added option to turn off the screen on ODROID-C2, which is an SBC similar to a Raspberry Pi. Unfortunately, none of the methods that worked on an RPi with my monitor could be used with this device. The method added works similarly as the one used in backlight-rpi method (i.e. using echo 0 > ... or echo 1 > ... on the corresponding file on sysfs). I replicated that one and changed the relevant parts.
Maybe there should be a text somewhere linking to this page: How to turn off your monitor - ODROID-C2, because there is a kernel parameter that should be enabled in the boot config file. I'm using LibreELEC and the parameter was enabled by default, but there may be other distros where this has to be done manually.
I have no experience in Kodi add-on development, so if I missed something, just tell me and I'll see what can I do to improve it.
Added option to turn off the screen on ODROID-C2, which is an SBC similar to a Raspberry Pi. Unfortunately, none of the methods that worked on an RPi with my monitor could be used with this device. The method added works similarly as the one used in
backlight-rpi
method (i.e. usingecho 0 > ...
orecho 1 > ...
on the corresponding file on sysfs). I replicated that one and changed the relevant parts.Maybe there should be a text somewhere linking to this page: How to turn off your monitor - ODROID-C2, because there is a kernel parameter that should be enabled in the boot config file. I'm using LibreELEC and the parameter was enabled by default, but there may be other distros where this has to be done manually.
I have no experience in Kodi add-on development, so if I missed something, just tell me and I'll see what can I do to improve it.
I hope someone finds this useful.