You are not logged in.

#1 2012-01-28 19:30:36

kilmister
Member
Registered: 2012-01-28
Posts: 22

Permanently disable X/openbox screensaver (black screen after 10mins)

Hey,

I run Archlinux with LXDE (openbox) for a few weeks now.

I've been trying to disable the black screen that openbox (or is it triggered farther above, at X level?) shows me after 10 minutes.

It works with the command "xset -dpms s off", which suggests that the screensaver is not openbox's fault, but X's.
However, xset's manpage says the settings I do will be reset when I log out.

How can I permanently disable the screensaver?

Thanks in advance,
Alex

Offline

#2 2012-01-28 20:14:04

b4data
Member
Registered: 2010-12-14
Posts: 141

Re: Permanently disable X/openbox screensaver (black screen after 10mins)

Add "xset -dpms s off" to your .xinitrc or your openbox autostart script?

Offline

#3 2012-01-29 19:05:01

rwd
Member
Registered: 2009-02-08
Posts: 664

Re: Permanently disable X/openbox screensaver (black screen after 10mins)

To turn off just the screensaver, and not dpms:

xset s off

Please read the wiki before asking:
https://wiki.archlinux.org/index.php/Di … _Signaling

If you only want to disable the screensaver/blanking while watching movies you can let mplayer and vlc disable the screensaver while playing as well.

Last edited by rwd (2012-01-29 19:43:53)

Offline

#4 2012-01-30 00:24:06

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: Permanently disable X/openbox screensaver (black screen after 10mins)

rwd wrote:

If you only want to disable the screensaver/blanking while watching movies you can let mplayer and vlc disable the screensaver while playing as well.

That doesn't seem to work here with VLC for some reason.  I am going to try the terminal commands - but that's kind of kludgy IMO.

Offline

#5 2012-01-30 00:48:56

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: Permanently disable X/openbox screensaver (black screen after 10mins)

I have xset -dpms;xset s noblank in my .xinitrc and it works. But everytime I play vlc I will have to reset it after the movie (no blanking during the movie). No issues if I use mplayer.

Offline

#6 2012-01-30 00:52:58

kleskjr
Member
Registered: 2011-12-31
Posts: 34

Re: Permanently disable X/openbox screensaver (black screen after 10mins)

There is a script which disables dpms while watching (vlc and flash): https://github.com/iye/lightsOn

Offline

#7 2012-01-30 03:28:16

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: Permanently disable X/openbox screensaver (black screen after 10mins)

kleskjr wrote:

There is a script which disables dpms while watching (vlc and flash): https://github.com/iye/lightsOn

Good post!

Had to modify it a bit for it to work.  Also added the Opera browser to the mix.  In particular, pgrep -lc and pgrep -lfc choked.  Modified those lines where necessary.  Haven't tested with Firefox, Chromium or MPlayer, as I don't have them installed.  Should work though.  I do not have any screensaver installed, but my screen was blanking after a few minutes.  The file below fixed that.

http://pastebin.com/PYhJU8GU

Offline

Board footer

Powered by FluxBB