В Fri, 12 Jun 2015 01:49:46 +0200
Ingmar Sittl
Hi,
I just upgraded from 13.1 to Tumbleweed, and now resume after suspend-to-disk is not working any longer(the suspend operation seems to finish, at least the last status output of the suspend operation is "100%").
related lines to resume or hibernation from dmesg output: [ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.0.4-3-desktop root=UUID=6c7910c8-e14c-40f3-b40d-f2b7b5200028 resume=/dev/disk/by-uuid/480edb48-8447-4b47-8b8e-661cbd893927 showopts vga=0x37d [ 1.128942] PM: Checking hibernation image partition /dev/disk/by-uuid/480edb48-8447-4b47-8b8e-661cbd893927 [ 1.145256] PM: Hibernation image not present or could not be loaded.
This is actually expected. This is called late during kernel initialization before any user space so those convenience links are not present.
[ 1.195027] systemd[1]: Created slice system-systemd\x2dhibernate\x2dresume.slice. [ 1.195215] systemd[1]: Starting system-systemd\x2dhibernate\x2dresume.slice. [ 1.777348] PM: Starting manual resume from disk [ 1.777357] PM: Hibernation image partition 8:1 present
So at this point user space resolved device link and sent literal 8:1 to kernel.
[ 1.777358] PM: Looking for hibernation image. [ 1.777634] PM: Image not found (code -22)
This can mean one of - failure to open disk - failure to read disk - invalid suspend signature on disk first two are less likely, especially given error number (EINVAL).
[ 1.777636] PM: Hibernation image not present or could not be loaded. [ 1.778238] audit: type=1130 audit(1434065222.148:10): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hibernate-resume@dev-disk-by\x2duuid-480edb48\x2d8447\x2d4b47\x2d8b8e\x2d661cbd893927 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
the uuid device seems to be the right one: lrwxrwxrwx 1 root root 10 Jun 12 01:27 /dev/disk/by-uuid/480edb48-8447-4b47-8b8e-661cbd893927 -> ../../sda1
/var/lib/s2disk.conf looks like this (I tried to enable a few of the debugging options in suspend.conf):
But s2disk is user level suspend which also writes different signature to hibernate partition. You need to use user level resume, not kernel directly for this. Does your dracut include 95resume module? If not, try adding it explicitly echo 'add_dracutmodules+=" resume"'
/etc/dracut.conf.d/95-user-level-resume.conf
And recreate initrd.
resume device = /dev/sda1 image size = 1864374681 # parameters taken from /etc/suspend.conf: suspend loglevel = 2 compute checksum = y resume pause = 10
Regards, Ingmar
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org