Edit: The below error is because audit2allow will only work if it has already denied an operation.
audit2allow - generate SELinux policy allow/dontaudit rules from logs of denied operations
In this case, the hibernate failure was due to secure boot still being enabled, and so it was not a SELinux policy denial.
I’m encountering the exact same error as @Panos_Sapou. I’m on a Framework 13 with a fresh Fedora 40 install.
Starting from step 11 (after reboot):
miles@fedora:~$ sudo systemctl hibernate
[sudo] password for miles:
Call to Hibernate failed: Sleep verb 'hibernate' is not configured or configuration is not supported by kernel
miles@fedora:~$ sudo audit2allow -b
miles@fedora:~$ cd /tmp
miles@fedora:/tmp$ sudo audit2allow -b -M systemd_hibernate
compilation failed:
systemd_hibernate.te:6:ERROR 'syntax error' at token '' on line 6:
/usr/bin/checkmodule: error(s) encountered while parsing configuration
miles@fedora:/tmp$ cat systemd_hibernate.te
module systemd_hibernate 1.0;
miles@fedora:/tmp$
I achieved the whole tutorial successfully after many attempts, but I got stuck in getting it working. Whenever I call sudo systemctl hibernate, I get a black screen then I spawn in the login screen the following second. What could be happening?
On my side, resuming from hibernation doesn´t work anymore with 6.11.4-201.
It remains stucked on framework splash screen before grub kernel selection menu.
Helpful guide for the newer versions of Fedora. I’ve installed Fedora 40 on ext4 rather than btrfs. I’m trying to get this guide to work with the only change being the use of the following to get the offset value:
With systemd v255 and superior, there is normally no need to set --resume and --resume_offset anymore.
I don´t use this args and hibernate is working.
I use btrfs, but I don´t think the filesystem is relevant here.