Linux: (pre)setting the display brightness

Step-by-Step descriptions of how to do things.

Linux: (pre)setting the display brightness

Postby ^rooker » Mon Oct 29, 2018 3:16 am

UNFINISHED. Work in progress...

Every time the computer reboots, the brightness settings are reset. I wanted to have different default brightness when I turn on the computer, because I was a bit tired of the same few keypresses every time I boot it up.

Depending on your system, the path where to find the brightness value (from the shell) is:

(That's it on a Lenovo Thinkpad S21e)

If your path is different (different vendor), try to "tab-find" the right subfolder in /sys/class/backlight.

Here's a list of brightness-steps when using Xubuntu 14.04's default settings (step size = 781):

Code: Select all
7812 brightest
3907 medium
2 off / darkest

Due to the "unix philosophy" that everything's a file, you can use it to set the brightness by writing the desired value to it.
[code]echo 4700 > $SYS_BRIGHT

If you want to set the default when you boot your system, write the above line into your /etc/rc.local.

Remember screen brightness settings in Ubuntu and Linux Mint
  • 0

Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
User avatar
Site Admin
Posts: 1444
Joined: Fri Aug 29, 2003 8:39 pm
Reputation: 0

Return to HowTo's

Who is online

Users browsing this forum: No registered users and 2 guests

Who is online over last 24 hours

Users browsed this forum in the last 24 hours: No registered users and 10 guests

Reputation System ©'