Skip to content
86% off$349 $48.86code BF2026

Guides

Mac Won't Sleep? Find What's Keeping It Awake

Your Mac won't sleep? Use pmset -g assertions to see which app is keeping it awake, read each line, and fix video, audio, backup and sharing causes.

TroubleshootingUpdated 9 min read

On this page

When a Mac won't go to sleep, the usual cause is an app holding a "sleep assertion." Common examples are a browser tab playing video, an app holding the audio output open, a call, a download, or a Time Machine backup. To find it, open Terminal and run pmset -g assertions, then pause or quit the app it names. If nothing is listed, check your sleep settings, or check whether the Mac is falling asleep and then waking up again.

Why your Mac won't sleep

macOS puts your Mac to sleep after a period with no keyboard or mouse input. Any app can ask macOS to hold off by creating a power assertion. A video player does this so the screen doesn't go dark mid-film, and a backup tool does it so the copy finishes.

Two kinds of assertion cause most "won't sleep" problems:

  • Keep the system awake: the Mac stays on, but the display can still turn off. If your screen goes dark but the Mac never sleeps, look for this kind.
  • Keep the display on: the screen stays lit, which also keeps the Mac awake.

These idle assertions only block automatic sleep. Choosing Apple menu ▸ Sleep still works. Closing a laptop's lid still sleeps it too, unless the laptop is on power with an external display connected. If manual sleep works but idle sleep never happens, an assertion is almost certainly the cause.

Check whether sleep is being blocked with pmset -g

This command prints your current power settings. It only reads them.

bash
pmset -g

Look at the sleep and displaysleep lines. When something is blocking them, macOS adds a note in parentheses, such as (sleep prevented by coreaudiod). That confirms an assertion exists. The next command tells you who made it.

If the output shows SleepDisabled 1, sleep has been switched off for the whole system. See Sleep is turned off with pmset below.

List every sleep assertion with pmset -g assertions

  1. Open Terminal. It's in Applications ▸ Utilities, or search for it with Spotlight (⌘Space, Command-Space).
  2. Type the command below and press Return.
bash
pmset -g assertions

This only reads information and changes nothing. To keep a copy for later or to send to support, save the output to your Desktop:

bash
pmset -g assertions > ~/Desktop/assertions.txt

That creates assertions.txt on your Desktop, replacing any earlier file with the same name.

Read the pmset -g assertions output

The output has two parts that matter. Here is a trimmed, illustrative example. Process IDs, names, labels and times on your Mac will differ, and the real list has more rows.

text
Assertion status system-wide:
   PreventUserIdleDisplaySleep    1
   PreventSystemSleep             0
   PreventUserIdleSystemSleep     1
Listed by owning process:
   pid 612(Google Chrome Helper): [0x00001a2b00019876] 00:12:31 PreventUserIdleDisplaySleep named: "…"
   pid 245(coreaudiod): [0x00001a2b00019877] 00:12:30 PreventUserIdleSystemSleep named: "com.apple.audio.…"
	Created for PID: 598.

The system-wide summary

Each assertion type has a count next to it. A type showing 1 or more is active right now.

TypeWhat it blocks
PreventUserIdleSystemSleepIdle system sleep. The display can still turn off.
PreventUserIdleDisplaySleepDisplay sleep, and therefore system sleep.
PreventSystemSleepSystem sleep more firmly. macOS honors it only on AC power (this is what caffeinate -s uses).

In the per-process list you may also see older names for the same types: NoIdleSleepAssertion means PreventUserIdleSystemSleep, and NoDisplaySleepAssertion means PreventUserIdleDisplaySleep. The other rows in the summary rarely explain a Mac that never sleeps.

The per-process list

Each line under Listed by owning process is one assertion. Read it left to right:

  • pid 612(Google Chrome Helper): the process ID and name of the owner.
  • [0x…]: an internal ID you can ignore.
  • 00:12:31: how long the assertion has been held (hours:minutes:seconds).
  • PreventUserIdleDisplaySleep: the type, from the table above.
  • named: "…": the label the app gave the assertion. It's often the best clue to what it's for.

Lines that point to another app

Some system processes hold assertions on behalf of an app. The most common is coreaudiod, the audio system. When an app plays or records sound, coreaudiod owns the assertion, and a line underneath says Created for PID: 598. To turn that number into an app, run:

bash
ps -p 598 -o comm=

It prints the path of the program with that process ID (replace 598 with your number).

Process names ending in "Helper" belong to the app in their name: "Google Chrome Helper" is part of Chrome. Lines from powerd whose labels start with Powerd - are macOS's own bookkeeping and are normally not the cause.

Common culprits and what they look like

What you seeWhat it usually means
A browser or browser helper, often keeping the display onA tab is playing video, including one in the background
coreaudiod with Created for PIDThat app is playing or holding open audio, sometimes silently
A video call app, or coreaudiod created for itA call or meeting is still connected
A browser, App Store or sync appA download, upload or cloud sync is running
backupdTime Machine is backing up
A screen sharing, file sharing or printing processSomeone is connected to your Mac, or a print job is running
caffeinateSomeone ran caffeinate in Terminal, or a script did
A keep-awake app, such as Glowmoth: Session for 1 hourThe app is doing its job; end its session

See what's keeping your Mac awake without Terminal

Activity Monitor (built in). Open Activity Monitor and click the Energy tab. The Preventing Sleep column shows Yes next to any process holding sleep off. If the column is missing, choose View ▸ Columns and turn it on. Often that's enough. It doesn't tell you what the assertion is for or how long it has been held, though, and a system process like coreaudiod still leaves you working out which app it's acting for.

Glowmoth. We make Glowmoth, a keep-awake menu bar app, and it has a view built for this question. Click the Glowmoth icon in the menu bar to open the panel (Option-click it if you've set left-click to toggle), click Show More, and look at Also Keeping This Mac Awake. It reads the same data as pmset -g assertions (no admin password needed) and does the translation for you:

  • Assertions made on an app's behalf are credited to that app, so a coreaudiod line shows up as the browser or music app that's actually playing.
  • Helper processes are grouped under their app.
  • Each row shows the app's icon and name, a plain purpose ("playing video", "playing audio", "in a call", "downloading", "uploading", "backing up", "syncing", "screen sharing", "printing", "installing", "caffeinate", "presenting", "keeping the display on"), and how long it has been held, such as "for 12 min".
  • Hover a row to see its raw assertions ("Keeps the display on", "Prevents all sleep", "Prevents idle sleep"). Reveal in Finder shows you the app.

The list updates every 5 seconds while the panel is open. It shows up to five apps, then "And N more". When nothing else is holding the Mac, it says "Nothing else right now." When Glowmoth itself isn't keeping the Mac awake but another app is, the panel header says so, for example "Held awake by Google Chrome (playing video)". Details are in See what's keeping your Mac awake.

Glowmoth panel: Held awake by Google Chrome and Music, Show More listing both apps and a closed-lid warning below
Show More lists other apps that are keeping your Mac awake.

Glowmoth shows you what's holding the Mac; it doesn't end other apps' assertions. You still pause or quit the app, as below. Glowmoth is part of MacSuite, and you can try it free for 7 days.

Fix each cause

Ordered from the most common and easiest to the least common.

A browser tab is playing video or audio

Symptom: a browser or its helper process holds an assertion, often one that keeps the display on. Fix: find the tab that's playing (look for a speaker icon, but a muted or silent video can hold an assertion too) and pause or close it. Autoplaying video in a background tab counts. If you can't find it, quit the browser and run pmset -g assertions again.

An app is holding the audio output open

Symptom: coreaudiod holds PreventUserIdleSystemSleep, with Created for PID pointing at an app. Fix: pause playback in that app. Some apps keep an audio stream open even while silent, so if pausing doesn't clear the line, quit the app.

A call, screen share or presentation is still running

Symptom: a meeting app, a screen sharing process, or coreaudiod created for a call app. Fix: leave the call or end the sharing session, then quit the meeting app if the line remains. A presentation app in play mode can also keep the display on, so exit play mode.

A download, upload, sync or install is in progress

Symptom: a browser, the App Store, a cloud sync app or an installer holds the assertion. Fix: let it finish, or pause or cancel it in that app. The Mac can sleep again once the transfer ends.

A Time Machine backup is running

Symptom: backupd holds an assertion. Fix: usually, wait for the backup to finish. To stop it now, click the Time Machine icon in the menu bar (if you show it there) while the backup runs and choose the option to skip it.

Another device is using your Mac's shares or printer

Symptom: a file sharing, screen sharing or printing process holds the assertion. Fix: disconnect the other computer from the shared folder, end the remote session, or let the print job finish. If you don't need sharing, turn it off: open System Settings and search for "Sharing".

caffeinate or a keep-awake app is running

Symptom: a caffeinate line, or a keep-awake app's assertion. Glowmoth holds a single assertion named after its reason, such as Glowmoth: Session for 1 hour or Glowmoth: Xcode is running + 1 more. Fix: for caffeinate, press ⌃C (Control-C) in the Terminal window running it, or close that window. Our caffeinate command guide explains its flags.

For Glowmoth, open the panel to see why it's holding the Mac:

  • Turn off the Keep Awake switch in the header to end your own session.
  • Click ✕ on a row in the Held By list to end that one reason.
  • Click Stop Everything to end your session and pause all automatic reasons (rules, apps, coding agents) until you next start a session.

Stop and Stop Everything are also in the menu you get by right-clicking the icon.

Sleep is turned off with pmset

Symptom: pmset -g shows SleepDisabled 1. The Mac doesn't idle-sleep, and a laptop usually stays awake with the lid closed. Why: something ran pmset -a disablesleep 1, which turns sleep off for the whole system. Fix: turn sleep back on. This needs your admin password:

bash
sudo pmset -a disablesleep 0

It restores normal sleep. If you use Glowmoth's closed-lid mode, SleepDisabled 1 is expected while Glowmoth is keeping the Mac awake; it sets it back to 0 as soon as that ends. Glowmoth only undoes the setting when it turned it on itself. If something else did, it leaves it alone and its closed-lid setting shows "Sleep is already turned off with pmset, outside Glowmoth."

Nothing is listed: check your sleep settings

Symptom: pmset -g assertions shows no app holding sleep off, but the Mac still never sleeps on its own. Fix: open System Settings and search for "Lock Screen" to check when the display turns off, and make sure it isn't set to Never. Then search for "Prevent automatic sleeping" and turn that switch off if you want the Mac to sleep when the display is off. On a laptop, that option only covers the power adapter. Mac sleep settings explained covers each option.

The Mac sleeps, then wakes up again

Symptom: the Mac does fall asleep, but you find it awake later. Why: this isn't an assertion. Something is waking it, such as network access requests, a scheduled wake or a connected accessory. Fix: list scheduled power events with this read-only command:

bash
pmset -g sched

For network wakes, open System Settings, search for "Wake for network access", and change it. Then try unplugging USB and Bluetooth accessories one at a time to see whether one of them is waking the Mac.

When to contact Apple or the app's developer

If one app keeps holding an assertion after you've stopped using it, contact that app's developer. Send them the matching line from pmset -g assertions, the app's version and your macOS version.

If no assertion is listed, your settings are right, SleepDisabled is 0, and the Mac still won't sleep after a restart, contact Apple Support. Have the output of pmset -g and pmset -g assertions ready (the Desktop file from earlier works), plus your Mac model and the accessories you have connected.

If your problem is the opposite and the Mac sleeps when you need it awake, see Mac keeps going to sleep.

Every app.
One purchase.