F5F Stay Refreshed Software Operating Systems Grant the non-root user permission to interact with /sys/class/backlight/

Grant the non-root user permission to interact with /sys/class/backlight/

Grant the non-root user permission to interact with /sys/class/backlight/

Pages (2): 1 2 Next
D
DDotty2
Member
223
02-01-2023, 06:30 AM
#1
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!
D
DDotty2
02-01-2023, 06:30 AM #1

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!

B
Broflash
Senior Member
740
02-09-2023, 09:46 PM
#2
Andrzej's method is correct. Using the wrong command would be incorrect.
B
Broflash
02-09-2023, 09:46 PM #2

Andrzej's method is correct. Using the wrong command would be incorrect.

J
Jorski
Member
219
02-28-2023, 09:23 PM
#3
Hi, thanks for your message. Visudo indicates an error in what I entered. Could you share more details about the issue? I’m trying to understand why it’s flagging my command.
J
Jorski
02-28-2023, 09:23 PM #3

Hi, thanks for your message. Visudo indicates an error in what I entered. Could you share more details about the issue? I’m trying to understand why it’s flagging my command.

T
tomskos221
Member
120
02-28-2023, 10:56 PM
#4
I sensed it wasn't the right approach. Appreciate the confirmation!
T
tomskos221
02-28-2023, 10:56 PM #4

I sensed it wasn't the right approach. Appreciate the confirmation!

G
gavin0099
Member
179
03-16-2023, 08:22 AM
#5
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`.
G
gavin0099
03-16-2023, 08:22 AM #5

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`.

L
levoyageur92
Posting Freak
807
03-17-2023, 11:01 AM
#6
Create a udev rule to allow access at https://wiki.archlinux.org/index.php/Backlight#ACPI
L
levoyageur92
03-17-2023, 11:01 AM #6

Create a udev rule to allow access at https://wiki.archlinux.org/index.php/Backlight#ACPI

A
AskedRumble52
Member
216
03-17-2023, 07:51 PM
#7
echo 0 | sudo tee /sys/class/backlight/rpi_backlight/bl_power Under admin rights, the instruction functions properly. Appreciated!
A
AskedRumble52
03-17-2023, 07:51 PM #7

echo 0 | sudo tee /sys/class/backlight/rpi_backlight/bl_power Under admin rights, the instruction functions properly. Appreciated!

D
DylanTheBoss
Junior Member
14
03-26-2023, 01:33 AM
#8
Configure permissions for the backlight module and apply rules.
D
DylanTheBoss
03-26-2023, 01:33 AM #8

Configure permissions for the backlight module and apply rules.

S
SuperTigresss
Posting Freak
768
03-26-2023, 05:33 AM
#9
Great job! Thanks @Nayr438 and @AndrzejL. I wouldn’t have managed it otherwise!
S
SuperTigresss
03-26-2023, 05:33 AM #9

Great job! Thanks @Nayr438 and @AndrzejL. I wouldn’t have managed it otherwise!

C
ChibiWolf39
Senior Member
491
04-02-2023, 01:43 AM
#10
This applies to all our systems, including servers.
C
ChibiWolf39
04-02-2023, 01:43 AM #10

This applies to all our systems, including servers.

Pages (2): 1 2 Next