I was trying to make my laptop running Ubuntu 13.10 remember the brightness from the last time and set it automatically on start-up. I was thinking about using xbacklight to set the brightness. So, as a test run I added xbacklight -set 100 inside /etc/rc.local. But simply it doesn't work. Permission for my rc.local is:

-rwxr-xr-x 1 root root 338 Dec 22 00:08 rc.local

I also tried adding sleep 60 considering its a timing issue. But still no luck.


1 Answer 1


You can put the command into ~/.gnomerc, it will be executed on login (It will be executed on Unity as well).

rc.local is executed before X startup, so the command is executed but it has no effect.

  • But I'll have to wait till I log in. Is there any other way?
    – ashik992
    Dec 21, 2013 at 22:09
  • You can try taking a look at /etc/init/ligthdm.conf.
    – konairius
    Dec 22, 2013 at 12:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .