Hibernate s2disk

Hello at all!

I have a problem with hibernating on my Thinkpad T42. When I hit FN+F12 the laptop tries to hibernate but all that happens is a locked screen. FN+F4 (suspend) works perfectly! When I execute “s2disk” in a root shell it works! So what must I do to have this feature as normal user?

I use openSUSE 11.1 with Gnome 2.24.1

Doesn’t have anyone an idea?

bump

Not sure how much help I can give, as I’m still using openSUSE 11.0, and I’m not sure about recent any suspend/hibernate/kernel changes. Have you had a look in /var/log directory for pm-hibernate.log file or similar? The contents may reveal any problems. Post any useful output here.

Another thought - I’m not familiar with Gnome desktop, but I understand that there is a gnome-power-manager utility. Is hibernation enabled for user?

Anyone else using Gnome with openSUSE 11.1 able to assist?

Hi!

Thanks for your reply! I send you a fresh pm-suspend.log. I pressed FN+F12, the machine tried to hibernate, canceled and I got the screen to unlock my desktop.


2009-03-29 11:36:05.982813453 +0200: running 'hibernate'/'hibernate'/'' hooks.
===== 2009-03-29 11:36:06.024109216 running hook: /usr/lib/pm-utils/sleep.d/00clear =====
===== 2009-03-29 11:36:06.053239742 running hook: /usr/lib/pm-utils/sleep.d/01logging =====
hibernate initiated: Sun Mar 29 11:36:06 CEST 2009

Linux t42 2.6.27.19-3.2-default #1 SMP 2009-02-25 15:40:44 +0100 i686 i686 i386 GNU/Linux
kernel command line: 'root=/dev/disk/by-id/ata-SAMSUNG_HM120JC_S0A0J10L871856-part3 resume=/dev/disk/by-id/ata-SAMSUNG_HM120JC_S0A0J10L871856-part2 splash=silent vga=0x317'
Module                  Size  Used by
crypto_blkcipher       16800  0 
aes_i586                7580  0 
aes_generic            27792  1 aes_i586
ieee80211_crypt_ccmp     5132  0 
ip6t_LOG                6212  7 
xt_tcpudp               2728  2 
xt_pkttype              1560  3 
ipt_LOG                 5708  8 
xt_limit                2056  15 
xt_physdev              2220  2 
af_packet              16344  2 
sco                     9600  2 
bridge                 47628  1 
stp                     2248  1 bridge
bnep                   11536  2 
binfmt_misc             7732  1 
rfcomm                 34436  4 
l2cap                  19828  12 bnep,rfcomm
snd_pcm_oss            43040  0 
snd_mixer_oss          14288  1 snd_pcm_oss
snd_seq                51916  0 
snd_seq_device          7168  1 snd_seq
radeon                131404  2 
drm                    74120  3 radeon
ip6t_REJECT             4984  3 
nf_conntrack_ipv6      20092  4 
ip6table_raw            1792  1 
xt_NOTRACK              1544  4 
ipt_REJECT              2760  3 
xt_state                1904  8 
iptable_raw             2056  1 
iptable_filter          2548  1 
ip6table_mangle         2288  0 
cpufreq_conservative     6440  0 
nf_conntrack_netbios_ns     2152  0 
nf_conntrack_ipv4      10480  4 
cpufreq_userspace       3112  0 
cpufreq_powersave       1640  0 
nf_conntrack           67376  5 nf_conntrack_ipv6,xt_NOTRACK,xt_state,nf_conntrack_netbios_ns,nf_conntrack_ipv4
ip_tables              11260  2 iptable_raw,iptable_filter
acpi_cpufreq            6568  0 
speedstep_lib           3884  0 
ip6table_filter         2408  1 
ip6_tables             12476  4 ip6t_LOG,ip6table_raw,ip6table_mangle,ip6table_filter
x_tables               14416  12 ip6t_LOG,xt_tcpudp,xt_pkttype,ipt_LOG,xt_limit,xt_physdev,ip6t_REJECT,xt_NOTRACK,ipt_REJECT,xt_state,ip_tables,ip6_tables
ipv6                  242088  23 ip6t_REJECT,nf_conntrack_ipv6,ip6table_mangle
fuse                   50644  3 
loop                   14660  0 
dm_mod                 62532  0 
hci_usb                10796  0 
btusb                  10764  0 
bluetooth              52796  10 sco,bnep,rfcomm,l2cap,hci_usb,btusb
pcmcia                 32656  0 
ppdev                   6876  0 
battery                11176  0 
ac                      4480  0 
video                  20308  0 
output                  2732  1 video
ipw2200               133132  0 
ieee80211              26656  1 ipw2200
ieee80211_crypt         5212  2 ieee80211_crypt_ccmp,ieee80211
e1000                 114112  0 
yenta_socket           22776  2 
rsrc_nonstatic         10440  1 yenta_socket
pcmcia_core            33188  3 pcmcia,yenta_socket,rsrc_nonstatic
thinkpad_acpi          56424  0 
rfkill                  8576  2 thinkpad_acpi
button                  6568  0 
snd_intel8x0m          13848  0 
snd_intel8x0           28256  3 
floppy                 52700  0 
led_class               3896  1 thinkpad_acpi
snd_ac97_codec         99756  2 snd_intel8x0m,snd_intel8x0
iTCO_wdt                9940  0 
nvram                   7532  1 thinkpad_acpi
intel_agp              24444  1 
ac97_bus                1584  1 snd_ac97_codec
agpgart                32148  2 drm,intel_agp
iTCO_vendor_support     3368  1 iTCO_wdt
snd_pcm                76668  4 snd_pcm_oss,snd_intel8x0m,snd_intel8x0,snd_ac97_codec
shpchp                 28236  0 
snd_timer              20204  2 snd_seq,snd_pcm
parport_pc             34512  0 
pci_hotplug            27392  1 shpchp
parport                33128  2 ppdev,parport_pc
snd                    56784  15 snd_pcm_oss,snd_mixer_oss,snd_seq,snd_seq_device,snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
i2c_i801               10492  0 
soundcore               6660  1 snd
snd_page_alloc          8048  3 snd_intel8x0m,snd_intel8x0,snd_pcm
i2c_core               29916  1 i2c_i801
sg                     29392  0 
rtc_cmos               10744  0 
sr_mod                 13372  0 
rtc_core               17384  1 rtc_cmos
pcspkr                  2344  0 
joydev                  8948  0 
rtc_lib                 2816  1 rtc_core
cdrom                  32288  1 sr_mod
usbhid                 45516  0 
hid                    35568  1 usbhid
ff_memless              7132  1 usbhid
sd_mod                 31604  6 
crc_t10dif              1704  1 sd_mod
ehci_hcd               46748  0 
uhci_hcd               22976  0 
usbcore               165540  6 hci_usb,btusb,usbhid,ehci_hcd,uhci_hcd
edd                     8616  0 
ata_piix               16416  5 
libata                160512  1 ata_piix
scsi_mod              149260  4 sg,sr_mod,sd_mod,libata
dock                   11804  1 libata
ext3                  123916  4 
mbcache                 7592  1 ext3
jbd                    52792  1 ext3
fan                     4712  0 
thermal                19984  0 
processor              43152  3 acpi_cpufreq,thermal
thermal_sys            11364  4 video,fan,thermal,processor
hwmon                   2916  2 thinkpad_acpi,thermal_sys

             total       used       free     shared    buffers     cached
Mem:       2071736     746744    1324992          0      49764     438736
-/+ buffers/cache:     258244    1813492
Swap:      4000176          0    4000176

===== 2009-03-29 11:36:06.078042063 running hook: /usr/lib/pm-utils/sleep.d/02rtcwake =====
rtcwake alarm not enabled in /etc/pm/config.d/rtcwake.config, doing nothing...
===== 2009-03-29 11:36:06.082504363 running hook: /usr/lib/pm-utils/sleep.d/05led =====
===== 2009-03-29 11:36:06.086288085 running hook: /usr/lib/pm-utils/sleep.d/06autofs =====
===== 2009-03-29 11:36:06.148368619 running hook: /usr/lib/pm-utils/sleep.d/10NetworkManager =====
Error org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
===== 2009-03-29 11:36:06.362016782 running hook: /usr/lib/pm-utils/sleep.d/30s2disk-check =====
INFO: checking for suspend-to-disk prerequisites...
  using userspace suspend method
  setting resume device to /dev/sda2
  setting image size to 954655948
  adding these parameters from /etc/suspend.conf:
    resume device = /dev/sda2
    splash = y
    shutdown method = platform
===== 2009-03-29 11:36:06.421379371 running hook: /usr/lib/pm-utils/sleep.d/45pcmcia =====
ejecting PCMCIA cards...
===== 2009-03-29 11:36:06.668388487 running hook: /usr/lib/pm-utils/sleep.d/50modules =====
===== 2009-03-29 11:36:06.774447248 running hook: /usr/lib/pm-utils/sleep.d/80acpi-fan =====
===== 2009-03-29 11:36:06.789004409 running hook: /usr/lib/pm-utils/sleep.d/80videobios =====
===== 2009-03-29 11:36:06.827554291 running hook: /usr/lib/pm-utils/sleep.d/94cpufreq =====
===== 2009-03-29 11:36:06.887661948 running hook: /usr/lib/pm-utils/sleep.d/95led =====
===== 2009-03-29 11:36:06.895374103 running hook: /usr/lib/pm-utils/sleep.d/95packagekit =====
===== 2009-03-29 11:36:06.918531243 running hook: /usr/lib/pm-utils/sleep.d/99Zgrub =====
INFO: running prepare-grub
/usr/lib/pm-utils/sleep.d/99Zgrub: line 14: /boot/grub/menu.lst: No such file or directory
WARNING: no kernelfile matching the running kernel found
running kernel: '2.6.27.19-3.2-default', probably booting kernel: 'vmlinuz'
ERROR: kernel version mismatch, cannot suspend to disk
===== 2009-03-29 11:36:06.933807769 running hook: /usr/lib/pm-utils/sleep.d/99info =====
2009-03-29 11:36:06.938218387: done running hibernate/hibernate hooks.
2009-03-29 11:36:06.939965258 +0200: running 'hibernate'/'thaw'/'reverse' hooks.
===== 2009-03-29 11:36:06.961134435 running hook: /usr/lib/pm-utils/sleep.d/99info =====
===== 2009-03-29 11:36:06.964408315 running hook: /usr/lib/pm-utils/sleep.d/99Zgrub =====
INFO: running grub-once-restore
===== 2009-03-29 11:36:06.970290629 running hook: /usr/lib/pm-utils/sleep.d/95packagekit =====
method return sender=:1.84 -> dest=:1.83 reply_serial=2
===== 2009-03-29 11:36:07.349766059 running hook: /usr/lib/pm-utils/sleep.d/95led =====
===== 2009-03-29 11:36:07.356485909 running hook: /usr/lib/pm-utils/sleep.d/94cpufreq =====
===== 2009-03-29 11:36:07.369139197 running hook: /usr/lib/pm-utils/sleep.d/80videobios =====
===== 2009-03-29 11:36:07.372488506 running hook: /usr/lib/pm-utils/sleep.d/80acpi-fan =====
===== 2009-03-29 11:36:07.375680533 running hook: /usr/lib/pm-utils/sleep.d/50modules =====
===== 2009-03-29 11:36:07.383760613 running hook: /usr/lib/pm-utils/sleep.d/45pcmcia =====
inserting PCMCIA cards...
===== 2009-03-29 11:36:07.665154556 running hook: /usr/lib/pm-utils/sleep.d/30s2disk-check =====
===== 2009-03-29 11:36:07.669418786 running hook: /usr/lib/pm-utils/sleep.d/10NetworkManager =====
method return sender=:1.9 -> dest=:1.86 reply_serial=2
===== 2009-03-29 11:36:07.724208726 running hook: /usr/lib/pm-utils/sleep.d/06autofs =====
===== 2009-03-29 11:36:07.748870805 running hook: /usr/lib/pm-utils/sleep.d/05led =====
===== 2009-03-29 11:36:07.757944587 running hook: /usr/lib/pm-utils/sleep.d/02rtcwake =====
===== 2009-03-29 11:36:07.768837594 running hook: /usr/lib/pm-utils/sleep.d/01logging =====
===== 2009-03-29 11:36:07.777460760 running hook: /usr/lib/pm-utils/sleep.d/00clear =====
2009-03-29 11:36:07.799082788: done running hibernate/thaw hooks.

I hope it helps a little. I don’t think there’s a possibility to grant a user to hibernate a laptop with the gnome-power-manager. You can only define the behavior there e.g. what should happen if you close the lid and so on.

INFO: running prepare-grub
/usr/lib/pm-utils/sleep.d/99Zgrub: line 14: /boot/grub/menu.lst: No such file or directory
WARNING: no kernelfile matching the running kernel found
running kernel: ‘2.6.27.19-3.2-default’, probably booting kernel: ‘vmlinuz’
ERROR: kernel version mismatch, cannot suspend to disk

This looks like it could be the problem. It doesn’t know which kernel to boot from, so aborts hibernation (because thawing won’t work).

Can you post ‘/boot/grub/menu.lst’ here?

A bit of googling reveals a few similar issues for others. In particular, one user found (in his case) a solution as described here.

I’m out of time to investigate further - time for me to go to work now…good luck.

Sorry for the late reply. Here is my /boot/grub/menu.lst:


# Modified by YaST2. Last modification on Sun Mar  1 22:06:21 CET 2009
default 0
timeout 8
##YaST - generic_mbr
gfxmenu (hd0,0)/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 11.1 - 2.6.27.19-3.2
    root (hd0,0)
    kernel /vmlinuz-1.6.27.19-3.2-default root=/dev/disk/by-id/ata-SAMSUNG_HM120JC_S0A0J10L871856-part3 resume=/dev/disk/by-id/ata-SAMSUNG_HM120JC_S0A0J10L871856-part2 splash=silent showopts vga=0x317
    initrd /initrd-2.6.27.19-3.2-default

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.1 - 2.6.27.19-3.2
    root (hd0,0)
    kernel /vmlinuz-2.6.27.19-3.2-default root=/dev/disk/by-id/ata-SAMSUNG_HM120JC_S0A0J10L871856-part3 showopts ide=nodma apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe vga=0x317
    initrd /initrd-2.6.27.19-3.2-default

Argh!!! I got it! Actually I don’t do an automount for /boot (security). But without mounted /boot partition no hibernate. :shame:

With Gentoo it was no problem but openSUSE has a different behavior somehow. Well…fixed! I was really wondering about it cause the IBM Thinkpad T42 is really good supported. But now everything is fine.

Argh!!! I got it! Actually I don’t do an automount for /boot (security). But without mounted /boot partition no hibernate.

Yes, that would cause this problem. Good result.