Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Status
The first post of this thread is a WikiPost and can be edited by anyone with the appropiate permissions. Your edits will be public.

raghiid

macrumors member
Original poster
Mar 9, 2012
41
6
My M1 MBA loses about 15-20% battery during sleep, and it seems it's continuously waking up even when its lid closed, I have tried commands in Terminal to disable powernap, tcpkeepalive, ttyskeepawake also turning off bluetooth and wifi, restarting, booting into safe mode, but the issue remains unless I completely shutdown the laptop when not in use. Below are the wakeup logs:

Screenshot 2023-06-07 at 7.53.03 PM.png
 
I've seen this happen when notifications are posted and wake the machine up from sleep. Try going to System Settings > Notifications and turn off the switches which allow notifications when the display is sleeping and when the screen is locked.

- Jon
 
I've seen this happen when notifications are posted and wake the machine up from sleep. Try going to System Settings > Notifications and turn off the switches which allow notifications when the display is sleeping and when the screen is locked.

- Jon
Thank you Jon,
But as you can see all notifications are already turned off
Screenshot 2023-06-08 at 5.39.04 AM.png
 
These are the console logs, maybe thousands, across a 12-hour period when the mac was closed
Screenshot 2023-06-08 at 5.46.34 AM.png
 
My M1 MBA loses about 15-20% battery during sleep, and it seems it's continuously waking up even when its lid closed, I have tried commands in Terminal to disable powernap, tcpkeepalive, ttyskeepawake also turning off bluetooth and wifi, restarting, booting into safe mode, but the issue remains unless I completely shutdown the laptop when not in use. Below are the wakeup logs:

View attachment 2214592
1. What macOS version you’re on (it will probably get patched) 2. try restarting your Mac 3. Try some more cmds (not recommended) 4. Report it many ways you can
 
When you say loses 15-20% during sleep, how much of a time period is that? Just curious…
if it’s 8 hours or so then that seems normal for most devices, unfortunately…
Although I had thought the M1 devices were better about more like 5-10% during sleep, I don‘t have one (well ipad but it seems to hold charge very well), I don’t have the M1 Air laptop, but sadly most iphones, watches, maybe laptops seem to lose about 15-20% overnight for me.
 
1. What macOS version you’re on (it will probably get patched) 2. try restarting your Mac 3. Try some more cmds (not recommended) 4. Report it many ways you can
I'm on macos 13.4 and have done all those things
 
When you say loses 15-20% during sleep, how much of a time period is that? Just curious…
if it’s 8 hours or so then that seems normal for most devices, unfortunately…
Although I had thought the M1 devices were better about more like 5-10% during sleep, I don‘t have one (well ipad but it seems to hold charge very well), I don’t have the M1 Air laptop, but sadly most iphones, watches, maybe laptops seem to lose about 15-20% overnight for me.
I can assure you that that's not normal, given how good these batteries are, 20% gives me about 3 hours of work on it when it's awake, so it would be a very expensive sleep session.
Also, once or twice I have seen it properly sleep, where upon wake up the battery remained the same exactly as I left it the night before, maybe -1% and that's it.
 
Grab a copy of Sleep Aid from https://ohanaware.com/sleepaid/ and see if it can give you more insight into what's causing the Dark Wakes. The console logs are giving you the instigator's Mach UUID, but that's not much help in identifying which software is actually triggering the wakes (or why).
 
Grab a copy of Sleep Aid from https://ohanaware.com/sleepaid/ and see if it can give you more insight into what's causing the Dark Wakes. The console logs are giving you the instigator's Mach UUID, but that's not much help in identifying which software is actually triggering the wakes (or why).
Thank you Jon.
I've downloaded it and it is currently running and will close the laptop for the day. Will report back!
 
Grab a copy of Sleep Aid from https://ohanaware.com/sleepaid/ and see if it can give you more insight into what's causing the Dark Wakes. The console logs are giving you the instigator's Mach UUID, but that's not much help in identifying which software is actually triggering the wakes (or why).
Jon, in the past hour while the mac is closed I see multiple instances of something called mDNSResponder:maintenance.

Screenshot 2023-06-08 at 9.19.28 PM.png
 
Jon, in the past hour while the mac is closed I see multiple instances of something called mDNSResponder:maintenance.
this Is what that means according to google and several chat ais:
The "mDNSResponder:maintenance" process you mentioned is related to the Bonjour service on macOS, which handles network service discovery. It allows devices on the same network to discover and communicate with each other.

Seeing multiple instances of mDNSResponder:maintenance in Activity Monitor while your MacBook is closed could indicate that some network-related activities are triggering the waking of your MacBook from sleep. This can potentially contribute to battery drain.

To address this issue, you can try the following steps:

  1. Disable "Wake for network access": Go to "System Preferences" > "Energy Saver" and make sure the "Wake for network access" option is unchecked. This should prevent your MacBook from waking up in response to network activities.
  2. Check network-connected devices: If you have any network-connected devices, such as printers, smart home devices, or NAS drives, ensure they are properly configured and not causing excessive network activity that could be waking up your MacBook.
  3. Disable Bonjour sleep proxy: Bonjour has a feature called sleep proxy, which allows a device on the network to act as a proxy for a sleeping device, handling network requests on its behalf. However, this can lead to wake events. You can disable the sleep proxy feature by following Apple's support documentation: https://support.apple.com/en-us/HT202944
  4. Restart your network equipment: Restarting your router or modem can sometimes resolve network-related issues that may be triggering the waking of your MacBook.
If the issue persists after trying these steps, it's recommended to contact Apple Support or visit an Apple Store for further assistance. They can provide more specific guidance and investigate any underlying hardware or software issues that might be causing the excessive waking and battery drain.
 
this Is what that means according to google and several chat ais:
The "mDNSResponder:maintenance" process you mentioned is related to the Bonjour service on macOS, which handles network service discovery. It allows devices on the same network to discover and communicate with each other.

Seeing multiple instances of mDNSResponder:maintenance in Activity Monitor while your MacBook is closed could indicate that some network-related activities are triggering the waking of your MacBook from sleep. This can potentially contribute to battery drain.

To address this issue, you can try the following steps:

  1. Disable "Wake for network access": Go to "System Preferences" > "Energy Saver" and make sure the "Wake for network access" option is unchecked. This should prevent your MacBook from waking up in response to network activities.
  2. Check network-connected devices: If you have any network-connected devices, such as printers, smart home devices, or NAS drives, ensure they are properly configured and not causing excessive network activity that could be waking up your MacBook.
  3. Disable Bonjour sleep proxy: Bonjour has a feature called sleep proxy, which allows a device on the network to act as a proxy for a sleeping device, handling network requests on its behalf. However, this can lead to wake events. You can disable the sleep proxy feature by following Apple's support documentation: https://support.apple.com/en-us/HT202944
  4. Restart your network equipment: Restarting your router or modem can sometimes resolve network-related issues that may be triggering the waking of your MacBook.
If the issue persists after trying these steps, it's recommended to contact Apple Support or visit an Apple Store for further assistance. They can provide more specific guidance and investigate any underlying hardware or software issues that might be causing the excessive waking and battery drain.
1. Already disabled (Although the setting is inside the Battery>options preference page)
2. I have no such devices, within my family we have two old macs and this M1 Air, and four phones.
3. From this link, I couldn't figure out
4. Restarted some time ago, wasn't the issue.

I have contacted support and the called back, they suggested I do a hardware diagnostics test (all was good), they suggested a macos reinstall, but I have yet to do it due to work. (But from what I've read on reddit it's useless).
 
Jon, in the past hour while the mac is closed I see multiple instances of something called mDNSResponder:maintenance.

View attachment 2215247
Try turning off Power Nap and tcpkeepalive. Do that by entering these commands in Terminal:

sudo pmset -b powernap 0
sudo pmset -b tcpkeepalive 0

You'll need to enter your admin password when executing the first command. Note that the '-b' argument makes the setting only apply when the machine is running on battery, and that turning off tcpkeepalive will keep FindMyMac from working while the machine is asleep.

To turn the settings back on again, just replace the '0' at the end of each command with a '1'.

- Jon
 
  • Like
Reactions: Blaine
Not sure if you've looked at this already, but I had Microsoft Auto Updater running at startup, and as soon as I disabled it, the battery decline while in sleep mode stopped
 
The steps I've taken so far are:

1. In terminal:

sudo pmset -a tcpkeepalive 0 ttyskeepawake 0 powernap 0 womp 0 networkoversleep 0

sudo pmset schedule cancelall

sudo chflags schg /Library/Preferences/SystemConfiguration/com.apple.AutoWake.plist

2. Install FluTooth, an app that turns off bluetooth when the mac sleeps (I instructed it to turn wifi off as well)

And it has seemed to fix the issue thus far. In the screenshot below, notice the last two entries, from 6:50pm yesterday until 5:45am today the mac slept peacefully while retaining the same 52% battery. Hope this is permanent and not a fluke.
Screenshot 2023-06-22 at 6.00.56 AM.png
 
Try turning off Power Nap and tcpkeepalive. Do that by entering these commands in Terminal:

sudo pmset -b powernap 0
sudo pmset -b tcpkeepalive 0

You'll need to enter your admin password when executing the first command. Note that the '-b' argument makes the setting only apply when the machine is running on battery, and that turning off tcpkeepalive will keep FindMyMac from working while the machine is asleep.

To turn the settings back on again, just replace the '0' at the end of each command with a '1'.

- Jon
These two settings were already off when the issue was occurring. My guess wifi and bluetooth need to turned off as well during sleep for it to work.
 
Not sure if you've looked at this already, but I had Microsoft Auto Updater running at startup, and as soon as I disabled it, the battery decline while in sleep mode stopped
This was already turned off for me
 
Did you ever figure it out ? I started losing about 1-1.5% per hour during sleep on my M2 MBA, all settings are what is recommended here.
Do not keep any thumb drives or external storage connected. Many will cause significant drain on the battery, especially Sandisk 1 TB external SSDs, which I have.
 
  • Like
Reactions: SnowCrocodile
I think I tracked it down to MS Office Updater.
Interesting. I don't think I have it installed. Here is today's sleep report, notice the last two lines. I closed the lid on 10pm last night, and opened it on 630am today and it didn't wake up once during sleep.
Screenshot 2023-11-04 at 6.30.26 AM.png
 
Can you guys provide the commands to get the sleep and wake log data? New MacBook Air owner here.

Thanks!
R
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.