Fredrik Haikarainen 8 年之前
父節點
當前提交
9681c7268a
共有 1 個檔案被更改,包括 6 行新增0 行删除
  1. 6
    0
      README.md

+ 6
- 0
README.md 查看文件

@@ -31,6 +31,12 @@ I recommend you go with light-git as you might miss important features and bugfi
31 31
 
32 32
 `make && make install`
33 33
 
34
+**Optional:** If you want to use udev rules instead of suid to manage sysfs permissions, you may skip the `make install` step and instead add something like the following to `/etc/udev/rules.d/90-backlight.rules` after copying your binaries:
35
+```
36
+ACTION=="add", SUBSYSTEM=="backlight", RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness"
37
+ACTION=="add", SUBSYSTEM=="backlight", RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness"
38
+```
39
+
34 40
 
35 41
 ## Usage
36 42