when the kernel boots it looks to see if there is a resume image stored on disk, and if there is then it loads that.
if loading that doesn’t work, or if the file is corrupted you can get all manner of unexpected results, which is why enabling Secure Boot will generally prevent hibernation (at least it does on my system).
what does swapon say?
by the looks of the output above you should have 42G of swap which would be enough for a 32GB RAM machine… if you have more ram that that, you are going to need a larger swap.
which is why enabling Secure Boot will generally prevent hibernation
I did not change laptop’s configuration for ages, but updates. And it worked fine until I needed to turn off electricity at my flat for a few hours. I hibernated the laptop as usual, but once I turned it on again, it successfully restored saved image and failed with panic. It’s a laptop. Nobody disassembled it, change its configuration (including adding, removing or replacing hardware) or even move it away from my work table. I only had connected an external power supply and a usb mouse (that has been connected to the same usb port for at least last 3 years).
what does swapon say?
$ sudo swapon
NAME TYPE SIZE USED PRIO
/dev/dm-2 partition 42G 0B -2
how old is the connection between the SSD and the M.2 slot?
The ssd has been installed on a factory. I did not change it.
There are no any other issues and there are no issues with the ssd.
I think, i just wait for the next update rather than disassemble my laptop.
$ sudo smartctl -A /dev/nvme0n1
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.17.0-19-generic] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF SMART DATA SECTION ===
SMART/Health Information (NVMe Log 0x02)
Critical Warning: 0x00
Temperature: 38 Celsius
Available Spare: 100%
Available Spare Threshold: 10%
Percentage Used: 3%
Data Units Read: 75,948,074 [38.8 TB]
Data Units Written: 64,001,458 [32.7 TB]
Host Read Commands: 3,885,317,198
Host Write Commands: 2,973,134,918
Controller Busy Time: 7,037
Power Cycles: 175
Power On Hours: 625
Unsafe Shutdowns: 26
Media and Data Integrity Errors: 0
Error Information Log Entries: 0
Warning Comp. Temperature Time: 0
Critical Comp. Temperature Time: 0
Temperature Sensor 1: 38 Celsius
Temperature Sensor 2: 38 Celsius