macOS

pmset

CautionPower & sleep settings

pmset -g

Shows/sets power policy. -g assertions reveals what's blocking sleep — the classic no-sleep probe.

Examples

  • pmset -g assertionsFind what prevents sleep

Syntax

pmset -g [assertions] / pmset sleepnow

Before you run it

Changes affect battery behavior.

Used when you see

Mac won't sleep (or wakes up)
1
Identify assertions blocking sleepThe holder of PreventUserIdleSystemSleep is your culprit.
See the whole flow →

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store