You are not logged in.
Hi, I have a problem with hibernation on my HP Omen 16 2022. When hibernating everything looks ok, laptop turns off like my other machines, but when I'm trying to wake it up it boots like it was not hibernated, just normal boot.
cat /proc/cmdline
root=PARTUUID=bdc1e7d5-9081-471e-ab86-0f241fb32b98 rootflags=subvol=@ rw resume=UUID=646146c8-fae2-4a71-91ef-537fa2769cae add_efi_memmap amd_pstate=passive initrd=\@\boot\initramfs-linux.img(mkinintcpio after adding hook done)
cat /etc/mkinitcpio.conf | rg HOOKS | rg -v ^#
HOOKS=(base udev autodetect modconf kms keyboard keymap consolefont block filesystems resume fsck)Could anyone tell me what is wrong with my setup?
Thank you for your time
Last edited by Naoto (2023-07-15 01:10:38)
Offline
Did you recreate the initramfs after editing mkinitcpio.conf?
--- OT
cat /etc/mkinitcpio.conf | rg HOOKS | rg -v ^#
You know that there're forum members that could get a heart attack when reading this, do you?
https://porkmail.org/era/unix/award#cat
And you need one regexp (which rg apaprently defaults to) to filter that![]()
Offline
Did you recreate the initramfs after editing mkinitcpio.conf?
Yes, after each change to this file
--- OT
cat /etc/mkinitcpio.conf | rg HOOKS | rg -v ^#
You know that there're forum members that could get a heart attack when reading this, do you?
Didn't know ![]()
It just shows my workflow with doing such things.
1. cat the file to show its contents and see whats inside
2. Add rg/grep to filter lines i need and see if the output has only lines I want
3. If it contains any unwanted lines, add next rg/grep to filter them
It's faster for me to do it that way rather than rewriting command or changing regexp.
Also i was so tired trying to fix this I didn't think about health of fellow members, sorry ![]()
Offline
Can you hibernate and resume from the multi-user.target (in case SDDM pulls one of its crash-shutdowns)?
2nd link below.
Is there a parallel windows installation?
3rd link below…
Is the swap partition sufficiently dimensioned?
free -h
swapon
lsblk -fAre there any errors, stalls, etc. when hibernating the system?
Offline
In multi-user.target same behaviour.
There was windows installation, but i created partition table from scratch, so no EFI sharing etc.
> free -h
total used free shared buff/cache available
Mem: 30Gi 1.4Gi 25Gi 4.4Mi 3.6Gi 29Gi
Swap: 30Gi 0B 30Gi
> swapon
NAME TYPE SIZE USED PRIO
/dev/nvme0n1p3 partition 30.6G 0B -2
> lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
nvme1n1
`-nvme1n1p1
btrfs 9a7dd62d-b899-4478-a65e-e1d5010133ee
nvme0n1
|-nvme0n1p1
| vfat FAT32 36FB-F2C8 405.8M 21% /boot
|-nvme0n1p2
| btrfs 4acead49-867e-45f4-b3b1-181d13c1f7ad 435.4G 2% /home
| /
`-nvme0n1p3
swap 1 646146c8-fae2-4a71-91ef-537fa2769cae [SWAP]These are messages that seems to be related to this.
It's weird for me that "PM: Image not found (code -22)" shows before hibernate, not when trying to resume.
Jul 14 14:14:34 laptop kernel: PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff]
Jul 14 14:14:34 laptop kernel: PM: hibernation: Registered nosave memory: [mem 0x000a0000-0x000fffff]
Jul 14 14:14:34 laptop kernel: PM: hibernation: Registered nosave memory: [mem 0x09e80000-0x09ffffff]
Jul 14 14:14:34 laptop kernel: PM: hibernation: Registered nosave memory: [mem 0x0a200000-0x0a213fff]
Jul 14 14:14:34 laptop kernel: PM: hibernation: Registered nosave memory: [mem 0xa8d49000-0xa8d49fff]
Jul 14 14:14:34 laptop kernel: PM: hibernation: Registered nosave memory: [mem 0xa8d67000-0xa8d67fff]
Jul 14 14:14:34 laptop kernel: PM: hibernation: Registered nosave memory: [mem 0xaa759000-0xaa759fff]
Jul 14 14:14:34 laptop kernel: PM: hibernation: Registered nosave memory: [mem 0xaa763000-0xaa763fff]
Jul 14 14:14:34 laptop kernel: PM: hibernation: Registered nosave memory: [mem 0xab21b000-0xab251fff]
Jul 14 14:14:34 laptop kernel: PM: hibernation: Registered nosave memory: [mem 0xad178000-0xad178fff]
Jul 14 14:14:34 laptop kernel: PM: hibernation: Registered nosave memory: [mem 0xae947000-0xaec9efff]
Jul 14 14:14:34 laptop kernel: PM: hibernation: Registered nosave memory: [mem 0xaec9f000-0xaed3efff]
Jul 14 14:14:34 laptop kernel: PM: hibernation: Registered nosave memory: [mem 0xaed3f000-0xb4039fff]
Jul 14 14:14:34 laptop kernel: PM: hibernation: Registered nosave memory: [mem 0xb403a000-0xba3fcfff]
Jul 14 14:14:34 laptop kernel: PM: hibernation: Registered nosave memory: [mem 0xba3ff000-0xba3fffff]
Jul 14 14:14:34 laptop kernel: PM: hibernation: Registered nosave memory: [mem 0xbbffd000-0xbcffffff]
Jul 14 14:14:34 laptop kernel: PM: hibernation: Registered nosave memory: [mem 0xbd000000-0xbd7fffff]
Jul 14 14:14:34 laptop kernel: PM: hibernation: Registered nosave memory: [mem 0xbd800000-0xbfffffff]
Jul 14 14:14:34 laptop kernel: PM: hibernation: Registered nosave memory: [mem 0xc0000000-0xfedfffff]
Jul 14 14:14:34 laptop kernel: PM: hibernation: Registered nosave memory: [mem 0xfee00000-0xfee00fff]
Jul 14 14:14:34 laptop kernel: PM: hibernation: Registered nosave memory: [mem 0xfee01000-0xffffffff]
Jul 14 14:14:34 laptop kernel: ACPI: PM: Registering ACPI NVS region [mem 0x0a200000-0x0a213fff] (81920 bytes)
Jul 14 14:14:34 laptop kernel: ACPI: PM: Registering ACPI NVS region [mem 0xaed3f000-0xb4039fff] (87011328 bytes)
Jul 14 14:14:34 laptop kernel: PM: RTC time: 12:14:25, date: 2023-07-14
Jul 14 14:14:34 laptop kernel: ACPI: PM: (supports S0 S3 S4 S5)
Jul 14 14:14:34 laptop kernel: PM: Magic number: 15:497:228
Jul 14 14:14:49 laptop kernel: PM: Image not found (code -22)
Jul 14 14:14:49 laptop kernel: PM: hibernation: hibernation entryOffline
Jul 14 14:14:49 laptop kernel: PM: Image not found (code -22)
Jul 14 14:14:49 laptop kernel: PM: hibernation: hibernation entryThat wasn't in any of the previous journals, was it?
It means that the hibernation partition as referenced by "resume=" could not be found.
Since the reference seems correct it could indicate that the initramfs was not rebuild or you're using the wrong one.
You currently have a /boot partition mounted, what's up w/ "initrd=\@\boot\initramfs-linux.img" in your kernel commandline?
Offline
That's it! There was EFI partition mounted in /boot, but I always mount it in /boot/efi. Here /boot should be just directory on btrfs subvolume "@" used as rootfs (to backup easier or sth.) and that is the reason to set initrd to "\@\boot\...". Looks like I was rebuilding initramfs, but it landed in wrong place and every time system was booting it loaded the old one. Changed mountpoint in fstab and now it works flawlessly.
Few hours of messing with kernel params, initcpio hooks, rebuilding initramfs, research and it turned out such simple mistake...
Anyway, thank you for your help and your time!
Last edited by Naoto (2023-07-14 13:41:24)
Offline
So we fixed two bugs for one \o/
(you'd have noticed w/ the next kernel update…)
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline