summaryrefslogtreecommitdiff
path: root/etc/udev
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2023-03-15 11:35:51 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2023-03-15 11:35:51 +0530
commitfa7a8015feb5ff3e4d158e2d7f1b82fe94091555 (patch)
tree6e111a5ec2f5709898a2d43e637b137cbaa8a595 /etc/udev
parent46f86978d0f8c7538b615ba60e1332cc280f5cd0 (diff)
.local: adding some envscripts+udev rules for brillo
Diffstat (limited to 'etc/udev')
-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"