Power

MacBook waking from sleep on its own? Here's how to find what's doing it — and stop it

Short answerWhen a Mac wakes itself from sleep, something is nudging it awake. It's almost always one of these:
  • A Bluetooth device — a mouse, trackpad, or keyboard twitching in your bag wakes the Mac.
  • Network activity — a setting called Wake for network access (and Power Nap) lets the Mac wake to check mail and updates.
  • A connected accessory — a hub, dock, or charger sending a signal on the cable.
Your Mac records why it woke each time. Read it with pmset -g log | grep -i "wake from", and the steps below turn off the usual triggers.

You close the lid, but the Mac keeps waking — the battery's half gone by the time you pull it out of your bag, or it lights up the room at 3 a.m. It's not haunted, and it's not usually a fault: something is asking it to wake, and the Mac writes down what. Find that, and you can switch it off.

Below is how to read the wake log and stop the common triggers. Do it by hand, or let Noah read the log, name what's waking your Mac, and fix the setting on your approval (more at the end).

First, read why it's waking

Your Mac logs the reason for every wake. Reading it saves you guessing. Open Terminal (press Space, type Terminal, Return) and run:

zsh — Terminal
% pmset -g log | grep -i "wake from"
Sample result
Wake from Normal Sleep [CDN] due to HID Activity
Wake from Standby due to EC.RTOB (Network)
Wake from Normal Sleep [CDN] due to HID Activity

Read the most recent lines. “HID Activity” = a Bluetooth mouse/keyboard. “Network” = the wake-for-network setting. A device name = something on the cable.

That reason word is your answer. HID Activity is a keyboard, mouse, or trackpad (usually Bluetooth). Network is the wake-for-network setting. A named device points at something plugged in. Each has a fix below.

It's waking for network access

The log says Network or the wake happens on a regular schedule, even with nothing connected.

macOS has a setting — Wake for network access — that lets the Mac wake briefly to receive email, messages, and updates, along with a feature called Power Nap that does the same while it sleeps. Handy on a desk, but it's the classic cause of a Mac waking in a bag or overnight.

Fixopen > System Settings > Battery > Options. Set Wake for network access to Never (or “Only on Power Adapter”), and turn Power Nap off. On a desktop Mac these live under System Settings > Energy Saver.

NoahNoah reads the same wake log, tells you in plain words what's waking your Mac — a Bluetooth device, the network setting, or an accessory — and flips the right setting on your approval, so you don't have to match log codes to menus.

A Bluetooth device is waking it

The log shows HID Activity, and the Mac wakes when it's jostled — in a bag or on a moving surface.

HID stands for the input devices — mouse, keyboard, trackpad. A Bluetooth one that gets bumped sends a signal and wakes the Mac. This is the top cause of a laptop waking in a bag.

Fixturn the device off when you travel, or disconnect it (System Settings > Bluetooth). If it's a mouse you keep connected, some mice have a physical power switch — use it before packing up.

Something on the cable is waking it

The log names a device, or the waking only happens when a hub, dock, or display is plugged in.

A USB hub, dock, second display, or charger can send a signal down the cable that wakes the Mac — sometimes on a loop.

Fixunplug accessories one at a time and watch whether the waking stops; the last one you removed is the trigger. A powered hub or dock is the usual suspect. If it's essential, waking only when it's connected is at least predictable.

Try Noah free

A Mac that stays asleep.

Just tell Noah what's wrong:

My Mac keeps waking itself up.
Find what's waking it freeFirst conversation free7-day free trial afterOnly with your OK

Already have Noah? Open it on this problem →

Frequently asked questions

Why does my MacBook keep waking up in my bag?

Almost always a Bluetooth mouse or keyboard getting jostled (the log calls this “HID Activity”), or the Wake for network access setting. Run pmset -g log | grep -i "wake from" to see which, then turn the Bluetooth device off when traveling and set Wake for network access to Never in System Settings > Battery > Options.

How do I see what's waking my Mac?

Open Terminal and run pmset -g log | grep -i "wake from". The most recent lines name the cause: HID Activity (a Bluetooth input device), Network (the wake-for-network setting), or a named device on the cable. Each has a specific fix.

What is “Wake for network access” and should I turn it off?

It lets your Mac wake briefly to receive mail, messages, and updates. It's convenient on a desk but a common reason a laptop wakes in a bag or overnight. Setting it to Never (or only on power) in System Settings > Battery > Options stops those wakes; you'll just get notifications when you next open the Mac.

Is my Mac waking itself a sign of a virus?

No. Self-waking is almost always a Bluetooth device, a network setting, or an accessory — not malware. Read the wake log to confirm the cause. Noah can read it for you and name the trigger.

My Mac won't sleep at all — is that the same thing?

Related but different. If it won't sleep, run pmset -g assertions to see what's holding it awake (often an app playing audio or preventing sleep). Waking after it has slept is what this guide covers — read the wake log for the trigger.

Commands in this guide are standard, read-only macOS diagnostics unless noted; anything that changes your system is called out. When in doubt, back up first with Time Machine.