You are not logged in.
Pages: 1
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
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
Notably: is there a line that says "Hibernate inconsistent memory map detected!"?
Online
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
"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
\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
"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
Pages: 1