suspend to disk failure

Hi

Today i tested the suspend to disk function on my new installed opensuse 11.2. Unfortunally my laptop didnt go to sleep. It strands with the progress bar on screen and ran hot.
(By the way i fixed the suspend to ram function with this solution)

pm-suspend.log

2009-11-18 08:44:10.076611670 +0100: running 'hibernate'/'hibernate'/'' hooks.
===== 2009-11-18 08:44:10.114067001 running hook: /usr/lib/pm-utils/sleep.d/00clear =====
===== 2009-11-18 08:44:10.161388464 running hook: /usr/lib/pm-utils/sleep.d/01logging =====
hibernate initiated: Wed Nov 18 08:44:10 CET 2009

Linux marvin 2.6.31.5-0.1-desktop #1 SMP PREEMPT 2009-10-26 15:49:03 +0100 x86_64 x86_64 x86_64 GNU/Linux
kernel command line: 'root=/dev/system/root resume=/dev/disk/by-id/ata-FUJITSU_MHZ2320BJ_G2_K837T8C258R4-part5 splash=silent quiet vga=0x314'
Module                  Size  Used by
nfs                   405312  0 
lockd                  95636  1 nfs
fscache                52016  1 nfs
nfs_acl                 4072  1 nfs
auth_rpcgss            56800  1 nfs
sunrpc                266984  5 nfs,lockd,nfs_acl,auth_rpcgss
af_packet              28680  2 
ip6t_LOG                7980  6 
xt_tcpudp               4104  2 
xt_pkttype              2248  3 
ipt_LOG                 7660  6 
xt_limit                4076  12 
snd_pcm_oss            60032  0 
snd_mixer_oss          22728  1 snd_pcm_oss
snd_seq                78528  0 
snd_seq_device         10460  1 snd_seq
edd                    13232  0 
cpufreq_conservative    10360  0 
cpufreq_userspace       4364  0 
cpufreq_powersave       2152  0 
acpi_cpufreq           11544  0 
ip6t_REJECT             6856  3 
nf_conntrack_ipv6      26600  4 
ip6table_raw            3720  1 
xt_NOTRACK              2248  4 
ipt_REJECT              4136  3 
xt_state                2920  8 
iptable_raw             3560  1 
iptable_filter          4520  1 
ip6table_mangle         5000  0 
nf_conntrack_netbios_ns     3400  0 
nf_conntrack_ipv4      14232  4 
nf_conntrack          102912  5 nf_conntrack_ipv6,xt_NOTRACK,xt_state,nf_conntrack_netbios_ns,nf_conntrack_ipv4
nf_defrag_ipv4          2856  1 nf_conntrack_ipv4
ip_tables              24536  2 iptable_raw,iptable_filter
ip6table_filter         4552  1 
ip6_tables             26072  4 ip6t_LOG,ip6table_raw,ip6table_mangle,ip6table_filter
x_tables               30768  11 ip6t_LOG,xt_tcpudp,xt_pkttype,ipt_LOG,xt_limit,ip6t_REJECT,xt_NOTRACK,ipt_REJECT,xt_state,ip_tables,ip6_tables
fuse                   87984  3 
loop                   22292  0 
arc4                    2568  2 
ide_cs                 14344  0 
ide_core              148128  1 ide_cs
ecb                     4168  2 
pata_pcmcia            16168  1 
cryptomgr             109904  0 
aead                   10792  1 cryptomgr
pcompress               3560  1 cryptomgr
snd_hda_codec_analog    88648  1 
crypto_blkcipher       18028  2 ecb,cryptomgr
crypto_hash            17416  1 cryptomgr
crypto_algapi          25904  7 arc4,ecb,cryptomgr,aead,pcompress,crypto_blkcipher,crypto_hash
pcmcia                 47292  2 ide_cs,pata_pcmcia
parport_pc             46856  0 
snd_hda_intel          37088  4 
iwlagn                206280  0 
ppdev                  12368  0 
uvcvideo               74196  0 
snd_hda_codec         111112  2 snd_hda_codec_analog,snd_hda_intel
iwlcore               239468  1 iwlagn
sdhci_pci              11048  0 
sdhci                  27628  1 sdhci_pci
parport                46544  2 parport_pc,ppdev
yenta_socket           46804  3 
rsrc_nonstatic         14536  1 yenta_socket
sr_mod                 20964  0 
snd_hwdep              11216  1 snd_hda_codec
snd_pcm               117808  4 snd_pcm_oss,snd_hda_intel,snd_hda_codec
snd_timer              32152  3 snd_seq,snd_pcm
hp_accel               13672  0 
lis3lv02d              10984  1 hp_accel
iTCO_wdt               15056  0 
tpm_infineon           11100  0 
tpm                    22048  1 tpm_infineon
mac80211              257312  2 iwlagn,iwlcore
videodev               46848  1 uvcvideo
v4l1_compat            19148  2 uvcvideo,videodev
dvb_usb_dib0700        61360  0 
dib7000p               22352  2 dvb_usb_dib0700
dib7000m               19948  1 dvb_usb_dib0700
dvb_usb                22676  1 dvb_usb_dib0700
dvb_core              118352  1 dvb_usb
dib3000mc              16624  1 dvb_usb_dib0700
dibx000_common          4652  3 dib7000p,dib7000m,dib3000mc
mmc_core               83616  1 sdhci
pcspkr                  3720  0 
serio_raw               7916  0 
ohci1394               38340  0 
sg                     40128  0 
ricoh_mmc               5288  0 
ieee1394              121024  1 ohci1394
cdrom                  48232  1 sr_mod
pcmcia_core            48868  3 pcmcia,yenta_socket,rsrc_nonstatic
joydev                 14400  0 
dib0070                10156  2 dvb_usb_dib0700
v4l2_compat_ioctl32    12776  1 videodev
container               5160  0 
tpm_bios                8968  1 tpm
iTCO_vendor_support     4908  1 iTCO_wdt
video                  29156  0 
input_polldev           5528  1 lis3lv02d
ac                      6416  0 
snd                    97608  16 snd_pcm_oss,snd_mixer_oss,snd_seq,snd_seq_device,snd_hda_codec_analog,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
battery                15824  0 
snd_page_alloc         12600  2 snd_hda_intel,snd_pcm
button                  8360  0 
wmi                     9600  0 
cfg80211              123264  3 iwlagn,iwlcore,mac80211
rfkill                 28176  1 cfg80211
nvidia               9636872  40 
e1000e                167192  0 
intel_agp              37136  0 
ext4                  401040  3 
jbd2                  115072  1 ext4
crc16                   2504  1 ext4
linear                  7564  0 
dm_snapshot            32156  0 
dm_mod                101448  12 dm_snapshot
fan                     6352  0 
processor              56900  3 acpi_cpufreq
thermal                25160  0 
thermal_sys            21888  4 video,fan,processor,thermal

             total       used       free     shared    buffers     cached
Mem:       4021848     845836    3176012          0      42884     467516
-/+ buffers/cache:     335436    3686412
Swap:      6144820          0    6144820

===== 2009-11-18 08:44:10.181230518 running hook: /usr/lib/pm-utils/sleep.d/02rtcwake =====
rtcwake alarm not enabled in /etc/pm/config.d/rtcwake.config, doing nothing...
===== 2009-11-18 08:44:10.184260861 running hook: /usr/lib/pm-utils/sleep.d/05led =====
===== 2009-11-18 08:44:10.187493536 running hook: /usr/lib/pm-utils/sleep.d/06autofs =====
===== 2009-11-18 08:44:10.278810129 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-11-18 08:44:10.504377760 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/sda5
  setting image size to 1853267558
  adding these parameters from /etc/suspend.conf:
===== 2009-11-18 08:44:10.530793068 running hook: /usr/lib/pm-utils/sleep.d/45pcmcia =====
ejecting PCMCIA cards...
===== 2009-11-18 08:44:10.683136011 running hook: /usr/lib/pm-utils/sleep.d/50modules =====
===== 2009-11-18 08:44:10.695293217 running hook: /usr/lib/pm-utils/sleep.d/80acpi-fan =====
===== 2009-11-18 08:44:10.697938945 running hook: /usr/lib/pm-utils/sleep.d/80videobios =====
===== 2009-11-18 08:44:10.700445269 running hook: /usr/lib/pm-utils/sleep.d/94cpufreq =====
===== 2009-11-18 08:44:10.713901383 running hook: /usr/lib/pm-utils/sleep.d/95led =====
===== 2009-11-18 08:44:10.716259086 running hook: /usr/lib/pm-utils/sleep.d/99Zgrub =====
INFO: running prepare-grub
  Skipping grub entry #1, because it has the noresume option
  running kernel is grub menu entry 0 (vmlinuz-2.6.31.5-0.1-desktop)
  preparing boot-loader: selecting entry 0, kernel /boot/2.6.31.5-0.1-desktop
  grub-once:   running '/usr/sbin/grubonce 0'
Using entry #0: Desktop -- openSUSE 11.2 - 2.6.31.5-0.1
    time needed for sync: 0.3 seconds, time needed for grub: 0.0 seconds.
===== 2009-11-18 08:44:11.131847361 running hook: /usr/lib/pm-utils/sleep.d/99info =====
2009-11-18 08:44:11.134595965: done running hibernate/hibernate hooks.
+ /usr/sbin/s2disk --config /var/lib/s2disk.conf

Seems s2disk stucks on execution or networkmanager disfuncs?!

Does anybody knows the problem and could give me a hint?

kr odesu

hi
you need swap partition to hibernate

(Right now, the pm-utils setup and our initrd code does not allow to suspend to / resume from a swap file, only a swap partition. This needs to be implemented and then documented. ) Suspend to disk - openSUSE

and you probably miss resume option in grub: something like this resume=/dev/sda1 (where sda1 is your swap partition)…

Hi odesu,

Seems like we have the same problem. Did you already find a solution?
You can also have a look at this thread: 11.2 Suspend to RAM/Disc crashes - openSUSE Forums

I’m trying several things but nothing seems to work quite good.

Thank you for the link. Now it works.
In detail i did (as root):


~> rm /.suspended

~> cd /usr/lib/pm-utils
~> mv sleep.d/06autofs .
~> mv sleep.d/45pcmcia .
~> mv sleep.d/80videobios .

kr odesu