When I switch to a console by Ctrl-Alt-F1, the screen becomes darker than in Ctrl-Alt-F7.
So I wonder how to adjust brightness in command line without reboot? My Ubuntu is 14.04 on Thinkpad T400 laptop.
You can adjust your brightness using the following command:
echo 7 | sudo tee /sys/class/backlight/acpi_video0/brightness
The maximum value is available with:
$ cat /sys/class/backlight/acpi_video0/max_brightness
15
You may have to find the right device (here mine was acpi_video0
but you can also have intel_backlight
).
echo 7 | sudo tee /sys/class/backlight/acpi_video0/brightness
change the brightness immediately?
xrandr -q | grep " connected"
Type that to find out the first block of text it spits out, which is your display.
Use that with the next command:
xrandr --output VGA1 --brightness 0.7
Go get it back to original brightness:
xrandr --output VGA1 --brightness 1
Can't open display
. They can run in graphical console (i.e. Ctrl-Alt-F7). (2) How can I check the current brightness in either a text or a graphicl console?