Macbook Pro Insomnia
Contents
Update (01.08.2025): fixed broken link, typo, clarified problematic behaviour
For a number of years now I have a MacBook Pro Silicon M1 Max. It worked beautifully.
Then, seemingly out of nowhere, I started noticing that the battery drained over night when I left the notebook somewhere, not connected to power. This got worse and worse, up until the point that I’ve had enough of it and I started doing some research.
On MacOS, the terminal command pmset -g log shows the logs related to power management. Those are quite verbose and not so easy to read, so I wrote a little tool to analyze the logs.
This was however only marginally useful. I tried tweaking the settings a little I read about (such as tcpkeepalive, one by one, but without much effect.
More digging led me to learn about Sleep Aid which displays wake events in a nicer way and also has a neat interface to change settings.

In my case, the “Wake for maintenance” option was disabled, and Sleep Aid helpfully showed in the settings interface that this could lead to frequent wake up events. With the setting disabled, the Mac got into a kind of wake-up frenzy, instead of waking up and processing events in batch every hour. Enabling the setting again did the trick, and my MacBook Pro no longer loses all of its battery during the night when it isn’t plugged in.

Do you mean "Wake for maintenance" was enabled, and that disabling it did the trick?
No. It seems that disabling Wake for Maintenance causes many small wakes to happen, and enabling it batches those small tasks into fewer periodic wakes.
Thanks!
Dear,
Link [little_tool] is not redirecting correctly. It is seeing the link as a path.
reinstall os fix everything, so buy another M3 second hand mbp is best way
The link to the outside appears not to work correctly; for example, the URL of the "little tool" is represented as "https://manuel.bernhardt.io/posts/github.com/manuelbernhardt/pmset-analyzer".
I was told this is a known bug and if you shut off Wi-Fi before you put it to sleep, you will not drain the battery. Expect a fix.