No Description

Fabian Peter Hammerle 71d8cf620c Update 'README.md' 7 years ago
.gitignore c6617bb5e3 Initial commit 7 years ago
LICENSE 69626a450f Update 'LICENSE' 7 years ago
README.md 71d8cf620c Update 'README.md' 7 years ago
xbackcalc 9e30c41d90 Add 'xbackcalc' 7 years ago

README.md

xbackcalc

Preparation

1. Create group

sudo groupadd brightness

2. Add user to group

sudo usermod --append --groups video $USER

3. Add new udev rules

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"

4. Apply new udev rules

sudo udevadm control --reload && sudo udevadm trigger --action=add --subsystem-match=backlight

Examples

xbackcalc 10
xbackcalc 1180
xbackcalc current + 50
xbackcalc current - 50
xbackcalc current / 2
xbackcalc current \* 1.1
xbackcalc current \* 0.9 + 10