Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a laptop running Xubuntu 12.10 that doesn't save the brightness setting on reboot. There are some explanations on Ask Ubuntu about how to have a specific brightness be set on reboot, but not how to save the brightness from last time. How can this be done?

share|improve this question
up vote 2 down vote accepted

Create a Bash script to save the brightness:

sudo nano /etc/acpi/

It should contain this:

# Saves brightness settings on reboot/shutdown

cat /sys/class/backlight/acpi_video0/brightness > /etc/acpi/brightness

Make it executable:

sudo chmod +x /etc/acpi/

Switch to the /etc/rc0.d directory and symlink the script to a link in /etc/rc0.d:

cd /etc/rc0.d
sudo ln -s ../acpi/ K99-save-brightness

Do this again in the /etc/rc6.d directory (rc0 is for reboots and rc6 is for shutdowns).

Now edit /etc/rc.local to reload the brightness setting on boot.

On a separate line just before the last line that's already there (exit 0), put:

cat /etc/acpi/brightness > /sys/class/backlight/acpi_video0/brightness




share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.