Prevent suspend and hibernation
To prevent the system from suspending or hibernating, edit /etc/systemd/sleep.conf
with the following content:
[Sleep]
# Disable suspend
AllowSuspend=no
AllowHibernation=no
AllowSuspendThenHibernate=no
AllowHybridSleep=no