I made a change in the resume module-setup, adding an additional check, trying to enhance the current behavior, but I’m not experienced enough to say it’s ok or not.
should contain a SUCCESS after systemctl hibernate
Here it takes 130 sec to write the RAM to external disk.
When the lights are out you can restart by power-on.
@eso, I forgot to mention I chose swap file during install, which is hardcoded to create a 512M file on /swapfile (see https://codeberg.org/Calamares/calamares/issues/1722). I later replaced it with a file at least the size of my RAM to be able to hibernate.
But the point is not how to be able to hibernate, the point is dracut trying to guess if you need the resume module, which should be true if systemd is able to hibernate; the current guess being “if /sys/power/resume = 0:0 then hibernation is not enabled”, which is not accurate IMHO.
and they are inserted to
cat /etc/kernel/cmdline nvme_load=YES nowatchdog rw root=UUID=9b9bee00-aa24-462a-af48-f035bc889e94 resume=UUID=9b9bee00-aa24-462a-af48-f035bc889e94 resume_offset=12150784
and similarly to /efi/loader/entries/*.conf
sudo dracut-rebuild
is also needed
having tested hibernation (it seems to work)
Checked
But, as the last paragraph says before that section, “the following steps are not necessary unless the system is using legacy BIOS or you want to choose a different swap space from the automatically-selected one”. It’s just dracut’s resume module setup doesn’t know yet.