After installing Ubuntu 20.04 Server Edition on an i7-5930K machine, I notice that the system will automatically be suspended after a short period of no user interaction.
The automatic suspend had to be disabled by running the command
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
Why was the system automatically suspended? Shouldn't the suspend settings be disabled by default, especially since this is a server installation of Ubuntu? Is it because of a motherboard BIOS setting?
check what autosuspend.service is doing:
and disable if needed by: