How to make "xset s off" survive a reboot (12.04)

Posted by matteo on Ask Ubuntu See other posts from Ask Ubuntu or by matteo
Published on 2013-10-26T17:36:17Z Indexed on 2014/06/07 15:40 UTC
Read the original article Hit count: 430

Filed under:
|

On an almost-fresh install of Ubuntu 12.04, after disabling screen turning off, screen lock, and suspension on inactivity from all the (two) places one can find under Ubuntu's System Settings, the screen still turns black after some minutes of inactivity. I can't tell for sure whether it only becomes blank/black or turns off.

I've uninstalled gnome-screensaver, which didn't change anything.

Of the several answers I found out there (most of which I didn't try because they were either unclear or reported to not work for everybody), I tried one that DID work:

sudo xset s off

after which I left the computer unattended for hours and the screen never turned black, so it definitely worked.

HOWEVER it does not survive a reboot. After reboot, screen starts turning black again after N minutes of inactivity.

Given that "xset s off" does work until reboot, how do I make that setting permanent?

I guess I could create a script that runs at startup issuing that command, but I think that would be a horrible hack and there should be a cleaner way to accomplish this.

© Ask Ubuntu or respective owner

Related posts about xorg

Related posts about screensaver