How do you find the app that is preventing your Mac from sleeping?
Last reviewed: 19 November 2026.
Open Activity Monitor, click the Energy tab and look at the Preventing Sleep column: Yes means that app is holding the Mac awake. In Terminal, pmset -g assertions lists every process keeping the Mac or its display awake, with the reason it gave.
How do you find it?
- Check the Energy tab. Open Activity Monitor, click Energy and click the Preventing Sleep heading so Yes rows come first.
- List the assertions. In Terminal, run
pmset -g assertions. - Read the owning processes. Under
Listed by owning process, each line starts with a PID and name, then the assertion type and a name in quotes that explains why. - Look for Created for PID. Some lines are made by a system service on behalf of an app, followed by
Created for PID: 653. Look up that PID withps -p 653 -o commto find the app. - Stop the cause. Pause the video or audio, finish or cancel the download, or quit the app. Run the command again to confirm the line is gone.
What do the assertion types mean?
| Assertion | What it does |
|---|---|
| PreventUserIdleSystemSleep | Stops the Mac sleeping when idle. The display can still turn off. |
| PreventUserIdleDisplaySleep | Keeps the display on. Video players and presentation apps use it. |
| NoIdleSleepAssertion | An older name for preventing idle system sleep that many apps still use. |
| PreventSystemSleep | Prevents system sleep altogether, not only idle sleep. Few apps use it. |
| UserIsActive | Created by WindowServer when you type or use the trackpad. It times out by itself. |
The quoted name is set by the app. Examples from a real Mac: "audio-playing" from a web browser, and a coreaudiod assertion for the built-in speakers created for the browser's PID. Both disappear when playback stops.
What commonly keeps a Mac awake?
- Audio or video playing in a browser tab, even a muted or hidden one.
- Downloads, uploads and cloud sync in progress.
- Screen sharing and video calls.
caffeinaterunning in a Terminal window; it exists to prevent sleep until you stop it.
What if the Mac wakes up by itself?
Preventing sleep and waking from sleep are different. To see why a sleeping Mac woke, run pmset -g log | grep -E ' Wake | DarkWake ' | tail. Each line gives the time and a reason, such as a lid open, a network notification or a scheduled maintenance wake.
How can Thrum help?
Thrum's Energy tab shows energy impact for each app, plus battery level and time remaining.
Thrum is $4.99 once with a 14-day free trial and no account. It requires macOS 26 Tahoe on Apple silicon or Intel.
Questions
Does Preventing Sleep: Yes drain the battery?
Indirectly. The app keeps the Mac out of sleep, so everything else running keeps using power too.
Why does powerd hold an assertion?
The line named Prevent sleep while display is on is powerd keeping the system awake while the screen is on. It is normal and ends when the display sleeps.
Sources
- Activity Monitor User Guide: View energy consumption
- pmset(1) and caffeinate(8) man pages: run man pmset and man caffeinate in Terminal