瀏覽代碼

Add leds subsystem to udev rules

Fredrik Svantesson 6 年之前
父節點
當前提交
621e1dbe7f
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      90-backlight.rules

+ 2
- 0
90-backlight.rules 查看文件

@@ -1,2 +1,4 @@
1 1
 ACTION=="add", SUBSYSTEM=="backlight", RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness"
2 2
 ACTION=="add", SUBSYSTEM=="backlight", RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness"
3
+ACTION=="add", SUBSYSTEM=="leds", RUN+="/bin/chgrp video /sys/class/leds/%k/brightness"
4
+ACTION=="add", SUBSYSTEM=="leds", RUN+="/bin/chmod g+w /sys/class/leds/%k/brightness"