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.

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.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Just add it to your .xsessionrc or .xinitrc file.

share|improve this answer

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.