3 releases (breaking)

0.3.0 Nov 28, 2023
0.2.0 Jul 5, 2021
0.1.0 Jul 5, 2021

#628 in Hardware support

47 downloads per month

MIT license

220 lines



tune the backlight!

Change backlight brightness

brack [device] [change]

device (optional) the device to change backlight on (see /sys/class/backlight)
change (optional) absolute value in percent or change in percent prefixed with +/-.

no change will display current value.
no device will try to automatically determine device.


brack +10 # increase brightness with 10%
brack -10 # decrease brightness with 10%
brack 50 # set brightness to 50%
brack intel_backlight +10 # increase brightness with 10% on the intel_backlight device

User access to the backlight

Replace <vendor> with the name in /sys/class/blacklight, e.g. acpi_video0 and add a udev rule, e.g.: /etc/udev/rules.d/backlight.rules:

ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="<vendor>", RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness"
ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="<vendor>", RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness"

and make sure you add the user to the video group:

$ sudo gpasswd -a $USER video