diff --git a/etc/udev/rules.d/90-backlight.rules b/etc/udev/rules.d/90-backlight.rules new file mode 100644 index 0000000..b9306f7 --- /dev/null +++ b/etc/udev/rules.d/90-backlight.rules @@ -0,0 +1,7 @@ +# screen backlight +ACTION=="add", SUBSYSTEM=="backlight", RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness" +ACTION=="add", SUBSYSTEM=="backlight", RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness" +# keyboard backlight +ACTION=="add", SUBSYSTEM=="leds", RUN+="/bin/chgrp video /sys/devices/platform/thinkpad_acpi/leds/tpacpi::kbd_backlight/brightness" +ACTION=="add", SUBSYSTEM=="leds", RUN+="/bin/chmod g+w /sys/devices/platform/thinkpad_acpi/leds/tpacpi::kbd_backlight/brightness" +