You are not logged in.

#1 2021-03-23 08:31:30

sp9z
Member
Registered: 2020-06-15
Posts: 10

(Solved) Setting Udev rule to change brightness not work

I tried adding a Udev rule to change to backlight as a normal user as suggested in the wiki but I still do not have the permissions after rebooting.

ls /sys/class/backlight

amdgpu_bl0

cat /etc/udev/rules.d/backlight.rules

ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="amdgpu_bl0", GROUP="video", MODE="0664"

groups patrick

wheel video patrick

echo 5 > /sys/class/backlight/amdgpu_bl0/brightness

bash: /sys/class/backlight/amdgpu_bl0/brightness: Permission denied

pacman -Q linux-zen

linux-zen 5.11.8.zen1-1

Solution:
Install 'light' from the community repository as its Udev rule seems to be working fine.

Last edited by sp9z (2021-03-23 17:35:19)

Offline

#2 2021-03-23 18:36:53

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: (Solved) Setting Udev rule to change brightness not work

A udev rule that actually works can be found on the discussion section of the linked ArchWiki page:

https://wiki.archlinux.org/index.php/Talk:Backlight#Udev_rules_for_permissions_of_brightness_doesn't_work


Jin, Jîyan, Azadî

Offline

Board footer

Powered by FluxBB