3

I have Ubuntu 14.04 with XFCE as my desktop environment. After disabling screen blanking and screensaver from settings, my screen still went blank after 10 minutes no matter what I've tried. So I found out that I had to disable DPMS and I can do that by running xset -dpms from terminal and it works great, but I have to run it each time I restart my computer. So I decided to add that to my startup applications list and created a startup application with this code xset s off && xset -dpms. But after I restart, I see that my DPMS is still not disabled and screen goes black after 10 minutes again. What can I do to fix this? Why isn't the code that I set up running on startup?

2 Answers2

1

I found a solution from this post:

https://bbs.archlinux.org/viewtopic.php?id=104338

The problem seems to be caused by "timing", and the solution is:

(sleep 15s && xset [your settings...]) &

The solution is very inelegant, but it works for now. I hope someone can find out the exact cause and a better solution.

0

Try making it into a script.

#!/bin/sh xset s off xset -dpms

Give it an appropriate name and make it executable and then add it to your startup items. You can make it executable by right clicking the file, selecting properties and checking the "Allow to run as application" box.

amanthethy
  • 1,251