Ubuntu: rc.local not executing command



Question:

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.


Solution: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.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »