Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question
    
    
@phineas xbacklight works fine normally but the problem is with rc.local I think. –  ashik992 Dec 21 '13 at 19:23
1  
You cannot use xbacklight in rc.local, that is run from root at boot time, and hoping to have it work in a user X session. –  enzotib Dec 21 '13 at 19:30

1 Answer 1

up vote 3 down vote accepted

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.

share|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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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