Skip to main content

Disable Sleep

TurnThis server will always be powered on so that it can respond to requests from the internet. 

We will need to disable sleep, suspension and hibernation so that the computer won't turn off sleepwhen afteridle.

idle

Open your terminal and enter the command:

sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target