2019-05-11, 19:03
(2019-05-08, 20:28)SebastiansIT Wrote: Hi dud3rs,
I doesn't use the python library you use. Instead I call directly shell commands to change the backlight power.
Hope this helps
- I have take a short look at the project page of rpi-backlight. Part of this Python package is a CLI. Have you try to call this manually in a SSL-Terminal? Doing so show you the package works or not.
- Have you changed the backlight rules like it is mentioned in the installation instructions of rpi-backlight?
- Print out the value of your sensor to see if this component works like you expect it?
Thanks for your response! I have actually given up trying to do it the way I described above, and I am instead trying to run my script at startup. I learned from another thread that if I configure my Raspbian install to load my script automatically when the RPi boots up, that even if I boot into Kodi my script should still run in the background. I have tried all of your suggestions, and I can confirm that the script works when I run it from the CLI. However, when I follow the instructions from this tutorial (systemd) the system just freezes up and I have to hard reboot. I have a RPi 3 with Raspbian and LibreElec installed via NOOBs. I boot into Raspbian to do all my scripting/testing. When I think I have it working, I then boot into Kodi, and test it. It never works, though. If I boot into Kodi it doesn't freeze, it just doesn't work. If I boot into Raspbian it will freeze, and I have to disable everything via SSH. Any ideas?