How to Save screen brightness settings in Ubuntu 13.10

save ubuntu backlight settings

As your may know, every time Ubuntu boots up you get the maximum level of screen brightness on laptop. Here’s a way to save your brightness by adding a startup script which will automatically adjust screen brightness when Ubuntu boots up.

Tutorial Objectives:

  • Save your screen brightness in Ubuntu 13.10
  • Enjoy!

To get started, press Ctrl+Alt+T on your keyboard to open terminal. When it opens, run commands below:

cat /sys/class/backlight/acpi_video0/max_brightness

It outputs the maximum level of your laptop backlight. Mine is 9. The minimum is 0.

Run command below to edit the /etc/rc.local file, which is a script executed at the end of each multiuser runlevel.

sudo gedit /etc/rc.local

Add following before the last line. Change 0 to the brightness level as you want (from 0 to the max)

echo 0 > /sys/class/backlight/acpi_video0/brightness

By Ji m

I'm a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please comment to remind me outdated tutorial! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via ubuntuhandbook1@gmail.com Buy me a coffee: https://ko-fi.com/ubuntuhandbook1

11 comments

  1. No such file or directory: cat /sys/class/backlight/acpi_video0/max_brightness

    Please advice to here and notify my email. thanks

  2. # echo 100 > /sys/devices/virtual/backlight/nvidia_backlight/brightness

    Note: Must be with root user, sudo does not work.
    Mackbook Pro [Mid 2009] [Nvidia 9400 – 256MB] [Ubuntu 13.10]

    1. If your user is not root you may do once in a terminal:

      sudo chmod 777 /sys/devices/virtual/backlight/nvidia_backlight/brightness

      after that the line in rc.local should work.

      Good luck!

  3. is it same for the keyboard backlight ?
    echo ‘0’ > /sys/class/leds/asus\:\:kbd_backlight/brightness

Comments are closed.

Exit mobile version