recovery from hibernation failed - "hibernation image not present or could not be loaded"

Hi all, my laptop has problem with recovery from hibernation. Basically the situation is, after I upgrade kernel to 3.8.* from 3.1.*, my laptop can suspend to disk and power off normally, but it can no longer resume from the hibernation image but instead it boots with a fresh new start. The error in the log file reads “hibernation image not present or could not be loaded”.

I searched and found some threads suggesting that this problem may occur if the resume device is incorrectly set in boot loader, for example, the path (by id/uuid) of the swap may be inconsistent. But I checked my partitions, and didn’t find such an error. Moreover, the partitions and other major settings are not modified after the upgrade, and the swap size is large enough for holding the RAM, just as before.

In short, my computer can not resume properly from hibernation. I’d appreciate it a lot if anyone comes with any suggestion, thanks.

My laptop model: Acer aspire one 522
My OS info: openSUSE 12.1, genome 3.2.1, kernel 3.8.6-2-default

The truncated log during a hibernation and resume:


Apr 12 19:58:31 linux-do8u atd[5997]: Shutting down service at daemon..done
Apr 12 19:58:32 linux-do8u dbus-daemon[886]: **** /proc/self/mountinfo changed
Apr 12 19:58:32 linux-do8u kernel: [39647.479839] PM: Marking nosave pages: [mem 0x0009f000-0x000fffff]
Apr 12 19:58:32 linux-do8u kernel: [39647.479851] PM: Basic memory bitmaps created
Apr 12 20:00:44 linux-do8u rsyslogd: [origin software="rsyslogd" swVersion="5.10.1" x-pid="947" x-info="http://www.rsyslog.com"] start
Apr 12 20:00:44 linux-do8u kernel:     0.000000] Initializing cgroup subsys cpuset
Apr 12 20:00:44 linux-do8u kernel:     0.000000] Initializing cgroup subsys cpu
Apr 12 20:00:44 linux-do8u kernel:     0.000000] Linux version 3.8.6-2-default (geeko@buildhost) (gcc version 4.7.2 20130108 [gcc-4_7-branch revision 195012] (SUSE Linux) ) #1 SMP Mon Apr 8 12:20:48 UTC 2013 (290a7e9)
Apr 12 20:00:44 linux-do8u kernel:     0.000000] e820: BIOS-provided physical RAM map:
...
Apr 12 20:00:44 linux-do8u kernel:     0.000000] initial memory mapped: [mem 0x00000000-0x00ffffff]
Apr 12 20:00:44 linux-do8u kernel:     0.000000] Base memory trampoline at [c009b000] 9b000 size 16384
Apr 12 20:00:44 linux-do8u kernel:     0.000000] init_memory_mapping: [mem 0x00000000-0x377fdfff]
Apr 12 20:00:44 linux-do8u kernel:     0.000000]  [mem 0x00000000-0x003fffff] page 4k
Apr 12 20:00:44 linux-do8u kernel:     0.000000]  [mem 0x00400000-0x373fffff] page 2M
Apr 12 20:00:44 linux-do8u kernel:     0.000000]  [mem 0x37400000-0x377fdfff] page 4k
Apr 12 20:00:44 linux-do8u kernel:     0.000000] kernel direct mapping tables up to 0x377fdfff @ [mem 0x00ffa000-0x00ffffff]
Apr 12 20:00:44 linux-do8u kernel:     0.000000] RAMDISK: [mem 0x37224000-0x37feffff]
Apr 12 20:00:44 linux-do8u kernel:     0.000000] Allocated new RAMDISK: [mem 0x36458000-0x372237dd]
Apr 12 20:00:44 linux-do8u kernel:     0.000000] Move RAMDISK from [mem 0x37224000-0x37fef7dd] to [mem 0x36458000-0x372237dd]
...
Apr 12 20:00:44 linux-do8u kernel:     0.000000] Kernel command line: root=/dev/disk/by-id/ata-Hitachi_HTS543225A7A384_E00G4233GKH2TD-part3 resume=/dev/disk/by-id/ata-Hitachi_HTS543225A7A384_E00G4233GKH2TD-part6 splash=verbose showopts vga=0x314
Apr 12 20:00:44 linux-do8u kernel:     0.000000] bootsplash: verbose mode.
Apr 12 20:00:44 linux-do8u kernel:     0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
Apr 12 20:00:44 linux-do8u kernel:     0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Apr 12 20:00:44 linux-do8u kernel:     0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Apr 12 20:00:44 linux-do8u kernel:     0.000000] __ex_table already sorted, skipping sort
Apr 12 20:00:44 linux-do8u kernel:     0.000000] Initializing CPU#0
Apr 12 20:00:44 linux-do8u kernel:     0.000000] allocated 7337856 bytes of page_cgroup
Apr 12 20:00:44 linux-do8u kernel:     0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
Apr 12 20:00:44 linux-do8u kernel:     0.000000] Initializing HighMem for node 0 (000377fe:000dff00)
Apr 12 20:00:44 linux-do8u kernel:     0.000000] Memory: 3603764k/3668992k available (4823k kernel code, 60972k reserved, 3540k data, 504k init, 2755884k highmem)
Apr 12 20:00:44 linux-do8u kernel:     0.000000] virtual kernel memory layout:
...
Apr 12 20:00:44 linux-do8u kernel:     0.000000] Checking if this processor honours the WP bit even in supervisor mode...Ok.
Apr 12 20:00:44 linux-do8u kernel:     0.000000] Hierarchical RCU implementation.
Apr 12 20:00:44 linux-do8u kernel:     0.000000]     RCU dyntick-idle grace-period acceleration is enabled.
Apr 12 20:00:44 linux-do8u kernel:     0.000000]     RCU restricting CPUs from NR_CPUS=32 to nr_cpu_ids=4.
Apr 12 20:00:44 linux-do8u kernel:     0.000000] NR_IRQS:2304 nr_irqs:712 16
Apr 12 20:00:44 linux-do8u kernel:     0.000000] CPU 0 irqstacks, hard=f3c06000 soft=f3c08000
Apr 12 20:00:44 linux-do8u kernel:     0.000000] Console: colour dummy device 80x25
Apr 12 20:00:44 linux-do8u kernel:     0.000000] console [tty0] enabled
Apr 12 20:00:44 linux-do8u kernel:     0.000000] hpet clockevent registered
Apr 12 20:00:44 linux-do8u kernel:     0.000000] tsc: Fast TSC calibration using PIT
Apr 12 20:00:44 linux-do8u kernel:     0.004000] tsc: Detected 997.479 MHz processor
Apr 12 20:00:44 linux-do8u kernel:     0.000005] Calibrating delay loop (skipped), value calculated using timer frequency.. 1994.95 BogoMIPS (lpj=3989916)
Apr 12 20:00:44 linux-do8u kernel:     0.000026] pid_max: default: 32768 minimum: 301
Apr 12 20:00:44 linux-do8u kernel:     0.000104] Security Framework initialized
Apr 12 20:00:44 linux-do8u kernel:     0.000142] AppArmor: AppArmor initialized
Apr 12 20:00:44 linux-do8u kernel:     0.000254] Mount-cache hash table entries: 512
...
Apr 12 20:00:44 linux-do8u kernel:     0.000859] CPU: Physical Processor ID: 0
Apr 12 20:00:44 linux-do8u kernel:     0.000870] CPU: Processor Core ID: 0
Apr 12 20:00:44 linux-do8u kernel:     0.000881] mce: CPU supports 6 MCE banks
Apr 12 20:00:44 linux-do8u kernel:     0.000920] Last level iTLB entries: 4KB 512, 2MB 8, 4MB 4
Apr 12 20:00:44 linux-do8u kernel:     0.000920] Last level dTLB entries: 4KB 512, 2MB 8, 4MB 4
Apr 12 20:00:44 linux-do8u kernel:     0.000920] tlb_flushall_shift: 5
Apr 12 20:00:44 linux-do8u kernel:     0.001628] Freeing SMP alternatives: 32k freed
Apr 12 20:00:44 linux-do8u kernel:     0.004438] ACPI: Core revision 20121018
Apr 12 20:00:44 linux-do8u kernel:     0.031117] Enabling APIC mode:  Flat.  Using 1 I/O APICs
Apr 12 20:00:44 linux-do8u kernel:     0.031605] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
Apr 12 20:00:44 linux-do8u kernel:     0.071284] smpboot: CPU0: AMD C-60 APU with Radeon(tm) HD Graphics (fam: 14, model: 02, stepping: 00)
Apr 12 20:00:44 linux-do8u kernel:     0.177817] Performance Events: AMD PMU driver.
Apr 12 20:00:44 linux-do8u kernel:     0.177834] ... version:                0
Apr 12 20:00:44 linux-do8u kernel:     0.177843] ... bit width:              48
Apr 12 20:00:44 linux-do8u kernel:     0.177852] ... generic registers:      4
Apr 12 20:00:44 linux-do8u kernel:     0.177861] ... value mask:             0000ffffffffffff
Apr 12 20:00:44 linux-do8u kernel:     0.177871] ... max period:             00007fffffffffff
Apr 12 20:00:44 linux-do8u kernel:     0.177879] ... fixed-purpose events:   0
Apr 12 20:00:44 linux-do8u kernel:     0.177888] ... event mask:             000000000000000f
Apr 12 20:00:44 linux-do8u kernel:     0.179316] NMI watchdog: enabled on all CPUs, permanently consumes one hw-PMU counter.
Apr 12 20:00:44 linux-do8u kernel:     0.179644] CPU 1 irqstacks, hard=f3cd0000 soft=f3cd2000
Apr 12 20:00:44 linux-do8u kernel:     0.189639] Initializing CPU#1
Apr 12 20:00:44 linux-do8u kernel:     0.179651] smpboot: Booting Node   0, Processors  #1
Apr 12 20:00:44 linux-do8u kernel:     0.192807] Brought up 2 CPUs
Apr 12 20:00:44 linux-do8u kernel:     0.192828] smpboot: Total of 2 processors activated (3989.91 BogoMIPS)
Apr 12 20:00:44 linux-do8u kernel:     0.194281] devtmpfs: initialized
Apr 12 20:00:44 linux-do8u kernel:     0.195092] PM: Registering ACPI NVS region [mem 0xde66e000-0xde86dfff] (2097152 bytes)
Apr 12 20:00:44 linux-do8u kernel:     0.195227] PM: Registering ACPI NVS region [mem 0xdfdbf000-0xdfebefff] (1048576 bytes)
Apr 12 20:00:44 linux-do8u kernel:     0.195561] RTC time: 20:00:06, date: 04/12/13
Apr 12 20:00:44 linux-do8u kernel:     0.195706] NET: Registered protocol family 16
Apr 12 20:00:44 linux-do8u kernel:     0.196240] ACPI: bus type pci registered
...
Apr 12 20:00:44 linux-do8u kernel:     5.825176] input: ETPS/2 Elantech Touchpad as /devices/platform/i8042/serio1/input/input1
Apr 12 20:00:44 linux-do8u kernel:     5.844315] PM: Hibernation image not present or could not be loaded.
Apr 12 20:00:44 linux-do8u kernel:     5.844381] registered taskstats version 1
Apr 12 20:00:44 linux-do8u kernel:     5.858485]   Magic number: 9:970:42
Apr 12 20:00:44 linux-do8u kernel:     5.873080] /home/abuild/rpmbuild/BUILD/kernel-default-3.8.6/linux-3.8/drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
Apr 12 20:00:44 linux-do8u kernel:     5.899345] Freeing unused kernel memory: 504k freed
Apr 12 20:00:44 linux-do8u kernel:     5.913183] Write protecting the kernel text: 4824k
Apr 12 20:00:44 linux-do8u kernel:     5.926497] Write protecting the kernel read-only data: 3200k
...
Apr 12 20:00:44 linux-do8u kernel:     8.577090] PM: Starting manual resume from disk
Apr 12 20:00:44 linux-do8u kernel:     8.577098] PM: Hibernation image partition 8:6 present
Apr 12 20:00:44 linux-do8u kernel:     8.577100] PM: Looking for hibernation image.
Apr 12 20:00:44 linux-do8u kernel:     8.577657] PM: Image not found (code -22)
Apr 12 20:00:44 linux-do8u kernel:     8.577660] PM: Hibernation image not present or could not be loaded.

Due the word limit I have to post only part of the log, and I can show more if you what to check. Thanks again.

Anyone has any idea? Any idea is welcome. Thanks in advance.

On 2013-04-19 18:06, foehno wrote:
>
> Anyone has any idea? Any idea is welcome. Thanks in advance.

Why did you update only the kernel? You could have upgraded all, from
12.1 to 12.3.

Do you still have the previous kernel installed? Does it work with it?

Verify that:


/dev/disk/by-id/ata-Hitachi_HTS543225A7A384_E00G4233GKH2TD-part6

is the swap device.

If you google for the exact string


"PM: Image not found (code -22)"

you find several hits in forums and bug reports.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)