This tutorial shows how to completely disable suspend and/or hibernate function, so your Linux computer will never go to sleep.
Linux can automatically go to sleep when system is idle or laptop lid is closed, though user can configure to disable that behavior via either graphical options or logind.conf
configuration file.
But, if you never want to sleep your computer, e.g., for server, then you can completely disable this function. So even the suspend option in power-off menu or the corresponding Linux command won’t work!