FS#61587 - [acpilight] 1.1-2 Flawed udev rule for keyboard backlight control
Attached to Project:
Community Packages
Opened by Parzival (Grals) - Thursday, 31 January 2019, 14:07 GMT
Last edited by Alad Wenter (Alad) - Thursday, 01 August 2019, 07:02 GMT
Opened by Parzival (Grals) - Thursday, 31 January 2019, 14:07 GMT
Last edited by Alad Wenter (Alad) - Thursday, 01 August 2019, 07:02 GMT
|
Details
Description:
The /lib/udev/rules.d/90-backlight.rules which is provided by the package has an error in it which prevents the user from adjusting his keyboard brightness without root privileges even if he added his user to the video group. Additional info: Affects acpilight 1.1-2 without any additional configuration Flawed config /lib/udev/rules.d/90-backlight.rules : # Allow video group to control backlight and leds SUBSYSTEM=="backlight", ACTION=="add", \ RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness", \ RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness" SUBSYSTEM=="leds", ACTION=="add", KERNEL=="*::kbd_backlight", \ RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness", \ RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness" Should be: # Allow video group to control backlight and leds SUBSYSTEM=="backlight", ACTION=="add", \ RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness", \ RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness" SUBSYSTEM=="leds", ACTION=="add", KERNEL=="*::kbd_backlight", \ RUN+="/bin/chgrp video /sys/class/leds/%k/brightness", \ RUN+="/bin/chmod g+w /sys/class/leds/%k/brightness" Steps to reproduce: -Install acpilight through pacman -Add your user to the video group -Reboot -identify your keyboard backlight with xbacklight -l. -Try to run the following command without sudo or root priviledges: xbacklight -ctrl XXXXXXX 100 (where XXXX is the identifier for your keyboard backlight) |
This task depends upon
Closed by Alad Wenter (Alad)
Thursday, 01 August 2019, 07:02 GMT
Reason for closing: Fixed
Additional comments about closing: acpilight 1.2-1
Thursday, 01 August 2019, 07:02 GMT
Reason for closing: Fixed
Additional comments about closing: acpilight 1.2-1
Comment by loqs (loqs) - Thursday,
31 January 2019, 14:33 GMT
https://gitlab.com/wavexx/acpilight/commit/f54865ed9a11eedaeffa71af320a3bf36c89f15d