Mac waking from sleep on its own: find the reason in the log
How to find what wakes a Mac from sleep with pmset -g log, what reasons like wifibt, USB plug or rtc mean, and how to stop each.
Why does my Mac wake from sleep by itself?
Network activity, connected accessories, scheduled wakes and notifications can all wake it, either fully or in a dark wake with the screen off.
How do I see what woke my Mac?
pmset -g log | grep -E " Wake |DarkWake" | tail -20Look at the text after due to: wifibt is Wi-Fi or Bluetooth, USB-C_plug is a device or charger, pwrbtn is the power button, rtc is a scheduled timer.
How do I stop it?
Unplug accessories before sleep, turn off Wake for network access in Battery or Energy settings, and check scheduled wakes with pmset -g sched. What is preventing sleep covers the opposite problem.
Common questions
How do I find out why my Mac woke up?
Run pmset -g log in Terminal and read the Wake and DarkWake lines.
What is DarkWake on Mac?
A wake with the screen off for background tasks such as network maintenance. Many short ones are normal.