First, read who is asking
The command prints the Mac's sleep state and, under it, the assertions other software currently holds, each with the holding program's name. PreventUserIdleSystemSleep is the one that keeps a Mac awake past its idle timer while still letting the screen sleep.
% pmset -g assertionsRun in Terminal. Read the list under the assertion names for the programs holding them. A holder with a job you recognise — a backup mid-run, a download — is a reason. A holder you don't recognise, or one still there hours later, is the suspect.
NoahNoah cannot see the assertions list, so that command stays yours to run. It can read recent power logs, which can show wakes at the times you noticed — the holder's name still comes from your run of the list above.
A holder with a job you recognise
The list names your backup, a cloud sync mid-upload, a browser downloading, or a call app — and the Mac sleeps normally once those finish.
Then the assertion is the feature working: the Mac stayed awake to finish exactly what you would have wanted finished. The fault, if any, is only that the job runs at hours you expected sleep — a scheduling taste, not a defect.
Fixlet the named job finish and test sleep straight after. Sleeping then closes the case. If the job's schedule is the problem, change that app's schedule in its own settings. A backup at midnight on a laptop you close at ten is the shape of it. Don't fight the assertion it legitimately holds.
A holder that never releases
One name holds its assertion for hours, across the work it claimed to be doing, or reappears the moment you quit it.
That holder is stuck or misbehaving: an app holding a finished download open, a sync retried forever, or a helper relaunched by its own launcher each time it exits. Quitting settles which of those it is, because a stuck holder stays gone and a relaunched one returns with its owner.
Fixquit the named app fully, then choose Sleep from the Apple menu and watch whether the Mac sleeps and stays asleep. If it does, update that app from its maker before trusting it overnight again. If the holder returns without you opening the app, note its maker in System Settings → General → Login Items. Its background helper is the relaunch path. The app's update or removal is the repair.
No holder explains it
The assertion list is short or empty of suspects, yet the Mac still will not sleep, often waking soon after it does.
What remains is outside the list: a USB device or dock waking it, network wakes for sharing services, or a wake schedule. Those act at the moment of waking rather than holding it awake, so they are tested by subtraction at the moment of sleep.
Fixdisconnect USB devices and docks, then choose Sleep and leave it. Sleeping bare convicts the disconnected set; reconnect one piece at a time across separate sleeps. If it still wakes bare, change one wake cause at a time. For Bluetooth, turn the suspect device off or disconnect it; current macOS has no Bluetooth wake switch to turn. For network waking, open System Settings → Battery → Options on a laptop, or Energy on a desktop, and turn off Wake for network access. Test sleep between each change.
What to avoid
- Resetting all power or energy settings first. The assertion list names the holder in one command. A wholesale reset changes your sleep timers to test what the list already told you.
- Deleting sleepimage or power-related files from forum posts. Those files are products of sleeping, not causes of staying awake. The cause has a name in the assertion list.
- Killing processes from the assertion list by number. Quit the app by name so its owner can restart it cleanly or stay closed by your choice. A killed helper relaunched by its launcher teaches you nothing about which of those it is.
- Accepting a warm overnight Mac as a personality trait. A holder that never releases is a named app with a fix or an update. The list makes it findable; leave no unnamed drain running.