If I have the script installed the computer does not wake up from a normal sleep cycle (only from the first one). If I hit sleep in the shutdown menu or close the lid the computer just freezes upon wakeup.
Running sudo journalctl -b -1
gives me:
Jul 31 20:13:51 jm-framework audit[4034]: AVC avc: denied { execute } for pid=4034 comm="(direxec)" name="00-on-sleep-disable-wakeups.sh" dev="nvme0n1p3" ino=265863 scontext=system_u:system_r:systemd_sleep_t:s0 tcontext>
Jul 31 20:13:51 jm-framework (direxec)[4034]: Failed to execute /usr/lib/systemd/system-sleep/00-on-sleep-disable-wakeups.sh: Permission denied
Jul 31 20:13:51 jm-framework (sd-exec-strv)[4033]: /usr/lib/systemd/system-sleep/00-on-sleep-disable-wakeups.sh failed with exit status 1.
Jul 31 20:13:51 jm-framework systemd-sleep[4019]: Performing sleep operation 'suspend'...
Jul 31 20:13:51 jm-framework kernel: PM: suspend entry (s2idle)
The script has a+rx
permissions.