|
@@ -175,13 +175,16 @@ because they are generated at release time with `make release`.
|
175
|
175
|
|
176
|
176
|
### Permissions
|
177
|
177
|
|
178
|
|
-**Optional:** Instead of SUID root you can set up udev rules to manage
|
179
|
|
- sysfs permissions, you may skip the `make install` step and instead
|
180
|
|
- copy the file `90-backlight.rules` to `/etc/udev/rules.d/`:
|
|
178
|
+Optionally, instead of the classic SUID root mode of operation, udev
|
|
179
|
+rules can be set up to manage the kernel sysfs permissions. Use the
|
|
180
|
+configure script to enable this mode of operation:
|
181
|
181
|
|
|
182
|
+ ./configure --with-udev && make
|
|
183
|
+ sudo make install
|
|
184
|
+
|
|
185
|
+This installs the file `90-backlight.rules` into `/lib/udev/rules.d/`.
|
|
186
|
+If your udev rules are located elsewhere, use `--with-udev=PATH`.
|
182
|
187
|
|
183
|
|
- ACTION=="add", SUBSYSTEM=="backlight", RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness"
|
184
|
|
- ACTION=="add", SUBSYSTEM=="backlight", RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness"
|
185
|
188
|
|
186
|
189
|
|
187
|
190
|
Origin & References
|