MacBook battery drains overnight while asleep? Check for DarkWake

By Matyas Rathonyi. Published November 15, 2026. Guides

A sleeping MacBook can wake many times a night, and pmset -g log records each of those DarkWakes with the time, the reason macOS gave and the battery charge; count them with pmset -g log | grep -c "DarkWake from". Then turn off the wake sources Apple documents for battery: Wake for network access (Battery, Options, Never), Power Nap, and sharing services you do not use.

pmset -g logEvery sleep and wake, no sudo
Network wakeBattery, Options, set to Never
Power NapUpdates Mail and iCloud asleep
117 DarkWakesOne test Mac, one week of log

This guide is written by Matyas Rathonyi, who makes Clamshell for Mac. Clamshell keeps a Mac awake on purpose, which is the opposite of what you want here, so it plays almost no part in this guide; everything below is built into macOS. The log lines come from an Apple silicon MacBook Pro on macOS 27.2, read on November 15, 2026. Over the week its log covered, that Mac recorded 117 DarkWakes, 115 of them on battery and up to 45 in one day. I did not change any setting on it for this guide, so the before and after on this page is not a measurement.

A terminal counts DarkWake lines in the power log and finds 117, then lists three of them, each on battery at 60 percent, lasting 67, 45 and 2 seconds. $ pmset -g log | grep -c "DarkWake from" 117 $ pmset -g log | grep "DarkWake from" 14:43 DarkWake BATT 60% 67 s 14:45 DarkWake BATT 60% 45 s 15:02 DarkWake BATT 60% 2 s
Count first, then read the lines.The count says whether your Mac is waking a lot. The lines say when, on which power source, at what charge and for how long. (Lines condensed from the real log.)

Read the sleep and wake log

The pmset manual describes pmset -g log as "a history of sleeps, wakes, and other power management events". It needs no sudo. The full log is long, so filter it.

  1. List the sleeps and wakes.
    pmset -g log | grep -E "Entering Sleep|DarkWake from|Wake from"
    Look at the hours when the Mac should have been asleep with the lid closed.
  2. Count DarkWakes per day.
    pmset -g log | grep "DarkWake from" | cut -c1-10 | uniq -c
    On the test Mac this printed lines such as 45 2026-11-09. For a total since the last restart, pmset -g stats prints a Dark Wake Count.
  3. Read one wake in full. Search the log for the time of one DarkWake and read the lines around it, as in the example below.
  4. Note what repeats. The same reason text at a steady interval, or the same process in the wake requests, is what to compare after you change a setting.

What each part of a line shows

Three lines from the test Mac, trimmed and wrapped to fit:

2026-11-11 14:43:28 +0100 DarkWake
  DarkWake from Deep Idle [CDNP] : due to
  smc.sysState.Wake(0x70070000) wifibt
  SMC.OutboxNotEmpty/ Using BATT (Charge:60%) 67 secs
2026-11-11 14:44:35 +0100 Sleep
  Entering Sleep state due to 'Maintenance Sleep':
  TCPKeepAlive=active Using Batt (Charge:60%) 54 secs
2026-11-11 14:44:37 +0100 Wake Requests
  [*process=dasd request=SleepService deltaSecs=1028
  wakeAt=2026-11-11 15:01:45 ...]
  [process=mDNSResponder request=Maintenance
  deltaSecs=7198 ...]
PartWhat it shows
Time and DarkWake or WakeWhen the Mac woke, and which kind of wake the log recorded. On the test Mac, the wake when the lid opened was listed as Wake, not DarkWake
due to ...The reason macOS recorded for the wake or sleep. Apple does not document these codes in the pmset manual or its support pages, so compare them between nights rather than decode them
Using BATT (Charge:60%)The power source and battery charge at that moment. Follow the charge through the night to see where it fell
67 secs at the endOn the test Mac, this matched the time until the next Sleep line: 14:43:28 plus 67 seconds is 14:44:35
Wake RequestsThe processes that asked for a later wake, labelled process=, with the time under wakeAt=

That is as far as the sources go. The manual and Apple's pages do not say what wifibt, SMC.OutboxNotEmpty or Maintenance Sleep mean, and this guide does not guess. What you can act on is the pattern: how often, how long, on battery or not, and whether the charge falls during the run.

What to turn off on battery

These are the wake sources Apple documents. Change one, sleep the Mac overnight, and run the count again.

SettingWhat Apple says it doesWhere to turn it off
Wake for network access"Even in sleep mode, wake your Mac to provide access to shared resources". Apple adds that it wakes the Mac "at regular intervals" so it can tell other computers its resources are availableSystem Settings, Battery, Options: set it to Never. In pmset it is womp; the battery value is in pmset -g custom
Power Nap"Power Nap activates periodically to update information." On battery it checks Mail, updates Calendar and other iCloud events (macOS 26 guide)macOS 26: Battery, Options, Enable Power Nap, Never. macOS 27's Battery page no longer lists it; sudo pmset -b powernap 0 turns it off on battery
Shared services"People using shared services on your Mac can prevent it from sleeping."System Settings, General, Sharing: turn off what you do not use
Bluetooth and Wi-Fi"Turn off Bluetooth and Wi-Fi if you don't need them. They consume energy even when they aren't used."Control Center, before you close the lid. Apple's current guide has no setting for Bluetooth wake; "Allow Bluetooth devices to wake this computer" appears only in its macOS 11 guide

On the test Mac, pmset -g custom showed womp 0 and powernap 1 under Battery Power on macOS 27.2, so Power Nap was still on for battery even though the Battery settings page no longer lists it. Check your own before you change anything. The manual says changing a pmset setting needs root, hence sudo.

One more lever exists, with a warning. The manual says hibernatemode 3 is the default on laptops and that 25 gives "slower sleeps, slower wakes, and better battery life", and it adds "Please use caution." If you try sudo pmset -b hibernatemode 25, sudo pmset -b hibernatemode 3 puts the default back.

Two nights on a timeline. With network wake and Power Nap on, the Mac wakes again and again. With them off on battery, the line stays quiet and the Mac sleeps through. Wake sources on Off on battery z z night morning
Fewer reasons to wake. Network wake and Power Nap both wake a sleeping Mac by design, according to Apple. With them off on battery, there are fewer DarkWakes to drain it.

Where Clamshell fits, and where it does not

Clamshell for Mac is unrelated to most of this: it keeps a Mac awake on purpose, and this guide is about a Mac that should be asleep. If it is installed, make sure it is not armed when you expect sleep; while armed, a closed Mac keeps running instead of sleeping. Mac won't sleep? shows how to check. Its optional Sleep Means Sleep module does the battery half of the table above for you: on battery, a sleeping Mac no longer wakes for Power Nap or network access, and your own settings come back when you turn the module off; macOS asks you once to allow it in Login Items. The free settings above do the same job.

If you run Claude Code and your usage limit also dropped overnight, the same DarkWakes can let background agents re-send their context; the usage limit guide covers that case.

Frequently asked questions

Why does my MacBook battery drain overnight while asleep?

Apple says a sleeping Mac is still turned on and uses much less energy, not none, and some settings wake it on purpose: Wake for network access wakes it at regular intervals and when someone uses its shared resources, and Power Nap updates Mail, Calendar and iCloud while it sleeps. Read pmset -g log to see how often your Mac woke, then turn off the wake sources you do not need on battery.

What is DarkWake in pmset -g log?

It is a line type in the sleep and wake history that pmset -g log prints, listed separately from full Wake lines. Apple does not define the term or its reason codes in the pmset manual or the support pages checked for this guide, so read what the line shows directly: the time, the reason macOS recorded after due to, the power source and battery charge, and how many seconds passed before the next sleep.

How do I stop my Mac from waking up while asleep on battery?

In System Settings, open Battery, click Options and set Wake for network access to Never. On macOS 26, set Enable Power Nap to Never in the same sheet; on macOS 27 the setting is no longer listed there, and sudo pmset -b powernap 0 turns it off on battery. Then turn off unused services in General, Sharing.

Is it normal for a MacBook to lose some battery while asleep?

Some loss, yes: Apple says that in sleep the Mac is still turned on but consumes much less energy. Apple gives no figure for how much is normal. A log full of DarkWakes through the night is worth checking, because each one is time the Mac spent awake.

Does Clamshell for Mac cause battery drain while asleep?

While armed, Clamshell keeps the Mac awake on purpose, so a closed Mac with Clamshell armed is running, not asleep. Disarm it or quit it and normal sleep returns. Its optional Sleep Means Sleep module does the opposite job: on battery, a sleeping Mac no longer wakes for Power Nap or network access.

Related guides

Sources checked November 15, 2026: Apple's Battery settings (macOS 26 and 27), Power Nap (macOS 26), sharing while asleep, If your Mac sleeps or wakes unexpectedly and Save energy on your Mac; the pmset(1) manual page on macOS 27.2. Log lines and settings shown were read on that Mac the same day. Clamshell behavior is described from its module description and published facts. Clamshell is an independent app, not affiliated with or endorsed by Apple or Anthropic.