From 8087b804a3e4079b7f922f26f3695f5896c44954 Mon Sep 17 00:00:00 2001 From: Johannes Rothe Date: Mon, 19 Feb 2018 19:16:32 +0100 Subject: [PATCH] udev-rules: add backlight rules --- etc/udev/rules.d/90-backlight.rules | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 etc/udev/rules.d/90-backlight.rules 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" +