Fabian Peter Hammerle 71d8cf620c Update 'README.md' | 7 years ago | |
---|---|---|
.gitignore | 7 years ago | |
LICENSE | 7 years ago | |
README.md | 7 years ago | |
xbackcalc | 7 years ago |
sudo groupadd brightness
sudo usermod --append --groups video $USER
Create file /etc/udev/rules.d/90-backlight.rules
and add the following two lines:
ACTION=="add", SUBSYSTEM=="backlight", RUN+="/bin/chgrp brightness /sys/class/backlight/%k/brightness"
ACTION=="add", SUBSYSTEM=="backlight", RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness"
sudo udevadm control --reload && sudo udevadm trigger --action=add --subsystem-match=backlight
xbackcalc 10
xbackcalc 1180
xbackcalc current + 50
xbackcalc current - 50
xbackcalc current / 2
xbackcalc current \* 1.1
xbackcalc current \* 0.9 + 10