backlight_dimmer
backlight_dimmer copied to clipboard
Touch display sys path change
A quick note to say thank you for your work! I am a complete Luddite when it comes to coding, but I note that the more recent version of Raspberry OS has changed the folder structure from this; /sys/class/backlight/rpi-backlight/brightness
to this; /sys/class/backlight/rpi_backlight/brightness
Accordingly your script throws an unable to find error; ./timeout 10 event0
I tried updating the timeout.c on line 104 to the new location by that didn’t seem to work either. Any thoughts would be most appreciated and hope all is well
I've implemented a PR which properly fixes this issue — it will work with any available backlight device. @alanjfogarty, feel free to use my version until this PR is merged.