Can't Hibernate

I have got a Dell XPS M1530 with openSUSE 11. I tried to set this thing up so it hibernates (suspend to disk, I think) when the lid is closed.

The problem is that it freezes when it tries to come back to suse. It makes it through the BIOS ok, but when it comes back into suse, it displays a lot of messages, the last few being

s2disk: Snapshotting System
s2disk: Snapshot done
s2disk: returned to userspace

It just hangs there. I have to hold the power key down to restart it.

If anyone can help with this, I’d really appreciate it!

Try issuing

pm-hibernate (as root)

Then once resumed or restarted

cat /var/log/pm-utils.log

Post the output here. (Often graphics chipsets or network hardware can be the cause of this).

I don’t actually have pm-utils.log. I do have pm-suspend.log, but maybe that’s for suspending to ram?

You know what, I am going to post the contents of pm-suspend.log. I noticed that the time stamp on it matches the time I tried to hibernate. Let me know if this is incorrect.

Sun Jan 11 16:34:01 CST 2009: running hibernate hooks.
===== Sun Jan 11 16:34:02 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/00clear =====
===== Sun Jan 11 16:34:02 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/01logging =====
hibernate initiated: Sun Jan 11 16:34:02 CST 2009

Module Size Used by
ip6t_LOG 23428 7
xt_tcpudp 19584 2
xt_pkttype 18304 3
ipt_LOG 22788 8
xt_limit 19076 15
binfmt_misc 28040 1
snd_pcm_oss 64256 0
snd_mixer_oss 33408 1 snd_pcm_oss
snd_seq 73664 0
snd_seq_device 25100 1 snd_seq
af_packet 38656 4
ip6t_REJECT 21376 3
nf_conntrack_ipv6 33528 4
ipt_REJECT 20352 3
xt_state 18944 8
iptable_mangle 19712 0
iptable_nat 23688 0
nf_nat 35736 1 iptable_nat
iptable_filter 19840 1
ip6table_mangle 19584 0
nf_conntrack_netbios_ns 19200 0
nf_conntrack_ipv4 27652 7 iptable_nat,nf_nat
nf_conntrack 79188 6 nf_conntrack_ipv6,xt_state,iptable_nat,nf_nat,nf_conntrack_netbios_ns,nf_conntrack_ipv4
ip_tables 30224 3 iptable_mangle,iptable_nat,iptable_filter
cpufreq_conservative 24456 0
cpufreq_userspace 22660 0
cpufreq_powersave 18176 0
acpi_cpufreq 26380 1
speedstep_lib 21508 0
ip6table_filter 19712 1
ip6_tables 31376 3 ip6t_LOG,ip6table_mangle,ip6table_filter
x_tables 33668 11 ip6t_LOG,xt_tcpudp,xt_pkttype,ipt_LOG,xt_limit,ip6t_REJECT,ipt_REJECT,xt_state,iptable_nat,ip_tables,ip6_tables
ipv6 281064 17 ip6t_REJECT,nf_conntrack_ipv6,ip6table_mangle
microcode 30608 0
firmware_class 25984 1 microcode
fuse 66332 7
loop 35332 0
dm_mod 78676 0
sr_mod 33448 0
cdrom 50588 1 sr_mod
ide_pci_generic 20484 0 [permanent]
piix 23816 0 [permanent]
ide_core 131104 2 ide_pci_generic,piix
pata_acpi 23808 0
snd_hda_intel 386716 3
snd_pcm 100100 2 snd_pcm_oss,snd_hda_intel
ohci1394 48432 0
snd_timer 40712 2 snd_seq,snd_pcm
i2c_i801 26128 0
uvcvideo 71688 0
snd_page_alloc 27400 2 snd_hda_intel,snd_pcm
ndiswrapper 214420 0
snd_hwdep 26372 1 snd_hda_intel
rtc_cmos 27168 0
ata_piix 38532 0
video 39312 0
sdhci 33676 0
iTCO_wdt 28580 0
intel_agp 43460 0
mmc_core 65564 1 sdhci
i2c_core 41108 1 i2c_i801
ieee1394 107016 1 ohci1394
ricoh_mmc 20736 0
output 20224 1 video
ata_generic 24452 0
compat_ioctl32 17664 1 uvcvideo
rtc_core 37148 1 rtc_cmos
snd 79544 14 snd_pcm_oss,snd_mixer_oss,snd_seq,snd_seq_device,snd_hda_intel,snd_pcm,snd_timer,snd_hwdep
button 25360 0
rtc_lib 19328 1 rtc_core
iTCO_vendor_support 20228 1 iTCO_wdt
wmi 24488 0
battery 31108 0
sky2 63236 0
videodev 48000 1 uvcvideo
agpgart 50868 1 intel_agp
soundcore 24264 1 snd
v4l1_compat 29572 2 uvcvideo,videodev
ac 22916 0
dcdbas 25252 0
joydev 28224 0
sg 52020 0
uinput 25728 0
usbhid 60260 0
hid 53708 1 usbhid
ff_memless 21896 1 usbhid
sd_mod 45336 6
ehci_hcd 52492 0
uhci_hcd 40848 0
usbcore 164812 6 uvcvideo,ndiswrapper,usbhid,ehci_hcd,uhci_hcd
edd 26440 0
ahci 46344 5
libata 176604 4 pata_acpi,ata_piix,ata_generic,ahci
scsi_mod 168436 4 sr_mod,sg,sd_mod,libata
dock 27536 1 libata
ext3 156040 2
mbcache 25348 1 ext3
jbd 73504 1 ext3
fan 22660 0
thermal 40348 0
processor 67500 4 acpi_cpufreq,thermal

         total       used       free     shared    buffers     cached

Mem: 4150288 424516 3725772 0 17148 217360
-/+ buffers/cache: 190008 3960280
Swap: 4088500 0 4088500

===== Sun Jan 11 16:34:02 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/05led =====
===== Sun Jan 11 16:34:02 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/06autofs =====
===== Sun Jan 11 16:34:02 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/10NetworkManager =====
===== Sun Jan 11 16:34:02 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/20reset-bluetooth =====
===== Sun Jan 11 16:34:02 CST 2009: 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/sda6
setting image size to 1912452710
adding these parameters from /etc/suspend.conf:
===== Sun Jan 11 16:34:02 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/45pcmcia =====
ejecting PCMCIA cards…
===== Sun Jan 11 16:34:02 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/50modules =====
===== Sun Jan 11 16:34:02 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/55battery =====
===== Sun Jan 11 16:34:02 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/80acpi-fan =====
===== Sun Jan 11 16:34:02 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/80videobios =====
===== Sun Jan 11 16:34:02 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/94cpufreq =====
===== Sun Jan 11 16:34:02 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/95led =====
===== Sun Jan 11 16:34:02 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/95packagekit =====
===== Sun Jan 11 16:34:02 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/99Zgrub =====
INFO: running prepare-grub
Skipping grub entry #1, because it has the noresume option
Skipping grub entry #3, because it has the noresume option
running kernel is grub menu entry 0 (vmlinuz-2.6.25.18-0.2-pae)
preparing boot-loader: selecting entry 0, kernel /boot/2.6.25.18-0.2-pae
grub-once: saving original /boot/grub/default
running ‘/usr/sbin/grubonce 0’
Using entry #0: openSUSE 11.0 - 2.6.25.18-0.2 (pae)
time needed for sync: 0.5 seconds, time needed for grub: 0.0 seconds.
===== Sun Jan 11 16:34:03 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/99info =====
Sun Jan 11 16:34:03 CST 2009: done running hibernate hooks.

  • /usr/sbin/s2disk --config /var/lib/s2disk.conf
    s2disk: Snapshotting system
    s2disk: returned to userspace
  • RET=0
  • set +x
    Sun Jan 11 16:34:56 CST 2009: running thaw hooks.
    ===== Sun Jan 11 16:34:56 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/99info =====
    ===== Sun Jan 11 16:34:56 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/99Zgrub =====
    INFO: running grub-once-restore
    restoring original /boot/grub/default
    ===== Sun Jan 11 16:34:56 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/95packagekit =====
    method return sender=:1.49 → dest=:1.48 reply_serial=2
    ===== Sun Jan 11 16:34:56 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/95led =====
    ===== Sun Jan 11 16:34:56 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/94cpufreq =====
    ===== Sun Jan 11 16:34:56 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/80videobios =====
    ===== Sun Jan 11 16:34:56 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/80acpi-fan =====
    ===== Sun Jan 11 16:34:56 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/55battery =====
    ===== Sun Jan 11 16:34:56 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/50modules =====
    ===== Sun Jan 11 16:34:56 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/45pcmcia =====
    inserting PCMCIA cards…
    ===== Sun Jan 11 16:34:56 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/30s2disk-check =====
    ===== Sun Jan 11 16:34:56 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/20reset-bluetooth =====
    ===== Sun Jan 11 16:34:56 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/10NetworkManager =====
    ===== Sun Jan 11 16:34:56 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/06autofs =====
    ===== Sun Jan 11 16:34:56 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/05led =====
    ===== Sun Jan 11 16:34:56 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/01logging =====
    ===== Sun Jan 11 16:34:56 CST 2009: running hook: /usr/lib/pm-utils/sleep.d/00clear =====
    Sun Jan 11 16:34:56 CST 2009: done running thaw hooks.

I don’t actually have pm-utils.log. I do have pm-suspend.log, but maybe that’s for suspending to ram?
Reply With Quote

Sorry, that was my mistake. Not enough coffee! It should have been pm-suspend.log

Skipping grub entry #1, because it has the noresume option
Skipping grub entry #3, because it has the noresume option

This offers a clue. You need to edit your /boot/grub/menu.lst entry so that it can resume from swap partition. Mine for reference (your partition layout will be different):

###Don’t change this comment - YaST2 identifier: Original name: linux###
title openSUSE 11.0 - 2.6.25.18-0.2
root (hd0,5)
kernel /boot/vmlinuz-2.6.25.18-0.2-pae root=/dev/disk/by-id/scsi-SATA_TOSHIBA_MK8032G_X5CX6959T-part6 resume=/dev/sda5 splash=silent showopts vga=0x317
initrd /boot/initrd-2.6.25.18-0.2-pae

Post your menu.lst file if you need further help.

I thought I knew what to do, but I’m a bit confused now. My swap space is on sda6, which is referenced in the “resume=” part.

What exactly do I need to change? The entry in menu.lst is

###Don’t change this comment - YaST2 identifier: Original name: linux###
title openSUSE 11.0 - 2.6.25.18-0.2 (pae)
root (hd0,4)
kernel /boot/vmlinuz-2.6.25.18-0.2-pae root=/dev/disk/by-id/scsi-SATA_ST9320320AS_5SX1WWHY-part5 resume=/dev/sda6 splash=silent showopts i8042.nomux=1 vga=0x314
initrd /boot/initrd-2.6.25.18-0.2-pae

Thank you very much!

Hmmm…if its as you say, all should be ok. Can you post output of

cat /boot/grub/menu.lst

fdisk -l

I’m confused about the ‘noresume’ message now :\

Here’s my menu.lst.

Modified by YaST2. Last modification on Sun Jan 11 11:49:50 CST 2009

default 2
timeout 8
gfxmenu (hd0,4)/boot/message

###Don’t change this comment - YaST2 identifier: Original name: linux###
title openSUSE 11.0 - 2.6.25.18-0.2 (pae)
root (hd0,4)
kernel /boot/vmlinuz-2.6.25.18-0.2-pae root=/dev/disk/by-id/scsi-SATA_ST9320320AS_5SX1WWHY-part5 resume=/dev/sda6 splash=silent showopts i8042.nomux=1 vga=0x314
initrd /boot/initrd-2.6.25.18-0.2-pae

###Don’t change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe – openSUSE 11.0 - 2.6.25.18-0.2 (pae)
root (hd0,4)
kernel /boot/vmlinuz-2.6.25.18-0.2-pae root=/dev/disk/by-id/scsi-SATA_ST9320320AS_5SX1WWHY-part5 showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off x11failsafe vga=0x314
initrd /boot/initrd-2.6.25.18-0.2-pae

###Don’t change this comment - YaST2 identifier: Original name: linux###
title openSUSE 11.0 - 2.6.25.18-0.2 (default)
root (hd0,4)
kernel /boot/vmlinuz-2.6.25.18-0.2-default root=/dev/disk/by-id/scsi-SATA_ST9320320AS_5SX1WWHY-part5 resume=/dev/sda6 splash=silent showopts i8042.nomux=1 vga=0x314
initrd /boot/initrd-2.6.25.18-0.2-default

###Don’t change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe – openSUSE 11.0 - 2.6.25.18-0.2 (default)
root (hd0,4)
kernel /boot/vmlinuz-2.6.25.18-0.2-default root=/dev/disk/by-id/scsi-SATA_ST9320320AS_5SX1WWHY-part5 showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off x11failsafe vga=0x314
initrd /boot/initrd-2.6.25.18-0.2-default

###Don’t change this comment - YaST2 identifier: Original name: windows 1###
title windows 1
rootnoverify (hd0,4)
chainloader (hd0,1)+1

###Don’t change this comment - YaST2 identifier: Original name: windows 2###
title windows 2
rootnoverify (hd0,4)
chainloader (hd0,2)+1

Here’s fdisk -l. Thanks again for looking into this.

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x90000000

Device Boot Start End Blocks Id System
/dev/sda1 1 12 96358+ de Dell Utility
/dev/sda2 13 1318 10485760 7 HPFS/NTFS
/dev/sda3 * 1318 24264 184313848 7 HPFS/NTFS
/dev/sda4 24265 38914 117669276 f W95 Ext’d (LBA)
/dev/sda5 24265 25283 8185086 83 Linux
/dev/sda6 25284 25792 4088511 82 Linux swap / Solaris
/dev/sda7 38587 38914 2620416 dd Unknown
/dev/sda8 25793 38586 102767773+ 83 Linux

Partition table entries are not in disk order

Now that I’ve has a better look, everything looks ok to me. (I’m assuming your swap size is large enough???) My pm-suspend.log entries are same as yours (except for hardware specific hooks on our respective systems)

This could take some experimentation to lock down cause.

Try shutting down network with

rcnetwork stop

Then try to hibernate / resume.

I ran ‘rcnetwork stop’ and then tried to hibernate, but the results were the same.

I think my swap is large enough. I’ve got 3992 MB total for swap and I’ve got 3545 MB for memory. I kind of assumed that as long as there was more swap space than memory, I’d be good to go.