Thursday, June 5, 2014

Change screen brightness from commandline

There is usually a program /usr/bin/intel_backlight that will allow you to set the backlight setting

/usr/bin/intel_backlight xx

where xx is some value between 0 and 100

For older systems, use

sudo setpci -s 00:02.0 f4.b=xx


where xx is 00-FF, and 00:02.0 is my VGA display device as shown by lspci

Alternatively, for newer devices which use the intel_backlight interface, use this command

echo xx | sudo tee /sys/class/backlight/intel_backlight/brightness


where xx is anything from 0 (this will blank out your screen...) to whatever is displayed by cat /sys/class/backlight/intel_backlight/max_brightness

Though it changes more than just brightness, the command


xgamma -gamma xx


where xx is anywhere from 0->1.5 will also change the screen. You can go higher than 1.5, but I haven't tried anything higher.

http://wilmor24.wordpress.com/2010/05/11/change-screen-brightness-from-terminal-ubuntu-10-04/

https://bbs.archlinux.org/viewtopic.php?id=137164

No comments:

Post a Comment