Page 1 of 1

Suspend to Ram and screen lock

Posted: Tue Nov 09, 2010 9:49 am
by prh
Hi all.

I've set up dedicated box for mythtv using OpenSUSE 11.3 with LXDE as the desktop.

Before executing a suspend-to-ram, the screen lock is activated.

This box will run without a keyboard, and I want to disable the screen locking, bit I can't find a setting to do this.

Is there a config file somewhere I can tweak to turn off the screen locking?

Thanks for any advice.

Regards, Paul

Re: Suspend to Ram and screen lock

Posted: Thu Nov 11, 2010 1:54 am
by lyovushka
I think you can disable this from xscreensaver preferences (in Lubuntu Preferences -> Screensaver). There is a checkbox in bottom left corner.

Re: Suspend to Ram and screen lock

Posted: Thu Nov 11, 2010 4:48 am
by Marty Jack
Right. Assuming you have gnome-screensaver and gnome-screensaver-preferences, you can run the preferences setter from a terminal if all else fails and you can't find a menu item for it. It could also be that you have xscreensaver.

Nothing stops you from just deinstalling the screensaver if you don't want to use it. This is all there to avoid a fairly large security hole when you do have a screen.

Re: Suspend to Ram and screen lock

Posted: Mon Nov 29, 2010 8:50 pm
by nobange
I have the same problem, don't want to lock my screen afer resume from sleep, but default installed XFCE Power Manager doesn't respect my setting and still scrren is locking. I don't want to deinstall xscreensaver, I use it but without password. There must be a config file where this thing can be disabled.

Re: Suspend to Ram and screen lock

Posted: Wed Jan 18, 2012 10:13 pm
by stqn
I have the same problem, can't find any way to prevent lxde-logout/lxde-session from locking the screen before suspend to ram (sleep) / suspend to disk (hibernate).

So after several hours of research I tried to kill XScreenSaver before suspend to ram, and it worked! (I'm using Debian Squeeze BTW.)

Just:
sudo leafpad /etc/pm/sleep.d/00_kill_xscreensaver.sh

with the following line:
pkill xscreensaver

Don't forget to:
sudo chmod 700 /etc/pm/sleep.d/00_kill_xscreensaver.sh

That's it. Not pretty but it works :).

Edit: I don't know if it's because I killed xscreensaver, but now lxde-logout doesn't want to hibernate or suspend anymore. I have to use "sudo bash -c 'echo disk > /sys/power/state'" to hibernate.