You are not logged in.

#1 2007-11-22 19:05:14

mehldutt
Member
From: Germany
Registered: 2006-01-08
Posts: 128

SOLVE strange problem with suspend and resume with gnome-power-manager

I have pm-utils and gnome installed.

Suspending and hibernation works well from the command line ($ pm-hibernate and $ pm-suspend).  Resuming works without any problems.

Suspending from gnome "Shutdown dialog" works perfectly as well.

However, if suspending is initiated by gnome-power-manager something strange happens:  After pressing the power button resuming switches to hibernation and my laptop turns off.  Resuming from disk works fine again.

Now, suspending works fine again if I change and save any config file in /etc/pm/.
Here comes the strange thing:  It doesn't really matter what I change as long as I save it.

However, as soon as I reboot resuming fails again the way I described above.


Anyone have a clue what's going on?

I get no error messages and I've tried all sorts of boot entries.

Last edited by mehldutt (2007-12-26 19:42:31)

Offline

#2 2007-12-13 12:00:32

mehldutt
Member
From: Germany
Registered: 2006-01-08
Posts: 128

Re: SOLVE strange problem with suspend and resume with gnome-power-manager

Am I alone with this problem?

Offline

#3 2007-12-14 01:09:35

pelle.k
Member
From: Åre, Sweden (EU)
Registered: 2006-04-30
Posts: 667

Re: SOLVE strange problem with suspend and resume with gnome-power-manager

Not that it's of any help to you, but i have ubuntu gutsy running on one of my other computers, and i think i have the exact same problem with suspend to ram, using gpm.
I'll try do some reading on the ubuntu forums, and the bugtracker, to track down the problem if i have the time for it.


"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."

SETH / Jane Roberts

Offline

#4 2007-12-19 08:20:21

mehldutt
Member
From: Germany
Registered: 2006-01-08
Posts: 128

Re: SOLVE strange problem with suspend and resume with gnome-power-manager

After some try and error my guess is that "HAL" is responsible for this problem:

I deinstalled ACPID and 'pm-utils' and switched to 'uswsusp'.
I made the appropriate changes to the appropriate hal-scrips

usr/lib/hal/scripts/hal-system-power-suspend:

#!/bin/sh
/sbin/s2ram --force

usr/lib/hal/scripts/hal-system-power-hibernate:

#!/bin/sh
/sbin/s2disk

After these changes I still have the same problem:  immidiatly after resuming form suspend (via power-button) my laptop hibernates (s2disk).

However, if I delete all entries in "usr/lib/hal/scripts/hal-system-power-hibernate" resuming from suspend works fine again, but hibernate doesn't of course.  So, some script must be calling "usr/lib/hal/scripts/hal-system-power-hibernate" emmediatly after resuming from suspend.

A couple of weeks ago everything worked fine.  My guess is that one of the recent hal-updates is causing this.

How can I figure what script is calling "usr/lib/hal/scripts/hal-system-power-hibernate" after resuming from suspend?

Offline

#5 2007-12-19 12:01:34

vitalstatistix
Member
Registered: 2007-01-31
Posts: 28

Re: SOLVE strange problem with suspend and resume with gnome-power-manager

what could be happening is GPM is getting confused when you resume from suspend. Try running GPM from the command line with:

gnome-power-manager --no-daemon --verbose

You could also pipe the output of the debug to a file so that when it takes you into hibernate and you resume, you can observe the file output. Are you sure your hibernate is works fine? Do you have the right hooks in /etc/mkinitcpio.conf and the right kernel command line with a resume partition (usually swap)? But I think the problem is with GPM and HAL

Offline

#6 2007-12-20 20:37:05

mehldutt
Member
From: Germany
Registered: 2006-01-08
Posts: 128

Re: SOLVE strange problem with suspend and resume with gnome-power-manager

There's an errror message, but I don't think it helps.

[gpm_cell_array_percent_changed] gpm-cell-array.c:554 (11:06:42):     No warning
[gpm_control_suspend] gpm-control.c:451 (11:06:42):     emitting sleep-failure
[gpm_info_event_log] gpm-info.c:591 (11:06:42):     Adding 10 to the event log
*** WARNING ***
[idle_do_sleep] gpm-manager.c:728 (11:06:42):     cannot suspend, so trying hibernate
[gpm_control_get_lock_policy] gpm-control.c:386 (11:06:42):     Using ScreenSaver settings (0)
[gpm_control_hibernate] gpm-control.c:516 (11:06:42):     emitting sleep
[gpm_control_hibernate] gpm-control.c:524 (11:07:55):     emitting resume

Offline

#7 2007-12-23 08:58:58

mehldutt
Member
From: Germany
Registered: 2006-01-08
Posts: 128

Re: SOLVE strange problem with suspend and resume with gnome-power-manager

Downgrading to hal 0.5.9.1-1 solved it.

I'll file a bug report [#9009].

Last edited by mehldutt (2007-12-23 09:26:40)

Offline

#8 2007-12-26 19:41:22

mehldutt
Member
From: Germany
Registered: 2006-01-08
Posts: 128

Re: SOLVE strange problem with suspend and resume with gnome-power-manager

smile Working fine now with updated gnome-power-manager 2.20.2-1, hal 0.5.10-1 and pm-utils 0.99.4-1

Offline

Board footer

Powered by FluxBB