summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2022-07-15 23:22:14 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2022-07-15 23:22:14 +0530
commit28188125fb6886741ccf5ea717e74c328003c38a (patch)
tree52a19e739901519610c64195b6a89cf8c9a6f1f0 /etc
parent0dc93d5e8a450d63fc5f3403158863be16653e42 (diff)
udev rule to overcome intel_backlight Permission denied error
Diffstat (limited to 'etc')
-rw-r--r--etc/udev/rules.d/90-backlight.rules3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/udev/rules.d/90-backlight.rules b/etc/udev/rules.d/90-backlight.rules
new file mode 100644
index 0000000..231c2a4
--- /dev/null
+++ b/etc/udev/rules.d/90-backlight.rules
@@ -0,0 +1,3 @@
+SUBSYSTEM=="backlight", ACTION=="add",
+RUN+="/bin/chgrp video /sys/class/backlight/intel_backlight/brightness",
+RUN+="/bin/chmod o+w /sys/class/backlight/intel_backlight/brightness"