Saving Ubuntu Brightness Setting

After a fresh install I found that my brightness setting kept resetting itself after a reboot.
In order to save the Ubuntu brightness setting, I added the following line to my /etc/rc.local file:

#!/bin/sh -e
# rc.local
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
# In order to enable or disable this script just change the execution
# bits.
# By default this script does nothing.
rfkill block bluetooth
echo 0 > /sys/class/backlight/acpi_video0/brightness
exit 0

The 0 can be replaced with any brightness value from 0 to 10.

Leave a Reply

Your email address will not be published. Required fields are marked *