You are not logged in.

#1 2012-04-14 15:41:10

silverhammermba
Wiki Maintainer
Registered: 2011-04-14
Posts: 156

Stop Screensaver From Displaying Immediately After Startup

I have xscreensaver installed. I have no DE, I just use Awesome for a WM.

I start xscreensaver in my .xinitrc with

xscreensaver -no-splash &

and this mostly works. However shortly after starting X (maybe 10 seconds or so), the screensaver always tries to start. This occurs even if I've already started using my computer, so most of the time it will open and immediately close because it happens while I'm typing or moving the mouse. After that it works as expected: only appearing after 15 minutes of inactivity.

How do I stop the screensaver from displaying right after X starts?

My .xinitrc

#!/bin/sh

wicd-client -t &
numlockx &
sh ~/.fehbg &
cairo-compmgr &
xscreensaver -no-splash &
mpd
dropboxd &

exec ck-launch-session awesome >> ~/.cache/awesome/log 2>> ~/.cache/awesome/errors

Last edited by silverhammermba (2012-04-26 23:54:52)

Offline

#2 2012-04-14 16:29:36

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: Stop Screensaver From Displaying Immediately After Startup

There's a config file in your home, like .xscreensaver (note the dot) with a parameter for this.

Offline

#3 2012-04-14 22:51:52

silverhammermba
Wiki Maintainer
Registered: 2011-04-14
Posts: 156

Re: Stop Screensaver From Displaying Immediately After Startup

I looked at that, but none of the options jumped out at me. Any idea for which one it is?

Offline

#4 2012-04-15 20:53:00

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: Stop Screensaver From Displaying Immediately After Startup

splash:        False

Offline

#5 2012-04-16 05:43:01

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: Stop Screensaver From Displaying Immediately After Startup

If you want to do it the easy way:

# xscreensaver-demo

And simply set the desired values there.


Burninate!

Offline

#6 2012-04-25 02:03:27

silverhammermba
Wiki Maintainer
Registered: 2011-04-14
Posts: 156

Re: Stop Screensaver From Displaying Immediately After Startup

splash: False
didn't work (I'm running it with -no-splash anyway). There are no options in xscreensaver-demo that seem to work.

This isn't the splash screen that's displaying, and I don't think it is screensaver-specific. The screensaver itself is displaying shortly after starting up - as though my computer has been inactive for 15 minutes.

Offline

#7 2012-04-25 05:48:59

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: Stop Screensaver From Displaying Immediately After Startup

splash: False isn't available from the settings as Gcool suggested. But this option or -no-splash should work.

Is there possibly another instance running, started from elsewhere? Just checking ...
I'm running 5.15-3, by the way.

Offline

#8 2012-04-25 06:07:03

rockin turtle
Member
From: Montana, USA
Registered: 2009-10-22
Posts: 227

Re: Stop Screensaver From Displaying Immediately After Startup

Try doing:

xscreensaver -no-splash &
xset s reset

in your .xinitrc. (I have no idea if this will work.)

Offline

#9 2012-04-26 01:10:51

silverhammermba
Wiki Maintainer
Registered: 2011-04-14
Posts: 156

Re: Stop Screensaver From Displaying Immediately After Startup

I don't think another instance is running. If I remove the line from .xinitrc the screensaver doesn't start at all.

xset s reset didn't work either.

Offline

#10 2012-04-26 05:40:58

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: Stop Screensaver From Displaying Immediately After Startup

What does your .xinitrc really look like? It's a mystery ...

Offline

#11 2012-04-26 23:55:36

silverhammermba
Wiki Maintainer
Registered: 2011-04-14
Posts: 156

Re: Stop Screensaver From Displaying Immediately After Startup

.xinitrc added to OP.

Offline

#12 2012-04-27 07:16:43

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: Stop Screensaver From Displaying Immediately After Startup

Maybe this approach in .xinitrc might work better;

exec openbox-session & wmpid=$!

---
start_stuff &
----

wait $wmpid

I've found this more reliable to start things within the session and in the right order. It's from the wiki; https://wiki.archlinux.org/index.php/Xi … e_WM_first

Offline

Board footer

Powered by FluxBB