Atleast some of you might have noticed that Ubuntu keeps resetting the brightness level of our laptops whenever we reboot. I have found a simple solution that could atleast help you to start with a particular brightness level each time you restart. The solution is as follows:
1. First set your brightness level to the desired one and see the actual value
gopu@goputec:~$ cat /sys/class/backlight/intel_backlight/brightness 247
2. Add this value to the bottom of rc.local file (above ‘exit 0’) so that each time Ubuntu start, it will set the brightness to the value we specified in the same config file:
gopu@goputec:~$ cat /etc/rc.local #!/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. echo 247 > /sys/class/backlight/intel_backlight/brightness exit 0
3.Test yourself restarting the laptop.