On 4/16/22 8:31 AM, Alexander Zhang wrote:
Hello,

I'm trying to enable hibernation to a swap file on Fedora 35. I've created a swapfile 
on a new BTRFS subvolume, added the resume dracut module, and set the kernel command 
line arguments. I've also added SYSTEMD_BYPASS_HIBERNATION_MEMORY_CHECK=1 to the 
environments of systemd-hibernate and systemd-logind since the swap size check is 
apparently incorrect for some reason. Currently, hibernating with echo platform > 
/sys/power/disk and echo disk > /sys/power/state works, but doing systemctl 
hibernate only locks and briefly turns off the screen. I found these lines in the 
logs, which seems to indicate that SELinux is causing the issue:
First try would be to disable SELinux to confirm your hypothesis.

Regards.

--
   Roberto Ragusa    mail at robertoragusa.it
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to