Backlight-C is a utility for changing the screen-brightness on laptops running linux.
Make sure gcc or another C-compiler is installed.
Download the program with git clone https://github.com/vidarandrebo/backlight-c.git
Change dir cd backlight-c
In src/config.h:
-
Change the
UPPERvalue to the value specified in/sys/class/backlight/**/max_brightness. -
Change the
BACKLIGHTvalue to the correct path for your brightness file.
Complile the file gcc -O3 src/backlight.c -o src/backlight
Move the file to $PATH - cp src/backlight /usr/bin/backlight
Change the backlight with sudo backlight +/- <number>