View previous topic :: View next topic |
Author |
Message |
Geralt Apprentice
Joined: 14 Jun 2008 Posts: 150
|
Posted: Tue Oct 28, 2008 11:26 pm Post subject: Looking for a screensaver which just turns the display off |
|
|
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 |
|
|
notHerbert Advocate
Joined: 11 Mar 2008 Posts: 2228 Location: 45N 73W
|
Posted: Tue Oct 28, 2008 11:31 pm Post subject: |
|
|
One way is putting 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 |
|
|
Geralt Apprentice
Joined: 14 Jun 2008 Posts: 150
|
Posted: Wed Oct 29, 2008 7:00 pm Post subject: |
|
|
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
So, is there an alternative (lightweight) screensaver? |
|
Back to top |
|
|
defenderBG l33t
Joined: 20 Jun 2006 Posts: 817
|
Posted: Wed Oct 29, 2008 8:03 pm Post subject: |
|
|
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 |
|
|
notHerbert Advocate
Joined: 11 Mar 2008 Posts: 2228 Location: 45N 73W
|
Posted: Wed Oct 29, 2008 8:20 pm Post subject: |
|
|
defenderBG
Where does the lockscreen come from? I don't seem to have one and there is no ebuild. |
|
Back to top |
|
|
Geralt Apprentice
Joined: 14 Jun 2008 Posts: 150
|
Posted: Wed Oct 29, 2008 9:40 pm Post subject: |
|
|
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 |
|
|
defenderBG l33t
Joined: 20 Jun 2006 Posts: 817
|
Posted: Wed Oct 29, 2008 11:03 pm Post subject: |
|
|
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 |
|
|
notHerbert Advocate
Joined: 11 Mar 2008 Posts: 2228 Location: 45N 73W
|
Posted: Thu Oct 30, 2008 6:12 am Post subject: |
|
|
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 |
|
|
Geralt Apprentice
Joined: 14 Jun 2008 Posts: 150
|
Posted: Thu Oct 30, 2008 12:49 pm Post subject: |
|
|
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 |
|
|
sir_nacnud n00b
Joined: 27 Nov 2007 Posts: 33 Location: USA
|
Posted: Thu Nov 06, 2008 12:14 am Post subject: |
|
|
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 |
|
|
notHerbert Advocate
Joined: 11 Mar 2008 Posts: 2228 Location: 45N 73W
|
Posted: Thu Nov 06, 2008 12:28 am Post subject: |
|
|
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 |
|
|
sir_nacnud n00b
Joined: 27 Nov 2007 Posts: 33 Location: USA
|
Posted: Thu Nov 06, 2008 1:03 am Post subject: |
|
|
Can xscreensaver also lock the session? |
|
Back to top |
|
|
notHerbert Advocate
Joined: 11 Mar 2008 Posts: 2228 Location: 45N 73W
|
Posted: Thu Nov 06, 2008 1:15 am Post subject: |
|
|
If you run xscreensaver-demo you should see a Lock screen checkbox. |
|
Back to top |
|
|
sir_nacnud n00b
Joined: 27 Nov 2007 Posts: 33 Location: USA
|
Posted: Thu Nov 06, 2008 2:09 am Post subject: |
|
|
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 |
|
|
ppurka Advocate
Joined: 26 Dec 2004 Posts: 3256
|
Posted: Thu Nov 06, 2008 2:15 am Post subject: |
|
|
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 |
|
|
notHerbert Advocate
Joined: 11 Mar 2008 Posts: 2228 Location: 45N 73W
|
Posted: Thu Nov 06, 2008 3:49 am Post subject: |
|
|
sir_nacnud wrote: | Thanks notHerbert, xscreensaver does what I needed. |
You are welcome. |
|
Back to top |
|
|
Geralt Apprentice
Joined: 14 Jun 2008 Posts: 150
|
Posted: Thu Nov 06, 2008 11:58 am Post subject: |
|
|
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 |
|
|
tarpman Veteran
Joined: 04 Nov 2004 Posts: 1083 Location: Victoria, BC, Canada
|
Posted: Thu Nov 06, 2008 10:56 pm Post subject: |
|
|
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 |
|
|
|