The purpose of this program is to provide a simple and Xorg independent way of setting the backlight brightness via the sysfs backlight interface - this way the backlight can be set even in a virtual console (tty).
g++
>=10.2.1
# build
make build
# install
sudo make install
# must be run as root
# use -h for more options
sudo backlight <-l[evel] <level>> [-h[elp] -d[evices] -D[evice] <id>]
Syntax | Description |
---|---|
-h[elp] |
Display usage information |
-l[evel] <level> |
Set display brightness (between 1 and 100) |
-d[evices] |
Display list of available devices |
-D[evice] <id> |
Set brightness of specific device from device list |
sudo backlight -l 100 # -l <%>
backlight -d
Example output:
$ backlight -d
0: intel_backlight