What the message means
Run pmset -g in Terminal and look at the sleep line. If something is holding the Mac awake, macOS adds a note in brackets, for example sleep 10 (sleep prevented by powerd, sharingd, coreaudiod).
The number is your system sleep timer in minutes. The names are processes that currently hold a power assertion, a request to macOS that says "don't idle-sleep yet." The pmset manual puts it this way: whenever processes override the system power settings, pmset lists those processes and their assertions. Your timer is still set. It just can't fire while an assertion is held.
Why powerd is on the list
powerd is the macOS power management daemon. It is the process that decides when your Mac sleeps, so seeing it in the list looks strange at first.
The usual reason is harmless. On a Mac checked for this guide, powerd held an assertion named Powerd - Prevent sleep while display is on. While the screen is on, macOS doesn't let the system fall asleep under it. Once the display turns off on its normal timer, that assertion stops counting and the system sleep timer takes over. So "sleep prevented by powerd" on its own, with the screen on, is normal.
powerd can also hold assertions on behalf of something else, such as an external drive being mounted. The detailed list below shows what each one is for.
sharingd, coreaudiod and the other names
- sharingd runs Handoff, AirDrop and the sharing services. On the test Mac it held an assertion named "Handoff." If your Mac never sleeps, check the services you have turned on in System Settings > General > Sharing.
- coreaudiod is the audio system. It holds the Mac awake while sound is playing through an output, including a browser tab or a call app that keeps an audio stream open while silent.
- caffeinate is the command-line tool other apps and scripts use to ask for awake time. If it shows up, something you launched asked for it.
- Build tools and installers such as xcodebuild or Software Update hold assertions while they work, then release them.
How to see exactly what is keeping your Mac awake
- Open Terminal.
- Run
pmset -g assertions. The bottom half, "Listed by owning process," shows each process, its assertion type and a name that says why. - Look for
PreventUserIdleSystemSleep(blocks system sleep) andPreventUserIdleDisplaySleep(keeps the screen on). - Quit the app named there, stop the sharing service, or pause the audio, then run the command again.
Activity Monitor shows the same thing without Terminal: open the Energy tab and check the Preventing Sleep column.
The opposite problem: you want it awake
Most people who search this message want their Mac to sleep. If you landed here because your Mac sleeps when you don't want it to, the same idea works in your favor: something has to tell macOS you're still there.
Shake It On does that with small cursor movements, so macOS, chat apps and remote desktop tools all see activity. It only runs when your rules say so: while plugged in, while a chosen app is running, during your work hours. It pauses for the camera, Focus and a locked screen, and your Mac sleeps normally the rest of the time.