Resume From Hibernation does not work

The computer hibernates as follows:

Aug 14 19:28:42 erlangen systemd[1]: Starting Sleep.
Aug 14 19:28:42 erlangen systemd[1]: Reached target Sleep.
Aug 14 19:28:42 erlangen systemd[1]: Starting Hibernate...
Aug 14 19:28:42 erlangen systemd-sleep-grub[2484]: INFO: running prepare-grub
Aug 14 19:28:42 erlangen kernel: device-mapper: uevent: version 1.0.3
Aug 14 19:28:42 erlangen kernel: device-mapper: ioctl: 4.31.0-ioctl (2015-3-12) initialised: dm-devel@redhat.com
Aug 14 19:28:42 erlangen systemd-sleep-grub[2484]: Skipping grub entry #3, because its root= parameter (/dev/sdb5)
Aug 14 19:28:42 erlangen systemd-sleep-grub[2484]: does not match the current root device (/dev/sdc1).
Aug 14 19:28:42 erlangen systemd-sleep-grub[2484]: Skipping grub entry #4, because its root= parameter (/dev/sdb5)
Aug 14 19:28:42 erlangen systemd-sleep-grub[2484]: does not match the current root device (/dev/sdc1).
Aug 14 19:28:42 erlangen systemd-sleep-grub[2484]: Skipping grub entry #5, because its root= parameter (/dev/sdb5)
Aug 14 19:28:42 erlangen systemd-sleep-grub[2484]: does not match the current root device (/dev/sdc1).
Aug 14 19:28:42 erlangen systemd-sleep-grub[2484]: Skipping grub entry #6, because it has the noresume option
Aug 14 19:28:42 erlangen systemd-sleep-grub[2484]: Skipping grub entry #7, because its root= parameter (/dev/sdb5)
Aug 14 19:28:42 erlangen systemd-sleep-grub[2484]: does not match the current root device (/dev/sdc1).
Aug 14 19:28:42 erlangen systemd-sleep-grub[2484]: Skipping grub entry #8, because it has the noresume option
Aug 14 19:28:42 erlangen systemd-sleep-grub[2484]: running kernel is grub menu entry 0 (vmlinuz-4.1.27-27-default)
Aug 14 19:28:42 erlangen systemd-sleep-grub[2484]: preparing boot-loader: selecting entry 0, kernel /boot/4.1.27-27-default
Aug 14 19:28:42 erlangen systemd-sleep-grub[2484]: grub-once:   running '/usr/sbin/grub2-once 0'
Aug 14 19:28:42 erlangen systemd-sleep-grub[2484]: time needed for sync: 0.1 seconds, time needed for grub: 0.0 seconds.
Aug 14 19:28:42 erlangen kernel: PM: Hibernation mode set to 'platform'
Aug 14 19:28:42 erlangen systemd-sleep[2657]: Suspending system...

When hitting the keyboard the computer reboots instead of resuming. Is there anything wrong with the hibernation?

When resuming from hibernation computer does normal boot, then checks for resume image and loads it. Please post full “journalctl -b” output after resuming from hibernation (upload to http://susepaste.org/ if it is long).

Resume from hibernation now works when the computer remains connected to the power outlet. It still boots when disconnected and reconnected. journalctl -b: SUSE Paste

There is no attempt to resume indeed. Could you add “systemd.log_level=debug” and remove “splash=silent quiet” from kernel command line, try to resume once more and post output again?

Many thanks for having a close look at the problem. When making the changes proposed I noticed the current boot had still old and faulty parameters. Rebooted and tried again: Hibernate, unplug AC power, plug in again, hit the power button and got the following resume from hibernate:

Aug 15 07:15:07 erlangen kernel: PM: Syncing filesystems ... done.
Aug 15 07:15:07 erlangen kernel: Freezing user space processes ... (elapsed 0.001 seconds) done.
Aug 15 07:15:07 erlangen kernel: PM: Marking nosave pages: [mem 0x00000000-0x00000fff]
Aug 15 07:15:07 erlangen kernel: PM: Marking nosave pages: [mem 0x0009d000-0x000fffff]
Aug 15 07:15:07 erlangen kernel: PM: Marking nosave pages: [mem 0xa56f1000-0xa56f7fff]
Aug 15 07:15:07 erlangen kernel: PM: Marking nosave pages: [mem 0xa6293000-0xa6752fff]
Aug 15 07:15:07 erlangen kernel: PM: Marking nosave pages: [mem 0xcbf7d000-0xcc181fff]
Aug 15 07:15:07 erlangen kernel: PM: Marking nosave pages: [mem 0xcc1bf000-0xccffefff]
Aug 15 07:15:07 erlangen kernel: PM: Marking nosave pages: [mem 0xcd000000-0xffffffff]
Aug 15 07:15:07 erlangen kernel: PM: Basic memory bitmaps created
Aug 15 07:15:07 erlangen kernel: PM: Preallocating image memory... done (allocated 1543263 pages)
Aug 15 07:15:07 erlangen kernel: PM: Allocated 6173052 kbytes in 0.33 seconds (18706.21 MB/s)
Aug 15 07:15:07 erlangen kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Aug 15 07:15:07 erlangen kernel: Suspending console(s) (use no_console_suspend to debug)
Aug 15 07:15:07 erlangen kernel: serial 00:06: disabled
Aug 15 07:15:07 erlangen kernel: serial 00:06: System wakeup disabled by ACPI
Aug 15 07:15:07 erlangen kernel: PM: freeze of devices complete after 218.980 msecs
Aug 15 07:15:07 erlangen kernel: PM: late freeze of devices complete after 26.355 msecs
Aug 15 07:15:07 erlangen kernel: PM: noirq freeze of devices complete after 0.466 msecs
Aug 15 07:15:07 erlangen kernel: ACPI: Preparing to enter system sleep state S4
Aug 15 07:15:07 erlangen kernel: PM: Saving platform NVS memory
Aug 15 07:15:07 erlangen kernel: Disabling non-boot CPUs ...
Aug 15 07:15:07 erlangen kernel: intel_pstate CPU 1 exiting
Aug 15 07:15:07 erlangen kernel: kvm: disabling virtualization on CPU1
Aug 15 07:15:07 erlangen kernel: smpboot: CPU 1 is now offline
Aug 15 07:15:07 erlangen kernel: intel_pstate CPU 2 exiting
Aug 15 07:15:07 erlangen kernel: Broke affinity for irq 26
Aug 15 07:15:07 erlangen kernel: kvm: disabling virtualization on CPU2
Aug 15 07:15:07 erlangen kernel: smpboot: CPU 2 is now offline
Aug 15 07:15:07 erlangen kernel: intel_pstate CPU 3 exiting
Aug 15 07:15:07 erlangen kernel: kvm: disabling virtualization on CPU3
Aug 15 07:15:07 erlangen kernel: smpboot: CPU 3 is now offline
Aug 15 07:15:07 erlangen kernel: PM: Creating hibernation image:
Aug 15 07:15:07 erlangen kernel: PM: Need to copy 1541791 pages
Aug 15 07:15:07 erlangen kernel: PM: Normal pages needed: 1541791 + 1024, available pages: 2566361
Aug 15 07:15:07 erlangen kernel: PM: Restoring platform NVS memory
Aug 15 07:15:07 erlangen kernel: Enabling non-boot CPUs ...
Aug 15 07:15:07 erlangen kernel: x86: Booting SMP configuration:
Aug 15 07:15:07 erlangen kernel: smpboot: Booting Node 0 Processor 1 APIC 0x2
Aug 15 07:15:07 erlangen kernel: kvm: enabling virtualization on CPU1
Aug 15 07:15:07 erlangen kernel:  cache: parent cpu1 should not be sleeping
Aug 15 07:15:07 erlangen kernel: CPU1 is up
Aug 15 07:15:07 erlangen kernel: smpboot: Booting Node 0 Processor 2 APIC 0x1
Aug 15 07:15:07 erlangen kernel: kvm: enabling virtualization on CPU2
Aug 15 07:15:07 erlangen kernel:  cache: parent cpu2 should not be sleeping
Aug 15 07:15:07 erlangen kernel: CPU2 is up
Aug 15 07:15:07 erlangen kernel: smpboot: Booting Node 0 Processor 3 APIC 0x3
Aug 15 07:15:07 erlangen kernel: kvm: enabling virtualization on CPU3
Aug 15 07:15:07 erlangen kernel:  cache: parent cpu3 should not be sleeping
Aug 15 07:15:07 erlangen kernel: CPU3 is up
Aug 15 07:15:07 erlangen kernel: ACPI: Waking up from system sleep state S4
Aug 15 07:15:07 erlangen kernel: PM: noirq restore of devices complete after 13.778 msecs
Aug 15 07:15:07 erlangen kernel: PM: early restore of devices complete after 75.968 msecs
Aug 15 07:15:07 erlangen kernel: usb usb3: root hub lost power or was reset
Aug 15 07:15:07 erlangen kernel: usb usb4: root hub lost power or was reset
Aug 15 07:15:07 erlangen kernel: usb usb1: root hub lost power or was reset
Aug 15 07:15:07 erlangen kernel: usb usb2: root hub lost power or was reset
Aug 15 07:15:07 erlangen kernel: rtc_cmos 00:02: System wakeup disabled by ACPI
Aug 15 07:15:07 erlangen kernel: serial 00:06: activated
Aug 15 07:15:07 erlangen kernel: ehci-pci 0000:00:1a.0: cache line size of 64 is not supported
Aug 15 07:15:07 erlangen kernel: ehci-pci 0000:00:1d.0: cache line size of 64 is not supported
Aug 15 07:15:07 erlangen kernel: sd 0:0:0:0: [sda] Starting disk
Aug 15 07:15:07 erlangen kernel: sd 1:0:0:0: [sdb] Starting disk
Aug 15 07:15:07 erlangen kernel: sd 3:0:0:0: [sdc] Starting disk
Aug 15 07:15:07 erlangen kernel: usb 4-2: Disable of device-initiated U1 failed.
Aug 15 07:15:07 erlangen kernel: usb 4-2: Disable of device-initiated U2 failed.
Aug 15 07:15:07 erlangen kernel: usb 4-2: reset SuperSpeed USB device number 2 using xhci_hcd
Aug 15 07:15:07 erlangen kernel: ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
Aug 15 07:15:07 erlangen kernel: ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
Aug 15 07:15:07 erlangen kernel: ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
Aug 15 07:15:07 erlangen kernel: ata1.00: supports DRM functions and may not be fully accessible
Aug 15 07:15:07 erlangen kernel: ata1.00: failed to get NCQ Send/Recv Log Emask 0x1
Aug 15 07:15:07 erlangen kernel: ata1.00: supports DRM functions and may not be fully accessible
Aug 15 07:15:07 erlangen kernel: ata1.00: failed to get NCQ Send/Recv Log Emask 0x1
Aug 15 07:15:07 erlangen kernel: ata1.00: configured for UDMA/133
Aug 15 07:15:07 erlangen kernel: ata2.00: configured for UDMA/133
Aug 15 07:15:07 erlangen kernel: ata4: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
Aug 15 07:15:07 erlangen kernel: ata4.00: supports DRM functions and may not be fully accessible
Aug 15 07:15:07 erlangen kernel: ata4.00: disabling queued TRIM support
Aug 15 07:15:07 erlangen kernel: ata4.00: supports DRM functions and may not be fully accessible
Aug 15 07:15:07 erlangen kernel: ata4.00: disabling queued TRIM support
Aug 15 07:15:07 erlangen kernel: ata4.00: configured for UDMA/133
Aug 15 07:15:07 erlangen kernel: ata3.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded
Aug 15 07:15:07 erlangen kernel: ata3.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
Aug 15 07:15:07 erlangen kernel: ata3.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out
Aug 15 07:15:07 erlangen kernel: usb 1-1: reset high-speed USB device number 2 using ehci-pci
Aug 15 07:15:07 erlangen kernel: ata3.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded
Aug 15 07:15:07 erlangen kernel: ata3.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
Aug 15 07:15:07 erlangen kernel: ata3.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out
Aug 15 07:15:07 erlangen kernel: ata3.00: configured for UDMA/100
Aug 15 07:15:07 erlangen kernel: usb 2-1: reset high-speed USB device number 2 using ehci-pci
Aug 15 07:15:07 erlangen kernel: usb 3-14: reset low-speed USB device number 4 using xhci_hcd
Aug 15 07:15:07 erlangen kernel: usb 3-14: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
Aug 15 07:15:07 erlangen kernel: usb 3-13: reset low-speed USB device number 3 using xhci_hcd
Aug 15 07:15:07 erlangen kernel: usb 3-13: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
Aug 15 07:15:07 erlangen kernel: usb 3-1: reset full-speed USB device number 2 using xhci_hcd
Aug 15 07:15:07 erlangen kernel: usb 3-1: ep 0x85 - rounding interval to 512 microframes, ep desc says 800 microframes
Aug 15 07:15:07 erlangen kernel: usblp0: removed
Aug 15 07:15:07 erlangen kernel: PM: restore of devices complete after 2047.295 msecs
Aug 15 07:15:07 erlangen kernel: usblp 3-1:1.0: usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0228
Aug 15 07:15:07 erlangen kernel: PM: Image restored successfully.
Aug 15 07:15:07 erlangen kernel: PM: Basic memory bitmaps freed
Aug 15 07:15:07 erlangen kernel: Restarting tasks ... 
Aug 15 07:15:07 erlangen kernel: pci_bus 0000:03: Allocating resources
Aug 15 07:15:07 erlangen kernel: pci 0000:02:00.0: bridge window [io  0x1000-0x0fff] to [bus 03] add_size 1000
Aug 15 07:15:07 erlangen kernel: pci 0000:02:00.0: bridge window [mem 0x00100000-0x000fffff 64bit pref] to [bus 03] add_size 200000 add_align 100000
Aug 15 07:15:07 erlangen kernel: pci 0000:02:00.0: bridge window [mem 0x00100000-0x000fffff] to [bus 03] add_size 200000 add_align 100000
Aug 15 07:15:07 erlangen kernel: pci 0000:02:00.0: res[14]=[mem 0x00100000-0x000fffff] res_to_dev_res add_size 200000 min_align 100000
Aug 15 07:15:07 erlangen kernel: pci 0000:02:00.0: res[14]=[mem 0x00100000-0x002fffff] res_to_dev_res add_size 200000 min_align 100000
Aug 15 07:15:07 erlangen kernel: pci 0000:02:00.0: res[15]=[mem 0x00100000-0x000fffff 64bit pref] res_to_dev_res add_size 200000 min_align 100000
Aug 15 07:15:07 erlangen kernel: pci 0000:02:00.0: res[15]=[mem 0x00100000-0x002fffff 64bit pref] res_to_dev_res add_size 200000 min_align 100000
Aug 15 07:15:07 erlangen kernel: pci 0000:02:00.0: res[13]=[io  0x1000-0x0fff] res_to_dev_res add_size 1000 min_align 1000
Aug 15 07:15:07 erlangen kernel: pci 0000:02:00.0: res[13]=[io  0x1000-0x1fff] res_to_dev_res add_size 1000 min_align 1000
Aug 15 07:15:07 erlangen kernel: pci 0000:02:00.0: BAR 14: assigned [mem 0xdfa00000-0xdfbfffff]
Aug 15 07:15:07 erlangen kernel: pci 0000:02:00.0: BAR 15: assigned [mem 0xdfc00000-0xdfdfffff 64bit pref]
Aug 15 07:15:07 erlangen kernel: pci 0000:02:00.0: BAR 13: assigned [io  0x2000-0x2fff]
Aug 15 07:15:07 erlangen kernel: pci 0000:02:00.0: PCI bridge to [bus 03]
Aug 15 07:15:07 erlangen kernel: pci 0000:02:00.0:   bridge window [io  0x2000-0x2fff]
Aug 15 07:15:07 erlangen kernel: pci 0000:02:00.0:   bridge window [mem 0xdfa00000-0xdfbfffff]
Aug 15 07:15:07 erlangen kernel: pci 0000:02:00.0:   bridge window [mem 0xdfc00000-0xdfdfffff 64bit pref]
Aug 15 07:15:07 erlangen kernel: done.
Aug 15 07:15:07 erlangen kernel: video LNXVIDEO:00: Restoring backlight state
Aug 15 07:15:07 erlangen systemd[1]: Time has been changed
Aug 15 07:15:07 erlangen systemd-sleep[2710]: System resumed.
Aug 15 07:15:07 erlangen systemd[1813]: Time has been changed
Aug 15 07:15:07 erlangen systemd-sleep-grub[2833]: INFO: running grub-once-restore
Aug 15 07:15:07 erlangen systemd[1]: Started Hibernate.
Aug 15 07:15:07 erlangen systemd[1]: Unit sleep.target is not needed anymore. Stopping.
Aug 15 07:15:07 erlangen systemd[1]: Stopping Sleep.
Aug 15 07:15:07 erlangen systemd[1]: Stopped target Sleep.
Aug 15 07:15:07 erlangen systemd[1]: Starting Hibernate.
Aug 15 07:15:07 erlangen systemd[1]: Reached target Hibernate.
Aug 15 07:15:07 erlangen systemd-logind[894]: Operation finished.
Aug 15 07:15:07 erlangen systemd[1]: Unit hibernate.target is bound to inactive service. Stopping, too.
Aug 15 07:15:07 erlangen systemd[1]: Stopping Hibernate.
Aug 15 07:15:07 erlangen systemd[1]: Stopped target Hibernate.

Not sure I understand the current state. Does it now work? If yes, what was the reason and what did you change?

Yes it does!:slight_smile:

What was the reason and what did you change?
The answer is a bit lengthy. Actually I did never consider hibernation. Sleep works fine. Boots only take place on my openSUSE systems upon returning from vacation, kernel updates or power cuts.

This changed a month ago, when I upgraded the laptop of a friend from Windows 7 to openSUSE 13.2. The installer expert partitioning menu offered an option for adjusting swap to extend to the size necessary for hibernation. I clicked yes and sleep as well as hibernation worked upon completing the installation.

The situation on one of the desktop machines was more complicated. I had installed openSUSE Leap 42.1 in March and selected swap half the size of physical RAM. When I wanted to enable hibernation I deleted one partition, increased swap size to physical RAM and installed Grub 2. I assumed this would change the kernel parameters accordingly. However the Grub 2 installer kept the old line and hibernation failed. Eventually I detected the erroneous parameters, fixed them and reinstalled Grub 2. Still hibernation failed and the machine rebooted. I thought the new parameters were used but journalctl showed the old parameters.

Finally I had an explicit shutdown, power cut and and boot from scratch. This fixed everything. Sleep and hibernation now work as flawless as with the laptop installed from scratch as described above. Again many thanks for the rapid response an detailed look into the log file.