Battery, network & drives

Mac won't sleep, or wakes up on its own? Find what keeps it awake

Your Mac should sleep when you walk away and stay asleep until you come back. If it doesn't, macOS keeps a record of who asked it to stay awake and what woke it. This guide shows you how to read that record and act on it.

On this page
  1. Step 1: See what is keeping your Mac awake right now
  2. Step 2: Deal with the usual suspects
  3. Step 3: Find out what woke your Mac
  4. Step 4: Change the settings that wake it
  5. Step 5: Check that it worked
  6. How to undo
  7. When to contact Apple
  8. Sources
  9. Quick answers
Tested on

macOS 27.0.1 on a MacBook Pro with Apple M1 Pro, 16 November 2026. None of the commands below needs an administrator password, and none of them changes anything unless the step says so.

Step 1: See what is keeping your Mac awake right now

Apps that need the Mac to stay awake (a video call, a download, a backup) place an assertion. As long as one is active, the Mac won't go to idle sleep. Open Terminal (Applications → Utilities) and run:

pmset -g assertions

Look at two parts of the output:

  • The counters at the top. While you are using the Mac, several of them (such as PreventUserIdleSystemSleep and UserIsActive) are normally 1. They only matter if they stay at 1 after you stop using the Mac and the display has gone dark.
  • The Listed by owning process section. Each line starts with pid 1234(AppName) and usually says why, for example PreventUserIdleSystemSleep named: "Playing video".

One line is normal and not a problem: powerd with Prevent sleep while display is on. It only means the screen is on. It goes away when the display sleeps.

If the name in brackets is cut off or unclear, ask macOS for the full path of that process (replace 1234 with the number you saw):

ps -p 1234 -o comm=
Tip

Activity Monitor shows the same thing without Terminal. Open the Energy tab and look at the Preventing Sleep column. If you don't see it, choose View → Columns and turn it on.

Step 2: Deal with the usual suspects

These are the things that most often hold a Mac awake. Quit or pause the one you found in Step 1.

  • Media: a paused video or a muted browser tab that is still "playing".
  • Transfers: downloads, cloud sync, a Time Machine backup or a print job stuck in the queue.
  • Sharing: Screen Sharing, Remote Management or File Sharing in System Settings → General → Sharing. A Mac that is being shared stays reachable.
  • Keep-awake utilities: apps whose whole job is to stop sleep. Check the menu bar.
  • External drives: a mounted drive can show up as ExternalMedia. That one doesn't stop sleep by itself, but a drive that is being backed up or indexed can.

Step 3: Find out what woke your Mac

Assertions explain why a Mac won't fall asleep. If it falls asleep but wakes up again, the power log tells you why:

pmset -g log | grep -E "Wake from|DarkWake from" | tail -20

Each line has a date, a type and a reason after due to:

You seeWhat it means
Wake from ... lid or UserActivityYou opened the lid or touched the keyboard or mouse. Normal.
DarkWake from ... rtc/SleepServiceA short maintenance wake with the screen off, scheduled by macOS (mail, backups, updates). Usually under a minute.
... USB-C_plug or USBA cable, dock or USB device was connected or sent a signal.
Network or WiFi in the reasonAnother device on the network asked for this Mac (for example, a shared printer or file server).

To see which process scheduled a maintenance wake, run:

pmset -g log | grep "Wake Requests" | tail -5

If these commands print nothing, the Mac hasn't slept recently; check again after a night. On our Mac this showed process=dasd, the macOS background task scheduler, waking every 15 to 17 minutes for a system task. Short dark wakes like these are expected and use very little power. And to see wakes that are planned for the future:

pmset -g sched

If Repeating power events lists a wake you didn't set up, someone (or some app, or your organization) scheduled it. Ask whoever manages the Mac before removing it.

Step 4: Change the settings that wake it

Open System Settings → Battery → Options (on a desktop Mac, the same switches are under Energy). The ones that matter:

  • Wake for network access: lets other devices wake the Mac over the network. Turn it off if you don't share files, printers or music from this Mac.
  • Prevent automatic sleeping on power adapter when the display is off: when this is on, a plugged-in Mac stays awake with the screen off. Turn it off if you want it to sleep.

You can confirm the current values in Terminal. womp 1 means Wake for network access is on, and the sleep line names any process that is preventing sleep:

pmset -g

Unplug docks and USB devices you don't need overnight if Step 3 showed USB wakes.

Step 5: Check that it worked

  1. Leave the Mac alone until the display sleeps, wake it, and run pmset -g assertions straight away. The app you dealt with should no longer appear under Listed by owning process; only macOS's own powerd display line and your activity should remain.
  2. Choose Apple menu → Sleep and leave the Mac for an hour or overnight.
  3. Run the Step 3 log command again. You should see only short DarkWake entries and your own Wake from ... lid or UserActivity when you came back.

How to undo

Nothing in this guide is permanent. Turn the Battery or Energy options back on in the same place, and reopen any app you quit. The pmset -g commands only read settings; they never change them.

When to contact Apple

Contact Apple Support if pmset -g assertions shows nothing holding the Mac awake but it still never sleeps, if it wakes with a full Wake from (screen on) many times a night with no cause in the log, or if a laptop gets hot in a bag with the lid closed. Try a safe mode start first. On an Apple silicon Mac: shut down, press and hold the power button until the startup options appear, select your startup disk, hold Shift and click Continue in Safe Mode. On an Intel Mac, restart and hold Shift until the login window appears. If the problem stops in safe mode, a third-party app or login item is the cause, not the hardware.

Sources

Quick answers

Is it bad if my Mac wakes up briefly at night?

Short DarkWake entries (screen off, under a minute) are normal maintenance wakes for mail, backups and updates. Only frequent full wakes with the screen on point to a problem.

Why does my Mac not sleep when an external drive is plugged in?

The drive alone usually doesn't block sleep, but a backup, sync or Spotlight indexing on that drive can. Check pmset -g assertions while the drive is connected.

Do I need admin rights for these commands?

No. pmset -g, pmset -g assertions, pmset -g log and pmset -g sched only read information and work in a standard account.