Security, PKI, sys and network admins

How to disable computer from sleeping?

Whenever I’d leave my computer open for more than 30-40 minutes without touching it, I’d always find it locked or with my VPN disconnected (which is really frustrating, especially when working remotely).

macOS

The command below will disable sleeping on your computer and it will keep it awake even if your laptop is not connected to a power source. So, open your terminal and type:

sudo pmset sleep 0

Leave a Reply

Your email address will not be published. Required fields are marked *