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
Task Type Bug Report
Category Packages
Status Closed
Assigned To Alad Wenter (Alad)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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

Loading...