You are not logged in.

#1 2023-02-03 23:56:05

f4g4
Member
Registered: 2023-02-03
Posts: 1

Failing to Hibernate - Image not found (code -16)

Hi everyone, when I run `systemctl hibernate` my pc poweroff instead of hibernating. To be more precise the screen go black, than I see a really messed up pixel version of the screen and then proceeds to shut off.

Here the step that I took to hibernate:

Having a working swapfile

cat /proc/swaps
Filename				Type		Size		Used		Priority
/swap/swapfile                          file		6291452		320232		-2

Configured my initramfs

cat /etc/mkinitcpio.conf | grep resume
HOOKS=(base udev autodetect modconf kms keyboard keymap consolefont block filesystems resume fsck)

Then run `mkinitcpio -P` to regenerate them.


cat /proc/cmdline
initrd=\amd-ucode.img initrd=\initramfs-linux.img root="UUID=7d1cb2b5-73d7-483b-8ac9-6c1d034b4a8e" resume=7d1cb2b5-73d7-483b-8ac9-6c1d034b4a8e resume_offset=6632269 rw

Since I'm on btrfs, to know `resume_offset=6632269` I used `btrfs inspect-internal map-swapfile -r /swap/swapfile`
The only problem that I had, and I guess that's the point of failure, is that I don't really know what should be put as the resume parameter. I used the same UUID as root launching `findmnt -no UUID -T /swap/swapfile`, and I searched everywhere to find the UUID for the swapfile but I was not successfull. I think my swap is not on his own volume but I followed the procedure in the installation very closely and it seems it doesn't have to be.

Here's what I found in `journalctl`:

systemd[1]: Starting Hibernate...
systemd-sleep[581]: Entering sleep state 'hibernate'...
serieEVA kernel: PM: Image not found (code -16)
serieEVA kernel: PM: hibernation: hibernation entry

Somebody has any idea on what could have I done wrong?

Last edited by f4g4 (2023-02-03 23:58:34)

Offline

#2 2023-02-04 11:50:37

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Failing to Hibernate - Image not found (code -16)

I think that should be

resume=UUID=7d1cb2b5-73d7-483b-8ac9-6c1d034b4a8e

Reference: https://wiki.archlinux.org/title/Power_ … _swap_file

Last edited by Head_on_a_Stick (2023-02-04 20:59:10)


Jin, Jîyan, Azadî

Offline

Board footer

Powered by FluxBB