How to Save screen brightness settings in Ubuntu 13.10

Last updated: October 23, 2013

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

save-screen-brightness

Twitter

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 let me know if the tutorial is outdated! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via [email protected] Buy me a coffee: https://ko-fi.com/ubuntuhandbook1 |

11 responses to How to Save screen brightness settings in Ubuntu 13.10

  1. thanks, it works :)

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

    Please advice to here and notify my email. thanks

  3. # 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]

    • 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!

  4. Thanks, Ji m, it works perfectly.

  5. Thanks, it works in 12.04

  6. This worked for me on Ubuntu 14.04! Thanks man!~

  7. Thanks, Ji m, it works, i was looking for that for a long time.

  8. It worked on asus x55A with ubuntu 12.04.
    Thanks!

  9. I must have something set up wrong in my Ubuntu 14.04. It didn’t work for me.

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