-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
udev rules not working on Arch #25
Comments
What does |
total 0
-r--r--r-- 1 root root 4096 Sep 4 10:24 actual_brightness
-rw-r--r-- 1 root root 4096 Sep 4 10:24 bl_power
-rw-r--r-- 1 root root 4096 Sep 4 10:54 brightness
lrwxrwxrwx 1 root root 0 Sep 4 10:24 device -> ../../card0-eDP-1
-r--r--r-- 1 root root 4096 Sep 4 10:24 max_brightness
drwxr-xr-x 2 root root 0 Sep 4 10:58 power
lrwxrwxrwx 1 root root 0 Sep 4 10:24 subsystem -> ../../../../../../../class/backlight
-r--r--r-- 1 root root 4096 Sep 4 10:24 type
-rw-r--r-- 1 root root 4096 Sep 4 10:24 uevent |
Let me double-check with you: are you executing the |
I noticed the udev rule wasn't allowing the script to run without root privileges properly, so I ran the commands it was supposed to in the shell just to get some information for an issue report. (I'm new to troubleshooting udev rules.) |
I see, how weird. For the record, udev replaces |
Can you try it on the latest commit btw? (i.e. reinstall brightnessctl and reboot) |
Done. No dice. (All I see is a version bump in the commits, so I don't think that will help much.) |
And another question. Is your user account in the |
It wasn't, but I just added it and there was no effect. |
It happens to me too, but adding a sudo rule does not work. Arch up-to-date kernel 4.18.6 |
I've used the
|
The proper way is to set the udev rules with
(edit: which (acls) is not supported on sysfs sigh) |
I have faced this issue. Till date I cannot directly modify So in my case doing |
Is it still broken in brightnessctl in community? |
systemd-logind 243 (just around the corner now) will provide a dbus api for setting the brightness for the users seat. |
@Hummer12007 yes. |
For anyone else who finds this thread: |
@jay-aye-see-kay right, I missed this step from the README. As the Arch package no longer set the binary as suid, but ships the |
since systemd 243 you don't need any special permissions on the system to change the backlight brightness. a user can do it for their seat by dbus calling logind. this is already supported in brightnessctl, but we are waiting for a 0.5 release (hint hint @Hummer12007) |
I know this is a bit old, and this has seemingly been fixed on systems with a newer version of systemd, but this is a working solution in the meantime: Instead of chgrp, you can use chgrp -h to avoid dereferencing the symlink. |
OS: Arch Linux x86_64
Host: UX390UAK 1.0
Kernel: 4.18.5-arch1-1-ARCH
Udev rules
/bin/chgrp video /sys/class/backlight/%k/brightness
returns/bin/chgrp: cannot access '/sys/class/backlight/%k/brightness': No such file or directory
/sys/class/backlight
is a file, not a directory, and it contains the following (viewed using nvim):The same thing is occurring with the leds "directory". The current workaround is adding
<username> ALL=(ALL) NOPASSWD: /bin/brightnessctl
to the sudoers file as hinted by the readme.The text was updated successfully, but these errors were encountered: