Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Looking for a screensaver which just turns the display off
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Geralt
Apprentice
Apprentice


Joined: 14 Jun 2008
Posts: 150

PostPosted: Tue Oct 28, 2008 11:26 pm    Post subject: Looking for a screensaver which just turns the display off Reply with quote

Hi,

I'm looking for a screensaver which does not display any fancy stuff, but just turns the display off, and if there's some key/mouse input it should display a login-box and after a certain amount of time turn the display off again.
Is there something that can do this? I looked into xlockmore, but it seems it's only good for fancy stuff. xscreensaver could probably do it, but I don't like it's prompt screen and don't want to patch the source (i.e. do not use the package in portage).









Geralt.
Back to top
View user's profile Send private message
notHerbert
Advocate
Advocate


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Tue Oct 28, 2008 11:31 pm    Post subject: Reply with quote

One way is putting
Code:
dpmsOff:    1:00:00
in your $HOME/.xscreensaver file.
That will turn off the monitor in exactly 1 hour.
You can also run xscreensaver-demo, go to the advanced tab and set the timings you prefer.



You can also run xset dpms 600 1200 1800
That will put your monitor in standby mode in 10 minutes,
in suspend mode in 20 minutes,
and in off mode in 30 minutes.

xset dpms 60 60 60 will turn the monitor off in 1 minute.

Use xset -dpms to disable.

You can put such a command in .xinitrc and/or .xsession too. :)
Back to top
View user's profile Send private message
Geralt
Apprentice
Apprentice


Joined: 14 Jun 2008
Posts: 150

PostPosted: Wed Oct 29, 2008 7:00 pm    Post subject: Reply with quote

Cool, thanks, but with this alone I don't get locking and unfortunately you can't switch the display off if there's some activity going on, which is the case when using xlockmore :cry:
So, is there an alternative (lightweight) screensaver?
Back to top
View user's profile Send private message
defenderBG
l33t
l33t


Joined: 20 Jun 2006
Posts: 817

PostPosted: Wed Oct 29, 2008 8:03 pm    Post subject: Reply with quote

I use "/usr/bin/xset dpms force off" to turn the display of. Just add the display locking command, which is for your de, like for examle "lockscreen && /usr/bin/xset dpms force off". Then when it works you can create an icon or key shortcut.
Back to top
View user's profile Send private message
notHerbert
Advocate
Advocate


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Wed Oct 29, 2008 8:20 pm    Post subject: Reply with quote

defenderBG

Where does the lockscreen come from? I don't seem to have one and there is no ebuild.
Back to top
View user's profile Send private message
Geralt
Apprentice
Apprentice


Joined: 14 Jun 2008
Posts: 150

PostPosted: Wed Oct 29, 2008 9:40 pm    Post subject: Reply with quote

I just found a nice one x11-misc/slock. It just turns the display off and you have to enter your password.
It keeps the display off, or at least tries to. If you move the mouse or type something you can see how the display is always turned on and off again (you don't see anything of the screen only some dark wave rushing over the screen). I don't think this is a nice solution, but then I don't think there's another way.
Back to top
View user's profile Send private message
defenderBG
l33t
l33t


Joined: 20 Jun 2006
Posts: 817

PostPosted: Wed Oct 29, 2008 11:03 pm    Post subject: Reply with quote

notHerbert wrote:
Where does the lockscreen come from? I don't seem to have one and there is no ebuild.


I just though it up as a name. I mean I wanted to give an example of how it should work. For example kde has kdesktop_lock --forcelock, which is used to lock the screen.
Back to top
View user's profile Send private message
notHerbert
Advocate
Advocate


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Thu Oct 30, 2008 6:12 am    Post subject: Reply with quote

Ok, I get it, so an alias could possibly be something like this
Code:
alias lockscreen='xset dpms force off;xlock -mode blank'
Back to top
View user's profile Send private message
Geralt
Apprentice
Apprentice


Joined: 14 Jun 2008
Posts: 150

PostPosted: Thu Oct 30, 2008 12:49 pm    Post subject: Reply with quote

Just for the protocol: I switched from slock to "xset dpms force off && xlock -mode blank" using xlockmore. Why? Because xautolock and xfce depend on a locker and slock is not one of them.
Back to top
View user's profile Send private message
sir_nacnud
n00b
n00b


Joined: 27 Nov 2007
Posts: 33
Location: USA

PostPosted: Thu Nov 06, 2008 12:14 am    Post subject: Reply with quote

Not to hijack this thread, but I am looking for a way to automatically lock my session when the x server turns off my monitors via DPMS. I am using KDE 3.5.9 and I've looked at kscreensaver. While it can lock the session, is doesn't seem to have an option to turn my monitors off instead of displaying a screensaver.
Back to top
View user's profile Send private message
notHerbert
Advocate
Advocate


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Thu Nov 06, 2008 12:28 am    Post subject: Reply with quote

Xscreensaver can do that. You can disable Kscreensaver in KDE, and instead configure xscreensaver to Autostart in KDE with a tiny script in the $HOME/.kde/Autostart directory. Run xscreensaver-demo go to the Advanced tab where you can setup xscreensaver to shut off the monitor via DPMS.

cat $HOME/.kde/Autostart/xscreensaver:
#/bin/bash
xscreensaver &


remember to chmod +x the script.
Back to top
View user's profile Send private message
sir_nacnud
n00b
n00b


Joined: 27 Nov 2007
Posts: 33
Location: USA

PostPosted: Thu Nov 06, 2008 1:03 am    Post subject: Reply with quote

Can xscreensaver also lock the session?
Back to top
View user's profile Send private message
notHerbert
Advocate
Advocate


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Thu Nov 06, 2008 1:15 am    Post subject: Reply with quote

If you run xscreensaver-demo you should see a Lock screen checkbox.
Back to top
View user's profile Send private message
sir_nacnud
n00b
n00b


Joined: 27 Nov 2007
Posts: 33
Location: USA

PostPosted: Thu Nov 06, 2008 2:09 am    Post subject: Reply with quote

Thanks notHerbert, xscreensaver does what I needed.

Last edited by sir_nacnud on Thu Nov 06, 2008 2:22 am; edited 1 time in total
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Thu Nov 06, 2008 2:15 am    Post subject: Reply with quote

Or maybe alock (it is in portage).
EDIT: forget it. I think it doesn't even have a password prompt gui.
_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
notHerbert
Advocate
Advocate


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Thu Nov 06, 2008 3:49 am    Post subject: Reply with quote

sir_nacnud wrote:
Thanks notHerbert, xscreensaver does what I needed.


You are welcome. :P
Back to top
View user's profile Send private message
Geralt
Apprentice
Apprentice


Joined: 14 Jun 2008
Posts: 150

PostPosted: Thu Nov 06, 2008 11:58 am    Post subject: Reply with quote

ppurka wrote:
Or maybe alock (it is in portage).
EDIT: forget it. I think it doesn't even have a password prompt gui.

At least slock has only a blank screen, I think it's ok if you're the only one using this computer, ever. But at least a Text message which prompts you for your password would be nice. So it's xlockmore for me with "xlock -mode blank" :-)
Back to top
View user's profile Send private message
tarpman
Veteran
Veteran


Joined: 04 Nov 2004
Posts: 1083
Location: Victoria, BC, Canada

PostPosted: Thu Nov 06, 2008 10:56 pm    Post subject: Reply with quote

notHerbert wrote:
cat $HOME/.kde/Autostart/xscreensaver:
#/bin/bash
xscreensaver &

Messy and unnecessary.
Code:
cd ~/.kde/Autostart
rm -f xscreensaver
ln -s `which xscreensaver`

And slightly more on topic, I'm doing well with slock.
_________________
Saving the world, one kilobyte at a time.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum