You are not logged in.

#1 2017-08-22 15:31:49

21violins
Member
Registered: 2017-07-15
Posts: 7

[SOLVED] Hibernate not working

I've followed the wiki instructions:

  • Added my swap partition to /boot/refind_linux.conf

"Boot with standard options"  "root=PARTUUID=b575fb53-c963-42d7-abef-96d8bbe58e19 rw add_efi_memmap" resume=PARTUUID=10cd3a3b-a39b-4652-a353-8206d32d5047
"Boot to single-user mode"    "root=PARTUUID=b575fb53-c963-42d7-abef-96d8bbe58e19 rw add_efi_memmap initrd=/boot/initramfs-linux-fallback.img"
"Boot with minimal options"   "root=PARTUUID=b575fb53-c963-42d7-abef-96d8bbe58e19 rw add_efi_memmap systemd.unit=multi-user.target"
  • Added the resume hook to /etc/mkinitcpio.conf

HOOKS="base udev resume autodetect modconf block filesystems keyboard fsck"
  • Rebuilt initramfs with

    mkinitcpio -p linux

But when I execute

systemctl hibernate

and then start up my laptop, I don't see any errors, but my programs from the last session do not appear.

I would really appreciate it if someone could help. Thank you in advance.

Last edited by 21violins (2017-09-11 18:04:27)

Offline

#2 2017-08-23 06:16:23

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

Re: [SOLVED] Hibernate not working

Be more precise. When you wake up from the laptop, it boots normally (without resuming)? Check that the correct command line options are indeed passed to the kernel (cat /proc/cmdline). Also what message do you get in the console? in dmesg? What's the output of journalctl?

Offline

#3 2017-08-23 12:48:41

seth
Member
Registered: 2012-09-03
Posts: 51,909

Re: [SOLVED] Hibernate not working

Notably: is there a line that says "Hibernate inconsistent memory map detected!"?

Online

#4 2017-09-10 22:34:22

21violins
Member
Registered: 2017-07-15
Posts: 7

Re: [SOLVED] Hibernate not working

The laptop boots normally, without resuming.

cat /proc/cmdline yields

 \vmlinuz-linux root=PARTUUID=b575fb53-c963-42d7-abef-96d8bbe58e19 rw add_efi_memmap initrd=\initramfs-linux.img 

This doesn't show the "resume=" option; is this what's wrong? How do I fix this?

I don't see any relevant messages in dmesg or journalctl.

Thank you in advance.

Offline

#5 2017-09-11 00:23:07

loqs
Member
Registered: 2014-03-06
Posts: 17,493

Re: [SOLVED] Hibernate not working

"Boot with standard options"  "root=PARTUUID=b575fb53-c963-42d7-abef-96d8bbe58e19 rw add_efi_memmap" resume=PARTUUID=10cd3a3b-a39b-4652-a353-8206d32d5047

Not sure if it is relevant but " is not at the end of the string but after add_efi_memmap before the resume parameter.

Offline

#6 2017-09-11 06:56:11

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

Re: [SOLVED] Hibernate not working

21violins wrote:

 \vmlinuz-linux root=PARTUUID=b575fb53-c963-42d7-abef-96d8bbe58e19 rw add_efi_memmap initrd=\initramfs-linux.img 

This doesn't show the "resume=" option; is this what's wrong? How do I fix this?

You should add the resume option in the boot parameter of your bootloader; the form is resume=UUID=<uuid of the swap partition> (or whatever format is supported in fstab). The way to do it depend on your bootloader. Note that I can recommend you not to use Grub unless you really need it (and in this case better is to learn how to write a grub.cfg instead of using their scripts). Grub is error prone and difficult to configure. If you boot in EFI mode use systemd-boot or refind, in Bios mode use syslinux. All these bootloaders are well described in the wikis.

Last edited by olive (2017-09-11 06:57:12)

Offline

#7 2017-09-11 18:03:38

21violins
Member
Registered: 2017-07-15
Posts: 7

Re: [SOLVED] Hibernate not working

loqs wrote:
"Boot with standard options"  "root=PARTUUID=b575fb53-c963-42d7-abef-96d8bbe58e19 rw add_efi_memmap" resume=PARTUUID=10cd3a3b-a39b-4652-a353-8206d32d5047

Not sure if it is relevant but " is not at the end of the string but after add_efi_memmap before the resume parameter.

Thank you so much, loqs! I moved the final quote to the end of the line, after the resume parameter, and hibernate now works!

Thank you to olive as well; I suppose I didn't read the wiki info about configuring rEFInd as well as I should have. Now I know.

Offline

Board footer

Powered by FluxBB