You are not logged in.
To change the brightness of my backlight, I have to use sudo.
Im trying to make it so I don't need to use sudo.
I followed this tutorial: https://ejmastnak.com/tutorials/arch/ba … brightness.
when i run this, it says i have the intel one.
# ls /sys/class/backlight/
intel_backlight
I added myself to the video group, just like the tutorial says, and i put this in /etc/udev/rules.d/backlight:
# This code would go inside `/etc/udev/rules.d/backlight.rules`
# Set `video` as the owning group for the `/sys/class/backlight/intel_backlight/brightness` file
RUN+="/bin/chgrp video /sys/class/backlight/intel_backlight/brightness"
# Give write permisssions to the owning group of the `brightness` file
RUN+="/bin/chmod g+w /sys/class/backlight/intel_backlight/brightness"
but i still have to use sudo to change brightness.
Last edited by randompersondude (2024-08-31 10:07:42)
Offline
See https://wiki.archlinux.org/title/Talk:B … esn't_work.
Or just use brightnessctl instead, which relies on the login session rather than udev rules.
Jin, Jîyan, Azadî
Offline
thanks
Offline