Page 1 of 1

Lock screen on suspend/hibernate

Posted: Thu Oct 23, 2008 1:29 am
by Gullible Jones
Is it possible to make lxsession or lxsession-lite lock the screen (e.g. via xscreensaver-command --lock) on suspend or hibernation? This strikes me as kind of an essential requirement for privacy and whatnot, so I figure there has to be some way to do it...

Re: Lock screen on suspend/hibernate

Posted: Sun Nov 09, 2008 7:25 pm
by Gullible Jones
Anyone?

Re: Lock screen on suspend/hibernate

Posted: Thu Jan 08, 2009 5:04 pm
by jis
gnome-screensaver locks screen after resuming from suspend launched by means configured in gnome-power-preferences.

Re: Lock screen on suspend/hibernate

Posted: Tue May 05, 2009 9:36 am
by jeevs
Right click on desktop and create new text file with name: "lockscreen.desktop"

Right click on the file and open with "leafpad"

now paste thefollowing code into it and save it.

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Name=Lock Screen
Comment=Locks your screen
Icon=xscreensaver
Exec=xscreensaver-command -lock
Terminal=false
Type=Application
cheers.........

Re: Lock screen on suspend/hibernate

Posted: Tue May 05, 2009 10:50 am
by jis
That creates launcher for manually locking screen, but the question was if this can be done automatically after resume from suspend.

I suppose one could make a custom hook that runs screen lock on resume, see http://en.opensuse.org/Pm-utils#Creating_your_own_hooks for instructions.