You are not logged in.

#1 2011-12-08 13:45:37

whoops
Member
Registered: 2009-03-19
Posts: 891

pm-utils sometimes hibernate twice

When I resume from hibernate, sometimes it just goes right into hibernation again once. After that, it resumes correctly.  No idea what's wrong.

Problem started a few weeks ago (don't know with which update because first I though I just kept forgetting to press the button when I came back to my machine finding it wasn't switched on -.-"). Didn't change anything relevant on this machine, has been working fine for a long time.

I'm pressing the power-button once to hibernate. I set it to do that in /etc/acpi/events/power. A dirty search shows that this is the only occurrence of "pm-hibernate" in /etc, so I guess there's no double entry there at least?
/etc/ # cat $(find -type f) | grep pm-hibernate -n3
says:

139722-# This is called when the user presses the power button
139723-
139724-event=button/power (PWR.||PBTN)
139725:action=/usr/sbin/pm-hibernate

Logs look OK I guess... except for the fact that I tried to hibernate once only and not again right after, which is what happened:

Thu Dec  8 13:25:01 CET 2011: Running hooks for hibernate.
Running hook /usr/lib/pm-utils/sleep.d/00logging hibernate hibernate:
Linux xarch 3.1.4-1-ARCH #1 SMP PREEMPT Tue Nov 29 08:55:45 CET 2011 x86_64 AMD Phenom(tm) II X6 1090T Processor AuthenticAMD GNU/Linux
Module                  Size  Used by
xhci_hcd               71631  0 
ohci_hcd               21714  0 
hid_logitech           12552  0 
usbhid                 35352  1 hid_logitech
hid                    82435  2 hid_logitech,usbhid
ff_memless              4739  1 hid_logitech
ehci_hcd               40794  0 
ath9k_htc              57050  0 
usbcore               144432  6 xhci_hcd,ohci_hcd,usbhid,ehci_hcd,ath9k_htc
mac80211              221963  1 ath9k_htc
ath9k_common            1858  1 ath9k_htc
ath9k_hw              304895  2 ath9k_htc,ath9k_common
ath                    14770  2 ath9k_htc,ath9k_hw
cfg80211              165668  3 ath9k_htc,mac80211,ath
rfkill                 15498  1 cfg80211
fuse                   66858  2 
ipv6                  288122  20 
cryptd                  8309  0 
aes_x86_64              7508  2 
aes_generic            26138  1 aes_x86_64
it87                   29006  0 
hwmon_vid               3292  1 it87
arc4                    1410  2 
snd_hda_codec_hdmi     22821  4 
joydev                  9895  0 
nvidia              12069499  34 
snd_hda_codec_realtek   282216  1 
snd_hda_intel          22410  6 
snd_hda_codec          81242  3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
edac_core              37552  0 
psmouse                55501  0 
evdev                   9530  9 
serio_raw               4294  0 
firewire_ohci          29650  0 
firewire_core          50872  1 firewire_ohci
wmi                     8475  0 
crc_itu_t               1363  1 firewire_core
snd_hwdep               6357  1 snd_hda_codec
snd_pcm                74368  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
sp5100_tco              4568  0 
i2c_piix4               8224  0 
i2c_core               20460  2 nvidia,i2c_piix4
edac_mce_amd           13215  0 
snd_timer              19544  1 snd_pcm
snd                    58362  18 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
soundcore               6210  1 snd
snd_page_alloc          7153  2 snd_hda_intel,snd_pcm
pcspkr                  1819  0 
k10temp                 2883  0 
asus_atk0110           10131  0 
button                  4470  0 
cpufreq_ondemand        6100  5 
powernow_k8            13347  1 
freq_table              2515  2 cpufreq_ondemand,powernow_k8
processor              24224  1 powernow_k8
mperf                   1275  1 powernow_k8
vboxdrv              1790690  0 
ext4                  375413  2 
mbcache                 5881  1 ext4
jbd2                   70667  1 ext4
crc16                   1359  1 ext4
sr_mod                 14951  0 
cdrom                  36553  1 sr_mod
sd_mod                 28275  5 
pata_acpi               3376  0 
pata_atiixp             3928  0 
pata_via                9142  0 
ahci                   20005  3 
libahci                19559  1 ahci
libata                166724  5 pata_acpi,pata_atiixp,pata_via,ahci,libahci
scsi_mod              132730  3 sr_mod,sd_mod,libata
             total       used       free     shared    buffers     cached
Mem:       8181948    3427644    4754304          0      90932    1785896
-/+ buffers/cache:    1550816    6631132
Swap:     24563380         60   24563320

/usr/lib/pm-utils/sleep.d/00logging hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/00powersave hibernate hibernate:

/usr/lib/pm-utils/sleep.d/00powersave hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/01grub hibernate hibernate:

/usr/lib/pm-utils/sleep.d/01grub hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/11netcfg hibernate hibernate:

/usr/lib/pm-utils/sleep.d/11netcfg hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/49bluetooth hibernate hibernate:

/usr/lib/pm-utils/sleep.d/49bluetooth hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/75modules hibernate hibernate:
Unloading kernel module ehci_hcd...Done.
Unloading kernel module uhci_hcd...Done.
Unloading kernel module ohci_hcd...Done.
Unloading kernel module usbcore...Done.

/usr/lib/pm-utils/sleep.d/75modules hibernate hibernate: success.
Running hook /etc/pm/sleep.d/90alsa hibernate hibernate:

/etc/pm/sleep.d/90alsa hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/90clock hibernate hibernate:

/usr/lib/pm-utils/sleep.d/90clock hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/91wicd hibernate hibernate:

/usr/lib/pm-utils/sleep.d/91wicd hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/94cpufreq hibernate hibernate:

/usr/lib/pm-utils/sleep.d/94cpufreq hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/95led hibernate hibernate:

/usr/lib/pm-utils/sleep.d/95led hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler hibernate hibernate:
nVidia binary video drive detected, not using quirks.

/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/99video hibernate hibernate:

/usr/lib/pm-utils/sleep.d/99video hibernate hibernate: success.
Thu Dec  8 13:25:03 CET 2011: performing hibernate
Thu Dec  8 14:21:11 CET 2011: Awake.
Thu Dec  8 14:21:11 CET 2011: Running hooks for thaw
Running hook /usr/lib/pm-utils/sleep.d/99video thaw hibernate:

/usr/lib/pm-utils/sleep.d/99video thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler thaw hibernate:

/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/95led thaw hibernate:

/usr/lib/pm-utils/sleep.d/95led thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/94cpufreq thaw hibernate:

/usr/lib/pm-utils/sleep.d/94cpufreq thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/91wicd thaw hibernate:

/usr/lib/pm-utils/sleep.d/91wicd thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/90clock thaw hibernate:

/usr/lib/pm-utils/sleep.d/90clock thaw hibernate: success.
Running hook /etc/pm/sleep.d/90alsa thaw hibernate:
ALSA lib pulse.c:229:(pulse_connect) PulseAudio: Unable to connect: Connection refused

aplay: main:660: audio open error: Connection refused

/etc/pm/sleep.d/90alsa thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/75modules thaw hibernate:
Reloaded unloaded modules.

/usr/lib/pm-utils/sleep.d/75modules thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/49bluetooth thaw hibernate:

/usr/lib/pm-utils/sleep.d/49bluetooth thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/11netcfg thaw hibernate:

/usr/lib/pm-utils/sleep.d/11netcfg thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/01grub thaw hibernate:

/usr/lib/pm-utils/sleep.d/01grub thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/00powersave thaw hibernate:

/usr/lib/pm-utils/sleep.d/00powersave thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/00logging thaw hibernate:

/usr/lib/pm-utils/sleep.d/00logging thaw hibernate: success.
Thu Dec  8 14:21:27 CET 2011: Finished.
Initial commandline parameters: 
Thu Dec  8 14:21:27 CET 2011: Running hooks for hibernate.
Running hook /usr/lib/pm-utils/sleep.d/00logging hibernate hibernate:
Linux xarch 3.1.4-1-ARCH #1 SMP PREEMPT Tue Nov 29 08:55:45 CET 2011 x86_64 AMD Phenom(tm) II X6 1090T Processor AuthenticAMD GNU/Linux
Module                  Size  Used by
xhci_hcd               71631  0 
ohci_hcd               21714  0 
hid_logitech           12552  0 
usbhid                 35352  1 hid_logitech
hid                    82435  2 hid_logitech,usbhid
ff_memless              4739  1 hid_logitech
ehci_hcd               40794  0 
ath9k_htc              57050  0 
usbcore               144432  6 xhci_hcd,ohci_hcd,usbhid,ehci_hcd,ath9k_htc
mac80211              221963  1 ath9k_htc
ath9k_common            1858  1 ath9k_htc
ath9k_hw              304895  2 ath9k_htc,ath9k_common
ath                    14770  2 ath9k_htc,ath9k_hw
cfg80211              165668  3 ath9k_htc,mac80211,ath
rfkill                 15498  1 cfg80211
fuse                   66858  2 
ipv6                  288122  20 
cryptd                  8309  0 
aes_x86_64              7508  0 
aes_generic            26138  1 aes_x86_64
it87                   29006  0 
hwmon_vid               3292  1 it87
arc4                    1410  0 
snd_hda_codec_hdmi     22821  4 
joydev                  9895  0 
nvidia              12069499  34 
snd_hda_codec_realtek   282216  1 
snd_hda_intel          22410  6 
snd_hda_codec          81242  3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
edac_core              37552  0 
psmouse                55501  0 
evdev                   9530  7 
serio_raw               4294  0 
firewire_ohci          29650  0 
firewire_core          50872  1 firewire_ohci
wmi                     8475  0 
crc_itu_t               1363  1 firewire_core
snd_hwdep               6357  1 snd_hda_codec
snd_pcm                74368  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
sp5100_tco              4568  0 
i2c_piix4               8224  0 
i2c_core               20460  2 nvidia,i2c_piix4
edac_mce_amd           13215  0 
snd_timer              19544  1 snd_pcm
snd                    58362  18 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
soundcore               6210  1 snd
snd_page_alloc          7153  2 snd_hda_intel,snd_pcm
pcspkr                  1819  0 
k10temp                 2883  0 
asus_atk0110           10131  0 
button                  4470  0 
cpufreq_ondemand        6100  5 
powernow_k8            13347  1 
freq_table              2515  2 cpufreq_ondemand,powernow_k8
processor              24224  1 powernow_k8
mperf                   1275  1 powernow_k8
vboxdrv              1790690  0 
ext4                  375413  2 
mbcache                 5881  1 ext4
jbd2                   70667  1 ext4
crc16                   1359  1 ext4
sr_mod                 14951  0 
cdrom                  36553  1 sr_mod
sd_mod                 28275  5 
pata_acpi               3376  0 
pata_atiixp             3928  0 
pata_via                9142  0 
ahci                   20005  3 
libahci                19559  1 ahci
libata                166724  5 pata_acpi,pata_atiixp,pata_via,ahci,libahci
scsi_mod              132730  3 sr_mod,sd_mod,libata
             total       used       free     shared    buffers     cached
Mem:       8181948    3277432    4904516          0      54156    1672272
-/+ buffers/cache:    1551004    6630944
Swap:     24563380        928   24562452

/usr/lib/pm-utils/sleep.d/00logging hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/00powersave hibernate hibernate:

/usr/lib/pm-utils/sleep.d/00powersave hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/01grub hibernate hibernate:

/usr/lib/pm-utils/sleep.d/01grub hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/11netcfg hibernate hibernate:

/usr/lib/pm-utils/sleep.d/11netcfg hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/49bluetooth hibernate hibernate:

/usr/lib/pm-utils/sleep.d/49bluetooth hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/75modules hibernate hibernate:
Unloading kernel module ehci_hcd...Done.
Unloading kernel module uhci_hcd...Done.
Unloading kernel module ohci_hcd...Done.
Unloading kernel module usbcore...Done.

/usr/lib/pm-utils/sleep.d/75modules hibernate hibernate: success.
Running hook /etc/pm/sleep.d/90alsa hibernate hibernate:

/etc/pm/sleep.d/90alsa hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/90clock hibernate hibernate:

/usr/lib/pm-utils/sleep.d/90clock hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/91wicd hibernate hibernate:

/usr/lib/pm-utils/sleep.d/91wicd hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/94cpufreq hibernate hibernate:

/usr/lib/pm-utils/sleep.d/94cpufreq hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/95led hibernate hibernate:

/usr/lib/pm-utils/sleep.d/95led hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler hibernate hibernate:
nVidia binary video drive detected, not using quirks.

/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/99video hibernate hibernate:

/usr/lib/pm-utils/sleep.d/99video hibernate hibernate: success.
Thu Dec  8 14:21:30 CET 2011: performing hibernate
Thu Dec  8 14:23:29 CET 2011: Awake.
Thu Dec  8 14:23:29 CET 2011: Running hooks for thaw
Running hook /usr/lib/pm-utils/sleep.d/99video thaw hibernate:

/usr/lib/pm-utils/sleep.d/99video thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler thaw hibernate:

/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/95led thaw hibernate:

/usr/lib/pm-utils/sleep.d/95led thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/94cpufreq thaw hibernate:

/usr/lib/pm-utils/sleep.d/94cpufreq thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/91wicd thaw hibernate:

/usr/lib/pm-utils/sleep.d/91wicd thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/90clock thaw hibernate:

/usr/lib/pm-utils/sleep.d/90clock thaw hibernate: success.
Running hook /etc/pm/sleep.d/90alsa thaw hibernate:
ALSA lib pulse.c:229:(pulse_connect) PulseAudio: Unable to connect: Connection refused

aplay: main:660: audio open error: Connection refused

/etc/pm/sleep.d/90alsa thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/75modules thaw hibernate:
Reloaded unloaded modules.

/usr/lib/pm-utils/sleep.d/75modules thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/49bluetooth thaw hibernate:

/usr/lib/pm-utils/sleep.d/49bluetooth thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/11netcfg thaw hibernate:

/usr/lib/pm-utils/sleep.d/11netcfg thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/01grub thaw hibernate:

/usr/lib/pm-utils/sleep.d/01grub thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/00powersave thaw hibernate:

/usr/lib/pm-utils/sleep.d/00powersave thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/00logging thaw hibernate:

/usr/lib/pm-utils/sleep.d/00logging thaw hibernate: success.
Thu Dec  8 14:23:33 CET 2011: Finished.

... and I'm out of ideas. Help? Thx!

Last edited by whoops (2011-12-08 13:47:54)

Offline

#2 2011-12-08 18:13:57

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: pm-utils sometimes hibernate twice

I had a similar problem once.  Here is how I solved it.
http://forums.fedoraforum.org/showthread.php?t=228242

Offline

#3 2011-12-08 18:56:30

whoops
Member
Registered: 2009-03-19
Posts: 891

Re: pm-utils sometimes hibernate twice

Thanks, but I don't understand at all what that does and how to apply the solution to the my power button problem hmm

So the button gets detected twice? Once as acpi event, once as... what / why / how?

Last edited by whoops (2011-12-08 18:56:41)

Offline

#4 2011-12-12 11:17:06

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: pm-utils sometimes hibernate twice

If you remove the XF86* keysym for the power button with xmodmap or xbindkeys, then only the acpi event will be used.  It's worth a try.

Use xmodmap -pke to find what the existing key number is for your power button keysym.  As a guess, XF86Power is the current keysym for your power button.

Offline

#5 2011-12-12 11:37:25

whoops
Member
Registered: 2009-03-19
Posts: 891

Re: pm-utils sometimes hibernate twice

Thanks, that makes sense.

Any idea where I can read more about whatever listens to those keys? I have no idea where that's coming from / what to search for. Is that a new kernel function or something? Or is this a "recent" update to xfce that I didn't see? Trying to decide if maybe it'd be a better idea to remove the acpi part of the problem... when I added that, nothing else provided "hibernate by power button", so maybe I just don't need that any more...

Last edited by whoops (2011-12-12 11:37:40)

Offline

Board footer

Powered by FluxBB