8
1
After hibernating with systemctl hibernate
, the system boots normally as if it had been shutdown.
I have the resume parameter in the kernel line and the resume hook in mkinitcpio.conf
These are the relevant kernel messages:
$ dmesg | grep -i swap
[ 0.000000] Command line: initrd=\initramfs-linux.img root=/dev/sda2 rw resume=/dev/sda4
[ 0.000000] Kernel command line: initrd=\initramfs-linux.img root=/dev/sda2 rw resume=/dev/sda4
[ 0.350295] PM: Checking hibernation image partition /dev/sda4
[ 8.776686] Adding 8191996k swap on /dev/sda4. Priority:-1 extents:1 across:8191996k FS
$ dmesg | grep -i hibern
[ 0.350295] PM: Checking hibernation image partition /dev/sda4
[ 0.350301] PM: Hibernation image not present or could not be loaded.
So the only remaining possibility is that systemctl
didn't write to disk. In fact, when I run the command, the screen first goes blank for a couple of seconds, then I can see my terminal again, and finally it shutdowns itself.
I read that pm-utils do not work very well with systemd, so I wouldn't want to switch to those. Any suggestions?
Thanks!
3I had a similar problem. I fixed it by tweaking the
resume=
kernel option. Find out the UUID of your swap partition and then try toresume=UUID=.......
– Adrian Ratnapala – 2015-03-17T04:41:45.527@AdrianRatnapala: Thanks for the help! I'll try your solution. – rubik – 2015-03-18T01:27:51.087
I have the same problem. Could you please share your solution here? – frogatto – 2015-05-28T16:01:29.810
@abforce Following Adrian's solution worked for me. Replace normal paths with UUIDs in the kernel options. – rubik – 2015-05-28T19:12:02.390