Grant the non-root user permission to interact with /sys/class/backlight/
Grant the non-root user permission to interact with /sys/class/backlight/
2020-09-04: Just a brief message, to prevent all this you can simply run "vcgencmd display_power 1" instead. Hello, I'm attempting to disable the Raspberry Pi Official Display when the screensaver starts. Everything seems fine except that non-root users can't change the backlight settings (/sys/class/backlight/rpi_backlight/bl_power). I tried setting up a udev rule and a group, but it didn't work because I just changed things randomly. Also, I attempted to use chmod, but it was quickly undone after running the command. Any suggestions? Thanks!
I sensed it wasn't the right approach. Appreciate the confirmation!
I chose the path that points to /usr/bin. Despite using quotes around the command, the syntax still failed in visudo. I ran the command with ' or " and got a NOPASSWD: error. The final action was to execute `sudo /usr/bin/tee /sys/class/backlight/rpi_backlight/bl_power`.
Create a udev rule to allow access at https://wiki.archlinux.org/index.php/Backlight#ACPI
echo 0 | sudo tee /sys/class/backlight/rpi_backlight/bl_power Under admin rights, the instruction functions properly. Appreciated!
Configure permissions for the backlight module and apply rules.
Great job! Thanks @Nayr438 and @AndrzejL. I wouldn’t have managed it otherwise!