You are not logged in.

#1 2025-01-19 11:36:11

jebez
Member
Registered: 2025-01-15
Posts: 50

[SOLVED] Hibernate acts like reboot

My config: https://bbs.archlinux.org/viewtopic.php?id=302717.

Whatever Wayland or X11, hibernate doesn't work: it acts like reboot, if I leave some open apps, hibernate then resume, empty desktop.
Same on the CLI, by stopping KDE:

systemctl isolate multi-user

https://wiki.archlinux.org/title/Power_ … nsistently doesn't help me.

Last edited by jebez (2025-01-19 21:03:28)

Offline

#2 2025-01-19 16:07:06

seth
Member
Registered: 2012-09-03
Posts: 60,805

Re: [SOLVED] Hibernate acts like reboot

echo root=/dev/disk/by-id/usb-JetFlash_Transcend_32GB_01JDP4E3DVWKHULY-0:0-part1 resume=/dev/disk/by-id/usb-JetFlash_Transcend_32GB_01JDP4E3DVWKHULY-0:0-part2 rw>/mnt/etc/kernel/cmdline

Are you trying to boot from/hibernate to some sort of USB key?

Please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Waking from a hibernation will turn into a reboot if the hibernation image cannot be loaded for any reason.

Offline

#3 2025-01-19 16:18:10

jebez
Member
Registered: 2025-01-15
Posts: 50

Re: [SOLVED] Hibernate acts like reboot

seth wrote:

Are you trying to boot from/hibernate to some sort of USB key?

Yes, why not? I try Arch Linux before I'll install to the NVME of my PC.

http://0x0.st/8Ha1.txt done.

Last edited by jebez (2025-01-19 16:19:41)

Offline

#4 2025-01-19 16:27:24

seth
Member
Registered: 2012-09-03
Posts: 60,805

Re: [SOLVED] Hibernate acts like reboot

Actually running the OS from a usb key would kill the latter in no time, but on topic, the device might simply show up too late/not at all during the resume (ie. hibernating to a removable device might not be possible with that hardware)

Is that journal supposed to cover an attempt to resume a hibernating system?

Jan 19 16:12:49 archlinux systemd[1]: Starting Clear Stale Hibernate Storage Info...
Jan 19 16:12:49 archlinux systemd[1]: Finished Clear Stale Hibernate Storage Info.
Jan 19 16:12:49 archlinux systemd-hibernate-resume[365]: Reported hibernation image: ID=arch kernel=6.12.9-arch1-1 UUID=47c4ca47-f17a-4c3c-8b68-51be69ac86d1 offset=0
Jan 19 16:12:49 archlinux systemd-hibernate-resume[365]: Successfully cleared HibernateLocation EFI variable.

just clears some residuals?

Offline

#5 2025-01-19 16:50:17

jebez
Member
Registered: 2025-01-15
Posts: 50

Re: [SOLVED] Hibernate acts like reboot

seth wrote:

Actually running the OS from a usb key would kill the latter in no time

omg why?

So it would work on the NVME ?

It's only for the last boot? I rebooted sorry brb.

Last edited by jebez (2025-01-19 16:53:31)

Offline

#6 2025-01-19 16:55:53

seth
Member
Registered: 2012-09-03
Posts: 60,805

Re: [SOLVED] Hibernate acts like reboot

Because USB keys aren't cheap ssds - there's no wear leveling, you'll end up overusing isolated cells, they die and the firmware will move the key to read-only.

It's hard to say whether things will just work on your nvme, but the provided log does not look like it's coming out of a hibernation.
Maybe also post the previous to show what's going on there

sudo journalctl -b -1 | curl -F 'file=@-' 0x0.st

(nb. that if you've meanwhile rebooted the previous log might actuall be the one you've posted before, increase the offset accordingly)

Or post journals from two boots where you're dead sure that you tried to hibernate in the first and resume from that in the second one.

Offline

#7 2025-01-19 17:01:49

jebez
Member
Registered: 2025-01-15
Posts: 50

Re: [SOLVED] Hibernate acts like reboot

New http://0x0.st/8Hah.txt after a failed hibernate, h for hibernate I presume?

Good to know, I'll install on the NVME, adios Debian...

Last edited by jebez (2025-01-19 17:06:39)

Offline

#8 2025-01-19 18:58:34

jebez
Member
Registered: 2025-01-15
Posts: 50

Re: [SOLVED] Hibernate acts like reboot

I installed on the NVME, same sad

Offline

#9 2025-01-19 20:26:46

seth
Member
Registered: 2012-09-03
Posts: 60,805

Re: [SOLVED] Hibernate acts like reboot

Hibernate the system, attempt a resume, then post the journals for those two boots

(sudo journalctl -b -1; sudo journalctl -b) | curl -F 'file=@-' 0x0.st

Offline

#10 2025-01-19 20:37:21

jebez
Member
Registered: 2025-01-15
Posts: 50

Re: [SOLVED] Hibernate acts like reboot

The last link isn't useful?

http://0x0.st/8HS2.txt

Offline

#11 2025-01-19 20:48:13

seth
Member
Registered: 2012-09-03
Posts: 60,805

Re: [SOLVED] Hibernate acts like reboot

No, but this one is.

Jan 19 20:33:20 archlinux kernel: PM: Image not found (code -16)
Jan 19 20:33:20 archlinux systemd-sleep[17866]: Performing sleep operation 'hibernate'...
Jan 19 20:33:20 archlinux kernel: PM: hibernation: hibernation entry
Jan 19 19:57:11 archlinux kernel: Kernel command line: root=/dev/disk/by-id/nvme-WDS250G3X0C-00SJG0_185250422455-part1 resume=/dev/disk/by-id/nvme-WDS250G3X0C-00SJG0_185250422455-part2 rw
lsblk -f

Consider addressing it va its UUID, https://wiki.archlinux.org/title/Power_ … e_location and also please post your /etc/mkinitcpio.conf (you didn't just forget to add the resume hook, did you?)
https://wiki.archlinux.org/title/Power_ … _initramfs

Offline

#12 2025-01-19 21:03:02

jebez
Member
Registered: 2025-01-15
Posts: 50

Re: [SOLVED] Hibernate acts like reboot

Add resume in /etc/mkinitcpio.conf

HOOKS=(base udev autodetect microcode modconf kms keyboard keymap consolefont block filesystems resume fsck)

then

sudo mkinitcpio -P

works! Thanks!

Sorry I came from Debian, no need to to it, /etc/mkinitcpio.conf doesn't even exist.

Offline

#13 2025-01-19 21:32:48

seth
Member
Registered: 2012-09-03
Posts: 60,805

Re: [SOLVED] Hibernate acts like reboot

No need to be sorry.

The worst part about arch is that nothing works by itself.
You have to care about everything.

The best part about arch is that nothing works by itself.
You will care about everything.

Offline

Board footer

Powered by FluxBB