Lock screen on suspend/hibernate
-
- Posts: 7
- Joined: Thu Oct 23, 2008 1:23 am
Lock screen on suspend/hibernate
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...
-
- Posts: 7
- Joined: Thu Oct 23, 2008 1:23 am
Re: Lock screen on suspend/hibernate
gnome-screensaver locks screen after resuming from suspend launched by means configured in gnome-power-preferences.
Last edited by jis on Tue May 05, 2009 10:37 am, edited 1 time in total.
Re: Lock screen on suspend/hibernate
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.
cheers.........
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
Re: Lock screen on suspend/hibernate
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.
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.