You are not logged in.

#1 2007-09-01 17:43:32

schallstrom
Member
Registered: 2007-08-01
Posts: 11

Hibernation: Lock screen after resuming

Hi,

I managed to get hibernation running with the help of the Howto in the Arch wiki, but when resuming I don't have to type in any password, so my system is completely unprotected when hibernating.

What would I have to do that the gnome-screensaver gets activated after resuming from hibernation?

Thanks for any hints.

Offline

#2 2007-09-01 17:56:24

ise
Developer
From: Karlsruhe / Germany
Registered: 2005-10-06
Posts: 404
Website

Re: Hibernation: Lock screen after resuming

Are you using the suspend2 kernel?
I don't know if my hint helps, but you can lock your screen in /etc/hibernate/common.conf
There you can specify what method you want to use....

Daniel

Offline

#3 2007-09-01 19:25:00

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Hibernation: Lock screen after resuming

If you're using gnome the option to lock screen after resume can be set in gnome-power-manager via gconf-editor.

Offline

#4 2007-09-02 16:02:14

schallstrom
Member
Registered: 2007-08-01
Posts: 11

Re: Hibernation: Lock screen after resuming

Actually currently I have to hibernate my computer by executing the 'hibernate' command, but I would like to do it through gnome-power-manager but it doesn't work.

I found the following in /var/log/user.log.

Sep  2 17:58:30 mir gnome-power-manager: (mo) Hibernating computer because user clicked hibernate from tray menu
Sep  2 17:58:31 mir gnome-power-manager: (mo) A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "org.freedesktop.Hal.Device.SystemPowerManagement" member "Hibernate" error name "(unset)" destination ":1.9") code='9' quark='dbus-glib-error-quark'
Sep  2 17:58:31 mir gnome-power-manager: (mo) Resuming computer
Sep  2 17:58:31 mir gnome-power-manager: (mo) hibernate failed

What can I do?

Last edited by schallstrom (2007-09-02 16:02:38)

Offline

#5 2007-09-02 19:27:15

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Hibernation: Lock screen after resuming

is your user in all the necessary groups?  like "hal" "dbus" "power", I'm not sure what hal is checking, but it does look like a permission problem of some kind.

Offline

#6 2007-09-02 20:23:57

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: Hibernation: Lock screen after resuming

Users should not be member of hal and dbus groups. The "power" group is for suspend/hibernate though.

Offline

#7 2007-09-02 20:33:07

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Hibernation: Lock screen after resuming

JGC wrote:

Users should not be member of hal and dbus groups.

I didn't know that - any particular reason for that (just curious)?

Offline

#8 2007-09-03 12:52:15

schallstrom
Member
Registered: 2007-08-01
Posts: 11

Re: Hibernation: Lock screen after resuming

I added my user to the power group but got the same error in user.log. Then I added my user to power, dbus and hal group: still the same error.

Offline

#9 2007-09-14 12:51:06

ruscook
Member
From: Sydney Australia
Registered: 2007-08-27
Posts: 105
Website

Re: Hibernation: Lock screen after resuming

fwojciec wrote:
JGC wrote:

Users should not be member of hal and dbus groups.

I didn't know that - any particular reason for that (just curious)?

I don't know about dbus but I thought you HAD to be in hal for gnome/nautilus based automounting for USB sticks to work.

Russ

Offline

#10 2007-09-14 14:44:36

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: Hibernation: Lock screen after resuming

ruscook, that has never been the case for me... I add my users to the following groups only:
* audio
* network
* optical
* power
* storage

That allows for automount of all devices, including USB sticks, external hard drives, and CD/DVDs.

PS: I should have mentioned that my results are successful whether I'm running KDE, GNOME, or even Openbox.

Last edited by thayer.w (2007-09-14 14:46:11)


thayer williams ~ cinderwick.ca

Offline

#11 2007-09-14 17:53:34

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Hibernation: Lock screen after resuming

ruscook: after reading JGCs comment I've removed my user from hal and dbus groups (my user is in all the groups thayer.w listed above though) and all works as it should.  I don't know where I've read about adding user to hal and dbus groups, but I guess that information was not accurate.

Offline

Board footer

Powered by FluxBB