Every time your Mac wakes from sleep powerd
creates an InternalPreventSleep
assertion labeled com.apple.powermanagement.acwakelinger
with a 45 second timeout. That assertion ensures that even if your Mac needs to wake for 2 seconds to recieve a push notification that it stays on for 45 seconds.
Seemingly there's no way to control this. And recent versions of macOS love to wake quite frequently.
Forunately we can disable this. The built in pmset
tool has many undocumented features but thankfully it's open source
Cruicially there's an undocumented pmset disabledassertion
feature that just makes macOS ignore certain power assertions. To effectively disable acwakelinger
we just run this:
$ sudo pmset disableassertion InternalPreventSleep