My apologies for this, but this is how we go about hibernating on a new system now? In the past, from F34 or before, which is why I last set up this machine and have upgraded it using dnf ever since, it was pretty much automatic. Before that, some more work was needed (for a while): sudo vi /etc/default/grub add --> resume=UUID="****" <-- to the line GRUB_CMDLINE_LINUX= where the UUID is obtained using blkid. then sudo bash -x grub2-mkconfig # # for efi-based systems: # sudo bash -x grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg In either case, systemctl hibernate is enough to set it to hibernate. But all this was not much, compared to what has been described on the thread. What changed? I am just trying to understand this in advance, as I was thikning of doing a clean install just to get rid of crud that inevitably creeps into my system. Having reliable hibernate (and this has been so for me all these years) is very important to me. In the past, I have had a separate physical partition for swap. Nowadays, I think that there is something else (dynamic swap) but I am not sure if that matters. Any enlightenment? Many thanks and best wishes, Ranjan On Mon Aug14'23 10:49:28AM, Patrick O'Callaghan wrote: > From: Patrick O'Callaghan <pocallaghan@xxxxxxxxx> > Date: Mon, 14 Aug 2023 10:49:28 +0100 > To: users@xxxxxxxxxxxxxxxxxxxxxxx > Reply-To: Community support for Fedora users <users@xxxxxxxxxxxxxxxxxxxxxxx> > Subject: Re: More hibernation mystery > > On Mon, 2023-08-14 at 08:05 +0200, Francis.Montagnac@xxxxxxxx wrote: > > On Sun, 13 Aug 2023 22:12:23 +0100 Patrick O'Callaghan wrote: > > > > > On Sun, 2023-08-13 at 18:49 +0200, > > > Francis.Montagnac@xxxxxxxx wrote: > > > > ExecStart=/bin/bash -c '/usr/sbin/swapon /SWAP/swapfile && > > > > /usr/sbin/swapoff /dev/zram0' > > > > > I'll do that, but I don't understand why it sometimes works and > > > sometimes doesn't. > > > > The journal when it succeeds shows that /SWAP/swapfile was activated. > > That may > > be due to hibernate-resume.service previously failed or was not > > called. > > I don't think so but I'd need to think it through. > > > > In addition swapon fails when the swapfile is already activated. A > > better > > hibernate-preparation.service would be: > > > > ExecStart=/bin/bash -c ' \ > > if ! swapon --show=NAME --noheadings | grep -q /SWAP/swapfile; > > then \ > > swapon /SWAP/swapfile || exit; \ > > fi; \ > > swapoff /dev/zram0; \ > > # Ignores the exit code of swapoff. > > exit 0; \ > > ' > > > > I'll add that as a defensive measure. > > > Thanks again. > > poc > _______________________________________________ > users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx > To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx > Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx > Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue