Fredrik Haikarainen 8 lat temu
rodzic
commit
9681c7268a
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6
    0
      README.md

+ 6
- 0
README.md Wyświetl plik

@@ -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