Topic: [Solved] Screen won't lock

Ever since I switched to CrunchBang 10 “Statler” Alpha 2 I have been unable to lock the screen.

When I click on "lock screen" in the openbox menu nothing happens. I'm still finding my way around with linux so I don't know how to use CLI to investigate the problem further.

I had a mooch about on these forums for a solution but the only thing I came across was the following:

http://crunchbanglinux.org/forums/topic … wont-lock/

... in which someone discovered they had...

gnome-screensaver &

...commented out in their autostart.sh file. I have checked and this is not my problem.

Anyone have any ideas where I should go from here? Any help much appreciated.

Last edited by convergent (2010-09-08 11:48:31)

Re: [Solved] Screen won't lock

try gnome-screensaver -l to lock, else in CB A2 - custom script is used to lock "cb-lock", the one uses xscreensaver deamon so the comand is "xscreensaver-command -lock"
use can change cb-lock to use gnome-screensaver "gksu medit /usr/bin/cb-lock" ... it is really simple script

Last edited by TRF (2010-09-05 18:31:25)

Re: [Solved] Screen won't lock

gnome-screensaver -l
returns
bash: gnome-screensaver: command not found

xscreensaver-command -lock
returns
xscreensaver-command: no screensaver is running on display :0.0

Re: [Solved] Screen won't lock

Try running xscreensaver-demo then in the File menu there should an option to enable the screensaver. Afterwards try locking the screen.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: [Solved] Screen won't lock

Okay, so running xscreensaver-demo opens the screensaver window. I then get a warning message as follows.

"The XScreenSaver daemon doesn't seem to be running on display ":0.0".  Launch it now?"

If I OK that then sure enough it allows me to set a time for automatic screen lock and allows me to lock it manually. Great.

However, if I reboot I have to go through the same process again before I can lock the screen. How can I get the XScreenSaver daemon to run automatically on startup?

Re: [Solved] Screen won't lock

Add "xscreensaver -no-splash &" to your Openbox autostart.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: [Solved] Screen won't lock

Okay great, that seems to have fixed it. Thanks.

I'd also been having trouble with VLC logging me out if I switched to fullscreen - that seems to be fixed now too.

What was my problem?