You are not logged in.

#1 2014-10-27 08:32:29

rubik
Member
Registered: 2012-03-23
Posts: 104

systemctl hibernate does not write to disk

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 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!

Offline

#2 2014-10-30 19:53:02

rubik
Member
Registered: 2012-03-23
Posts: 104

Re: systemctl hibernate does not write to disk

Well I installed hibernate-script and it's working flawlessly!

Offline

#3 2014-10-30 20:26:46

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: systemctl hibernate does not write to disk

You can simply say hibernate without any additional package. It's handled by systemd

Offline

#4 2014-11-03 09:49:51

rubik
Member
Registered: 2012-03-23
Posts: 104

Re: systemctl hibernate does not write to disk

I didn't know that, I'll give it a try. But how is it different from systemctl hibernate? Isn't it the same thing?

Offline

Board footer

Powered by FluxBB