This results in a lot of laptops with drained batteries and users losing their work/etc when the machine is rebooted. There was a workstation issue, opened as https://pagure.io/fedora-workstation/issue/121 but closed due to the lack of progress with upstream linux's secure boot vs unencrypted swap issues. This shouldn't be sufficient reason not to assure the feature works when secure boot is disabled. For this to work, workstation images should assure an encrypted swap (it works on LUKS) or configure a file on btrfs/etc as swap. Trigger a zram disable before hybrid-sleep or hibernate, add the "resume" module to dracut and assure the kernel "resume=" line is set. The decision about whether to enable this probably should also be dependent on whether the machine advertises S4, but pretty much all x86 laptops/etc do as its been part of the "modern standby" s2idle design where the machines hibernate after X hours or Y% battery drain (usually about 10% IIRC). Reproducible: Always Steps to Reproduce: 1. Using fedora on a laptop, close lid 2. Return 1-2 days later 3. Power on machine. Actual Results: Machine fails to boot to previous state, and the battery is 100% discharged Expected Results: Machine resumes from disk properly, like every other desktop/laptop based OS (ex windows/macos)
So, I am not sure where to route this, but I am pretty sure nothing at all will happen to it just sitting here in 'distribution' component. ;) Perhaps you could open a discussion on devel list/discussion instead and find people who are interested in making this work?
If you don't mind i would change component to systemd. Here's my use case: $ systemctl hibernate Call to Hibernate failed: Not enough swap space for hibernation So maybe all we need is to increase the default swap space size, or change the 'Hibernate' logic, if actually the swap space is enough. $ free -m ... Mem: 15893 ... Swap: 8191 ... (pasted by hand from my laptop).
Part of it is anaconda as well, which should be adding the needed dracut-resume modules, assuring the swapfile/partition is created, and adding the resume line.
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle. Changing version to 42.