pmset

>Usage

The pmset command allows you to manage macOS power management settings. Most pmset commands require administrative privileges, so prepend sudo to the command, e.g., sudo pmset sleepnow.

>Synopsis

pmset [option] <value>

>Options

pmset sleepnow

Puts the system to sleep immediately.

Example:

Dots

-zsh

sudo pmset sleepnow


The system goes to sleep immediately.

pmset schedule wake

Schedules a wake-up or power-on event at a specified date and time.

Example:

Dots

-zsh

sudo pmset schedule wake "03/15/2024 07:00:00"


The system is scheduled to wake up on March 15, 2024, at 7:00 AM.

pmset noidle

Prevents the system from going to sleep as long as the command runs.

Example:

Dots

-zsh

sudo pmset noidle


The system will not sleep until the terminal session is closed.

pmset displaysleep <minutes>

Sets the time (in minutes) before the display goes to sleep.

Example:

Dots

-zsh

sudo pmset displaysleep 10


The display will go to sleep after 10 minutes of inactivity.

pmset -a powernap <0 or 1>

Enables or disables Power Nap, allowing certain background tasks during sleep.

Example to enable Power Nap:

Dots

-zsh

sudo pmset -a powernap 1


Power Nap is now enabled.

>Quiz

Progress: Question ? out of ?

Question Title

Page written by Amos Disha