How to turn off sleep mode on macOS using the Terminal command

Here’s how to turn off sleep mode on macOS using the Terminal command:

Disable sleep mode

Open Terminal and enter this command:

sudo pmset -a sleep 0

This command disables sleep mode for all power modes (-a flag). You’ll need to enter your administrator password when prompted.

Enable sleep mode

To re-enable sleep mode later, you can use:

sudo pmset -a sleep 1

Would you like me to explain what these commands do in more detail?

Check sleep mode status

 pmset -g

 System-wide power settings:
Currently in use:
 lidwake              1
 lowpowermode         0
 standbydelayhigh     86400
 standbydelaylow      10800
 standby              1
 proximitywake        1
 ttyskeepawake        1
 hibernatemode        3
 powernap             1
 gpuswitch            2
 hibernatefile        /var/vm/sleepimage
 highstandbythreshold 50
 displaysleep         10
 womp                 1
 networkoversleep     0
 sleep                0 (sleep prevented by useractivityd, sharingd)
 acwake               0
 halfdim              1
 tcpkeepalive         1
 disksleep            10

Leave a Reply

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

Name *