Hibernate not work

On Thinkpad x201 was opensuse 13.1. Huibernate work well.

After install tumbleweed, hibernate not work. Trying to reinstall - same thing.

Disk have two partition /dev/sda1 swap 6Gb and /dev/sda2 ext4 30Gb for the system with a home dir.
Amount of ram is 4Gb

in journalctl i found the strings. about hibernate partition is not found and error code -22.

Can anyone check for this problem?

Right now trying to install opensuse 13.1 - hibernation is work
installing opensuse 13.2 - hibernation is work
installing tumbleweed - hibernation not working

all systems have same settings about file system /dev/sda1 swap, /dev/sda2 ext4 mount as /

(for tumbleweed) could you give output of:
swapon --show
cat /proc/cmdline
blkid | grep -i swap

swapon --show
NAME TYPE SIZE USED PRIO
/dev/sda2 partition 6G 0B -1

cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-4.10.13-1-pae root=UUID=abf11288-655f-4c65-8142-6dc34ab5d94f resume=UUID=7ff61804-bd88-4617-982e-8c7a44d2b521 showopts

blkid | grep -i swap
/dev/sda2: UUID=“7ff61804-bd88-4617-982e-8c7a44d2b521” TYPE=“swap” PARTUUID=“f29de734-02”

ps: i tuned up the resume option in /etc/default/grub.cfg (here was resume=/dev/sda2)

in journal:
Found device ST1000LM048-2E71 3.
Reached target Initrd Root Device.
Starting Resume from hibernation using device /dev/disk/by-uuid/7ff61804-bd88-4617-982e-8c7a44d2b521…
PM: Starting manual resume from disk
PM: Hibernation image partition 8:2 present
PM: Looking for hibernation image.
PM: Image not found (code -22)
PM: Hibernation image not present or could not be loaded.
Could not resume from ‘/dev/disk/by-uuid/7ff61804-bd88-4617-982e-8c7a44d2b521’ (8:2).
Started Resume from hibernation using device /dev/disk/by-uuid/7ff61804-bd88-4617-982e-8c7a44d2b521.
Reached target Local File Systems (Pre).
Starting File System Check on /dev/disk/by-uuid/abf11288-655f-4c65-8142-6dc34ab5d94f…
Reached target Local File Systems.
and so on

> ps: i tuned up the resume option in /etc/default/grub.cfg (here was resume=/dev/sda2)
> Disk have two partition /dev/sda1 swap 6Gb and /dev/sda2 ext4 30Gb for the system with a home dir.
your saying the initial resume was sda2 which was incorrect? (i.e. sda2 is home?) so you modified and used the uuid of sda1?

im guessing here but it might be worth replacing at the grub menu resume=/dev/sda1 (if this is your swap partition) and seeing if it then works.
*

PS a large part of the journal including the error code -22 is standard, it happens all the time (i.e. when there is no image to be found)

general comment: for daily use suspend is much better on linux than hibernation (hibernation has always been slightly flaky)*

… actually, I have always found it to be the opposite, hibernation works well, suspend often fails to resume.

To the OP:

In Yast=>Bootloader=>Boot Loader Options

… make sure the Resume= line has the correct id, and make sure in /etc/fstab that the id matches.

Would not hurt if your Swap was twice the size of your RAM, as well.

1 Like

i have several X201 at work at one x201 at home. Now at home i try to install tumbleweed and find what is the problem of not working hibernation.

so. at now i have these settings of partition:

lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931,5G 0 disk
├─sda1 8:1 0 30G 0 part
├─sda2 8:2 0 6G 0 part [SWAP]
├─sda3 8:3 0 30G 0 part /
└─sda4 8:4 0 865,5G 0 part

blkid
/dev/sda1: UUID=“0A6D12980A6D1298” TYPE=“ntfs” PARTUUID=“f29de734-01”
/dev/sda2: UUID=“7ff61804-bd88-4617-982e-8c7a44d2b521” TYPE=“swap” PARTUUID=“f29de734-02”
/dev/sda3: UUID=“abf11288-655f-4c65-8142-6dc34ab5d94f” TYPE=“ext4” PTTYPE=“dos” PARTUUID=“f29de734-03”
/dev/sda4: PARTUUID=“f29de734-04”

in setting In Yast=>Bootloader=>Boot Loader Options
resume=UUID=7ff61804-bd88-4617-982e-8c7a44d2b521 showopts (but after installing ot tumbleweed was here: resume=/dev/sda2)

swapon -v
NAME TYPE SIZE USED PRIO
/dev/sda2 partition 6G 0B -1

information about memory:
free
total used free shared buff/cache available
Mem: 3924636 476820 2788684 66244 659132 3021524
Swap: 6291452 0 6291452

the swap partition is 6Gb, the amount of ram is 4Gb, so it must work, but it not working,

and very strange what hibernation is work on opensuse 13.1 and 13.2. (leap i did not try to install, not enough free flashdisks)

and i have this picture while trying to power on after hibernation

after fiew second sysytem is rebooting and boot to non hibernation state.

http://savepic.ru/13869394.jpg