I want to make it so my laptop starts at a low brightness level, which is comfortable for my eyes and easy on the laptop's battery. I found some instructions here on AskUbuntu, and so by using this command:
cat /sys/class/backlight/intel_backlight/brightness
... I discovered that the maximum brightness is 4080
and the ideal brightness that I want to have my laptop default to is 700
. So, I edited my /etc/rc.local
file to have the following line in it:
echo 700 > /sys/class/backlight/acpi_video0/brightness
However, that didn't work. So, after a little more research, I tried this line:
echo 700 > /sys/class/backlight/intel_backlight/brightness
But that also changed nothing.
Now I'm a bit stuck. How do I get my brightness to start at the right level when I log in on my laptop?
Note: It seems that this problem may be made worse by another more general issue of commands not running at startup, which I've asked about in a separate question. I think some of the answers suggested so far may actually work in principle, but I can't verify any of them unless I'm sure my startup programs are executing at all.
xbacklight
work? – Mahesh Feb 02 '14 at 06:21exit 0
in rc.local? can you post your rc.local file? – virtualxtc Feb 03 '14 at 04:12exit 0
. At the moment, I have reset myrc.local
file back to default since nothing was working anyway. – Questioner Feb 03 '14 at 07:01xbacklight
andsetpci
, as suggested in the answers below, and I added them using the autostart GUI. Unfortunately, so far, no command that I have added to the list of startup programs has had the desired effect. – Questioner Feb 03 '14 at 11:28xbacklight
command, which is working, inside rc.local? – Web-E Feb 03 '14 at 11:37xbacklight
command inrc.local
unfortunately did not change anything. – Questioner Feb 04 '14 at 04:24