How to Disable Suspend and Hibernation Modes In Linux
Disable Suspend and Hibernation in Linux
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
https://www.tecmint.com/disable-suspend-and-hibernation-in-linux/