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.


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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.