On 2023-08-29 05:35, Andrei Borzenkov wrote:
On Tue, Aug 29, 2023 at 12:13 AM Carlos E. R. <> wrote:
On 2023-08-28 13:32, Andrei Borzenkov wrote:
On 28.08.2023 18:14, Carlos E. R. wrote:
Somehow, restore from hibernation, aka suspend to disk, is not working. It silently boots instead, after I enter the decryption password on Grub prompt.
Next step will be attempting it, and examine journal on next boot. I have not tried for a few days, so the log entry pertaining to the failure I don't know where it is.
[...]
I see this in the log of the next boot just when I hoped it would restore from hibernation:
Aug 27 23:19:04 Laicolasse swapon[860]: swapon: /dev/mapper/cr-auto-2: software suspend data detected. Rewriting the swap signature.
It is already too late. Add
printk.devkmsg=on
to kernel parameters and provide dmesh output after resume. https://susepaste.org/b607972c1e8a https://paste.opensuse.org/b607972c1e8a
AFAIK, it doesn't even attempt to resume :-?
The logs in initrd stop as soon as journald is loaded so systemd probably switches to journal. Could you also show journal outputs, both for the current and for the previous boots? If the system fails (or skips) resume, any interesting message should be in the current journal.
OTOH if the system did resume, then any kernel messages before resuming would be lost as well (replaced by the message buffer in hibernation image).
Nono, it did not resume. I use "systemctl hibernate", wait till it powers down, press the power button to power up (hoping to restore), get the grub prompt for the encryption password, wait a minute or two, and I get the login prompt. It is a full login, not a restore. Then I get that log I pasted. The log "should" contain the somehow failed attempt to restore from swap, but I can not see it. That log was obtained with dmesg, so that's the current session when it was made. These are the last sessions journalctl knows about: -6 fef617382f50477b82cf1c44d9cfd0e9 Sun 2023-08-27 13:23:55 CEST—Sun 2023-08-27 14:48:39 CEST -5 1d49fbf7286a4833a88725dbc8db9eb8 Sun 2023-08-27 20:45:33 CEST—Sun 2023-08-27 21:01:04 CEST -4 37a8a03535684c028922c6773f0c7eeb Sun 2023-08-27 23:18:58 CEST—Sun 2023-08-27 23:55:07 CEST -3 de2beed4877c466d9d2162238a68bb14 Mon 2023-08-28 03:08:51 CEST—Mon 2023-08-28 03:41:15 CEST -2 88e4ca96f94d4b059871b8d62ca91f77 Mon 2023-08-28 13:57:46 CEST—Mon 2023-08-28 22:41:30 CEST -1 7393c4e1f22c4308b3933cafbbcb8629 Mon 2023-08-28 22:43:59 CEST—Mon 2023-08-28 23:14:26 CEST 0 b23744d28ec84ff1ac8bd7e3ffc1dfab Tue 2023-08-29 13:46:38 CEST—Tue 2023-08-29 14:06:39 CEST dmesg file: -rw-r--r-- 1 root root 87340 Aug 28 22:47 boot_to_study_after.dmesg.txt So #-1 above should be the same session as dmesg: Aug 28 22:43:59 Laicolasse kernel: Linux version 5.14.21-150500.55.19-default (geeko@buildhost) (gcc (SUSE Linux) 7.5.0, GNU ld (GNU Binutils; SUSE Linux Enterprise 1> Aug 28 22:43:59 Laicolasse kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-5.14.21-150500.55.19-default root=UUID=858cc569-e2ae-4d12-adf6-3a06ade8281c security=apparmo> #-2 is when I when I run the hibernate command. Aug 28 22:41:30 Laicolasse.valinor systemd-sleep[20384]: Entering sleep state 'hibernate'... #1 Pasted as: https://susepaste.org/2a3ea4bbdcba https://paste.opensuse.org/2a3ea4bbdcba Link is also in your clipboard. (till X start up, I edited out the rest) If you want another journal, it is easy enough to paste them. -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.5 (Laicolasse))