add-ons / screensaver.turnoff

Kodi screensaver that turns your screen off to save power
Other
21 stars 14 forks source link

Add option to turn off screen on ODROID-C2 #9

Closed ametis70 closed 5 years ago

ametis70 commented 5 years ago

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.

I hope someone finds this useful.

dagwieers commented 5 years ago

I couldn't push to your branch because you used the master branch. So I opened a new PR with your changes to #11