Due to hardware compatibility problem, some Ubuntu laptops’ screen brightness reset to the lowest or highest on every boot. It’s inconvenient to configure the screen birghtness on every login.

Here’s a way to save the screen brightness settings in Ubuntu laptop.

Just do this at your own risk!

Open a terminal window, and execute this command to edit /etc/rc.local:

sudo gedit /etc/rc.local

Add this before the last line “exit 0″:

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

here number 4 is the value of your screen brightness. Use this command to check the maximum:

cat /sys/class/backlight/acpi_video0/max_brightness