Macbook 12 battery drain in sleep

Hi,


I purchased a new Macbook 12 with Yosemite. I immediately updated it to El Capitan 10.11.0 from App Store.


Then I noticed that my Macbook loses about 6-9% every 6-8 hours in sleep mode!


The recent update to 10.11.1 didn't help. I installed only Chrome and Thunderbird. Blutooth is turned off. Power Nap is turned off, No USB devices, no mouse.

Wi-fi is turned on. FileVault 2 is used with password.


Activity Monitor doesn't show any problems with energy for any applications.


pmset -g shows the following configuration:


standbydelay 10800

standby 1

womp 0

halfdim 1

hibernatefile /var/vm/sleepimage

powernap 0

gpuswitch 2

networkoversleep 0

disksleep 10

sleep 1 (sleep prevented by AddressBookSourceSync)

autopoweroffdelay 14400

hibernatemode 3

autopoweroff 1

ttyskeepawake 1

displaysleep 10

acwake 0

lidwake 1


However pmset -g log shows a problem. For some reason my Macbook wakes up every 1-2 hour:

Created MaintenanceWake "mDNSResponder:maintenance"

Any help please?


More details:

___________________


2015-10-23 14:18:03 +0300 Notification Display is turned on
2015-10-23 14:18:03 +0300 Wake Wake [CDNVA] due to EC.LidOpen/Lid Open: Using BATT (Charge:15%) 47 secs
2015-10-23 14:18:03 +0300 Kernel Client AcksDelays to Wake notifications: [AppleIntelFramebuffer driver is slow(msg: SetState to 2)(457 ms)] [AppleHDADriver driver is slow(msg: SetState to 1)(431 ms)]
2015-10-23 14:18:05 +0300 Assertions PID 87(mDNSResponder) Released MaintenanceWake "mDNSResponder:maintenance" 00:00:02 id:0x0xd000003fd [System: DeclUser IPushSrvc kCPU kDisp]

Sleep/Wakes since boot at 2015-10-23 10:16:13 +0300 :11 Dark Wake Count in this sleep cycle:0



Time stamp Domain Message DurationDelay
========== ====== ======= =============

UUID: xxxxxxxxxx

2015-10-23 14:18:35 +0300 Notification Display is turned off
2015-10-23 14:18:35 +0300 Assertions PID 94(hidd) Summary UserIsActive "com.apple.iohideventsystem.queue.tickle" 02:38:10 id:0x0x900000353 [System: DeclUser kDisp]
2015-10-23 14:18:35 +0300 Assertions Kernel Idle sleep preventers: -None-
2015-10-23 14:18:35 +0300 Assertions PID 51(powerd) Created InternalPreventSleep "com.apple.powermanagement.darkwakelinger" 00:00:00 id:0x0xd00000441 [System: DeclUser SRPrevSleep kCPU kDisp]
2015-10-23 14:18:50 +0300 Assertions PID 51(powerd) TimedOut InternalPreventSleep "com.apple.powermanagement.darkwakelinger" 00:00:15 id:0x0xd00000441 [System: DeclUser SRPrevSleep kCPU kDisp]
2015-10-23 14:18:50 +0300 Sleep Entering Sleep state due to 'Clamshell Sleep':TCPKeepAlive=active Using Batt (Charge:15%) 7201 secs
2015-10-23 14:18:53 +0300 Wake Requests [*proc=mDNSResponder request=Maintenance inDelta=7197] [proc=powerd request=TCPKATurnOff inDelta=43242]
2015-10-23 14:18:53 +0300 PM Client Acks Delays to Sleep notifications: [com.apple.apsd is slow(2909 ms)]
2015-10-23 16:18:51 +0300 Kernel Client AcksDelays to Sleep notifications: [RP03 driver is slow(msg: SetState to 0)(1007 ms)]
2015-10-23 16:18:51 +0300 Assertions PID 87(mDNSResponder) Created MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd00000454 [System: DeclUser kDisp]
2015-10-23 16:18:51 +0300 DarkWake DarkWake [CDN] due to RTC/Maintenance: Using BATT (Charge:13%) 5 secs
2015-10-23 16:18:51 +0300 Kernel Client AcksDelays to Wake notifications: [AirPort_Brcm4360 driver is slow(msg: SetState to 2)(311 ms)]
2015-10-23 16:18:51 +0300 Assertions PID 87(mDNSResponder) Released MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd00000454 [System: DeclUser kDisp]
2015-10-23 16:18:56 +0300 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using Batt (Charge:13%) 3599 secs
2015-10-23 16:18:58 +0300 Wake Requests [*proc=mDNSResponder request=Maintenance inDelta=7198] [proc=powerd request=TCPKATurnOff inDelta=36037]
2015-10-23 16:18:58 +0300 PM Client Acks Delays to Sleep notifications: [com.apple.apsd is slow(1900 ms)]
2015-10-23 17:18:55 +0300 Kernel Client AcksDelays to Sleep notifications: [RP03 driver is slow(msg: SetState to 0)(1009 ms)]
2015-10-23 17:18:55 +0300 Assertions PID 87(mDNSResponder) Created MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd0000045e [System: DeclUser kDisp]
2015-10-23 17:18:55 +0300 DarkWake DarkWake [CDN] due to EC.SleepTimer/SleepTimer: Using BATT (Charge:13%) 3 secs
2015-10-23 17:18:56 +0300 Assertions PID 87(mDNSResponder) Released MaintenanceWake "mDNSResponder:maintenance" 00:00:01 id:0x0xd0000045e [System: DeclUser IPushSrvc kCPU kDisp]
2015-10-23 17:18:56 +0300 Assertions PID 51(powerd) TimedOut BackgroundTask "Powerd - Wait for client BackgroundTask assertions" 01:00:05 id:0x0xb00000455 [System: DeclUser IPushSrvc kCPU kDisp]
2015-10-23 17:18:56 +0300 Summary- [System: DeclUser IPushSrvc kCPU kDisp] Using Batt(Charge: 13)
2015-10-23 17:18:58 +0300 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using Batt (Charge:13%) 7219 secs
2015-10-23 17:19:00 +0300 Wake Requests [*proc=mDNSResponder request=Maintenance inDelta=7199] [proc=powerd request=TCPKATurnOff inDelta=32436]
2015-10-23 17:19:00 +0300 PM Client Acks Delays to Sleep notifications: [com.apple.apsd is slow(1431 ms)]
2015-10-23 19:19:12 +0300 Assertions PID 87(mDNSResponder) Created MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd00000467 [System: DeclUser kDisp]
2015-10-23 19:19:12 +0300 Assertions PID 87(mDNSResponder) Released MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd00000467 [System: DeclUser kDisp]
2015-10-23 19:19:17 +0300 DarkWake DarkWake from Standby [CDN] due to RTC/Maintenance: Using BATT (Charge:10%) 0 secs
2015-10-23 19:19:17 +0300 HibernateStats hibmode=3 standbydelay=10800 rd=386 ms
2015-10-23 19:19:17 +0300 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using Batt (Charge:10%)
2015-10-23 19:19:21 +0300 Wake Requests [*proc=mDNSResponder request=Maintenance inDelta=7196] [proc=powerd request=TCPKATurnOff inDelta=25215]
2015-10-23 19:19:21 +0300 PM Client Acks Delays to Sleep notifications: [com.apple.apsd is slow(3694 ms)]
2015-10-23 20:27:33 +0300 Kernel Client AcksDelays to Sleep notifications: [powerd is slow(3697 ms)]
2015-10-23 20:27:33 +0300 Assertions Kernel Idle sleep preventers: IODisplayWrangler
2015-10-23 20:27:33 +0300 Notification Display is turned on
2015-10-23 20:27:33 +0300 Assertions PID 87(mDNSResponder) Created MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd00000471 [System: DeclUser kDisp]
2015-10-23 20:27:33 +0300 Assertions PID 87(mDNSResponder) Released MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd00000471 [System: DeclUser kDisp]
2015-10-23 20:27:36 +0300 Summary- [System: PrevIdle

MacBook, OS X El Capitan (10.11.1), Macbook 12

Posted on Oct 23, 2015 2:44 PM

Reply
145 replies

Oct 20, 2016 6:34 PM in response to Seny

Interesting. What problem exactly did you see on the MacBook Pro? Was it waking up EXACTLY every 2 hours, on battery, even without power nap turned on? Do you know what the side effects are of turning off Multicast? That preference file doesn't seem to exist in that location on my Sierra system...


My theory about tcpkeepalive is that it's setting its own timer to wake the system up to do something like refresh the iCloud session.


Love to compare notes...

Oct 21, 2016 2:10 PM in response to Stephen Dawson1

I respect your scrupulous approach to the problem, Stephen.🙂 Yes, my rMBP 13 was waking up EXACTLY every 2 hours on battery with NO power nap enabled. As to all the other questions, please refer to http://multicastdns.org/ and follow further links. As for me, I don't use Bonjour, so there are no adverse effects of turning off multicast advertisements.


In order to refer to the mDNSResponder manual page directly, enter in the Terminal:


man mDNSResponder


If you don't have man pages installed, you might need to install command line tools first. I don't see a problem here for the man who is ready to go the whole way. Am I right? 😉


Here is an excerpt from it to cut some corners for you though:


OPTIONAL ARGUMENTS

mDNSResponder accepts the following optional arguments:



-AlwaysAppendSearchDomains

Append search domains for multi-labeled Partially Qualified Domain Name as well as single-labeled Par-

tially Qualified Domain Name. This argument is not recommended because of the extra DNS traffic it gener-

ates and its adverse effect on battery life.



-NoMulticastAdvertisements

Prevent the system from advertising Bonjour services via Multicast DNS.



To cause mDNSResponder to run with these optional arguments when it launches on OS X 10.11 (El Capitan) and later, set the

AlwaysAppendSearchDomains or NoMulticastAdvertisements boolean keys to true in /Library/Preferences/com.apple.mDNSResponder.plist and

reboot.

Oct 24, 2016 1:19 AM in response to Seny

Well, I've given this a try.


Firstly, disabling multicast advertisements means my MacBook doesn't show up under Shared in Finder on other Macs on the network, which is inconvenient. Must say, this surprised me a bit.


Secondly, disabling multicast advertisements stopped the Mac waking up every two hours - it now wakes up sometimes every few minutes! I have tested this a number of times. Enabling advertisements, the Mac wakes up every 2 hours with a wake reason of RTC/Maintenance. Disabling them, it wakes up very frequently with a wake reason of ARPT/Network. When it's waking up every 2 hours, I have seen the odd ARPT/Network wakeup in between, but nothing like as often as when advertisements are disabled. Here's a little of a pmset -g log with a few dark wakes. I just don't understand why a laptop on battery even keeps the wifi active so it can be woken up, let alone it actually waking up so often:


2016-10-24 14:33:05 +1100 Sleep Entering Sleep state due to 'Clamshell Sleep':TCPKeepAlive=active Using Batt (Charge:29%) 138 secs
2016-10-24 14:33:08 +1100 Wake Requests [*proc=powerd request=TCPKATurnOff inDelta=43242]
2016-10-24 14:33:08 +1100 PM Client Acks Delays to Sleep notifications: [com.apple.apsd is slow(3072 ms)]
2016-10-24 14:35:22 +1100 Kernel Client Acks Delays to Sleep notifications: [AppleBacklightDisplay driver is slow(msg: SetState to 0)(983 ms)] [powerd is slow(3079 ms)] [RP09 driver is slow(msg: SetState to 0)(1128 ms)]
2016-10-24 14:35:22 +1100 Assertions PID 155(mDNSResponder) Created MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd00008154 [System: PrevIdle DeclUser kDisp]
2016-10-24 14:35:22 +1100 Assertions PID 359(AddressBookSourceSync) Released PreventUserIdleSystemSleep "Address Book Source Sync" 00:03:36 id:0x0x100008031 [System: DeclUser kDisp]
2016-10-24 14:35:22 +1100 Assertions PID 269(UserEventAgent) Released BackgroundTask "com.apple.AddressBook.ScheduledSync" 00:03:12 id:0x0xb000080ce [System: DeclUser kDisp]
2016-10-24 14:35:22 +1100 Assertions PID 155(mDNSResponder) Released MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd00008154 [System: DeclUser kDisp]
2016-10-24 14:35:22 +1100 ThermalEvent Thermal State is 0
2016-10-24 14:35:23 +1100 Assertions PID 66(powerd) Created InternalPreventSleep "Network wake delay proxy assertion" 00:00:00 id:0x0xd0000815e [System: DeclUser kDisp]
2016-10-24 14:35:23 +1100 DarkWake DarkWake from Deep Idle [CDN] due to ARPT/Network: Using BATT (Charge:30%) 30 secs
2016-10-24 14:35:23 +1100 HibernateStats hibmode=3 standbydelay=10800 50
2016-10-24 14:35:23 +1100 Kernel Client Acks Delays to Wake notifications: [IOBluetoothHostControllerUARTTransport driver is slow(msg: SetState to 1)(1139 ms)]
2016-10-24 14:35:53 +1100 Assertions PID 66(powerd) TimedOut InternalPreventSleep "Network wake delay proxy assertion" 00:00:29 id:0x0xd0000815e [System: DeclUser SRPrevSleep kCPU kDisp]
2016-10-24 14:35:53 +1100 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using Batt (Charge:30%) 594 secs
2016-10-24 14:35:55 +1100 Wake Requests [*proc=powerd request=TCPKATurnOff inDelta=43075]
2016-10-24 14:35:55 +1100 PM Client Acks Delays to Sleep notifications: [com.apple.apsd is slow(1921 ms)]
2016-10-24 14:45:46 +1100 Kernel Client Acks Delays to Sleep notifications: [RP09 driver is slow(msg: SetState to 0)(1125 ms)]
2016-10-24 14:45:46 +1100 Assertions PID 155(mDNSResponder) Created MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd00008172 [System: DeclUser kDisp]
2016-10-24 14:45:46 +1100 Assertions PID 155(mDNSResponder) Released MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd00008172 [System: DeclUser kDisp]
2016-10-24 14:45:47 +1100 Assertions PID 66(powerd) Created InternalPreventSleep "Network wake delay proxy assertion" 00:00:00 id:0x0xd00008174 [System: DeclUser kDisp]
2016-10-24 14:45:47 +1100 DarkWake DarkWake from Deep Idle [CDN] due to ARPT/Network: Using BATT (Charge:29%) 30 secs
2016-10-24 14:45:47 +1100 HibernateStats hibmode=3 standbydelay=10800 51
2016-10-24 14:45:47 +1100 Kernel Client Acks Delays to Wake notifications: [IOBluetoothHostControllerUARTTransport driver is slow(msg: SetState to 1)(1140 ms)]
2016-10-24 14:46:17 +1100 Assertions PID 66(powerd) TimedOut InternalPreventSleep "Network wake delay proxy assertion" 00:00:29 id:0x0xd00008174 [System: DeclUser SRPrevSleep kCPU kDisp]
2016-10-24 14:46:17 +1100 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using Batt (Charge:29%) 3573 secs
2016-10-24 14:46:19 +1100 Wake Requests [*proc=powerd request=TCPKATurnOff inDelta=42451]
2016-10-24 14:46:19 +1100 PM Client Acks Delays to Sleep notifications: [com.apple.apsd is slow(1806 ms)]
2016-10-24 15:45:49 +1100 Kernel Client Acks Delays to Sleep notifications: [RP09 driver is slow(msg: SetState to 0)(1124 ms)]
2016-10-24 15:45:49 +1100 Assertions PID 155(mDNSResponder) Created MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd00008192 [System: DeclUser kDisp]
2016-10-24 15:45:49 +1100 Assertions PID 155(mDNSResponder) Released MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd00008192 [System: DeclUser kDisp]
2016-10-24 15:45:50 +1100 Assertions PID 66(powerd) Created InternalPreventSleep "Network wake delay proxy assertion" 00:00:00 id:0x0xd00008194 [System: DeclUser kDisp]
2016-10-24 15:45:50 +1100 DarkWake DarkWake from Deep Idle [CDN] due to ARPT/Network: Using BATT (Charge:29%) 30 secs
2016-10-24 15:45:50 +1100 HibernateStats hibmode=3 standbydelay=10800 52
2016-10-24 15:45:50 +1100 Kernel Client Acks Delays to Wake notifications: [IOBluetoothHostControllerUARTTransport driver is slow(msg: SetState to 1)(1140 ms)]
2016-10-24 15:46:20 +1100 Assertions PID 66(powerd) TimedOut InternalPreventSleep "Network wake delay proxy assertion" 00:00:30 id:0x0xd00008194 [System: DeclUser SRPrevSleep kCPU kDisp]
2016-10-24 15:46:20 +1100 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using Batt (Charge:29%) 3577 secs
2016-10-24 15:46:21 +1100 Wake Requests [*proc=powerd request=TCPKATurnOff inDelta=38849]
2016-10-24 15:46:21 +1100 PM Client Acks Delays to Sleep notifications: [com.apple.apsd is slow(1044 ms)]

Oct 24, 2016 8:43 AM in response to Stephen Dawson1

I must admit, I see a completely different picture. I can't check network sharing on another Mac right now, but I will check back on that a little bit later.


Out of personal curiosity, Stephen, I assume you don't have "wake for Wi-Fi network access" enabled, do you? And you also have the latest macOS Sierra (10.12) installed on a clean drive (not an update of a previous system), right? And the main question is what wi-fi access point you have. This is to see if we have equal or similar testing environments.


This all might be also interesting to know because I am in the process of setting up macOS 10.12 on my rMBP 15", and I'm going to compare how these two machines behave with and without this "fix" to mDNSResponder. I have an AirPort Express (gen.2) as a Wi-Fi AP now which can act as a sleep proxy whereas when I observed 2 hour wake-ups I was on a non-Apple Wi-Fi AP. So that's another thing I want to address in my comparison. Will get back to you when I have some results.

Oct 24, 2016 8:58 AM in response to Stephen Dawson1

I just checked my pmset -g log, and I must say my picture has changed too.😟 Now I see my rMBP 13 waking up every HOUR (you probably will see the same if you look at what your Mac does at night) due to the same ARPT/Network reason. But the funny thing is that the hour interval is sporadic. Here is some logging output from the middle of the night. As you can see at the end, there is a delay when the Mac slept last (04:44) and when I woke him up (08:23).


Definitely unsatisfactory. I will roll back the setting now and see what changes.


2016-10-24 03:18:51 -0700 Kernel Client Acks Delays to Sleep notifications: [AppleThunderboltNHIType2 driver is slow(msg: WillChangeState to 2)(363 ms)]
2016-10-24 03:18:51 -0700 Assertions PID 139(mDNSResponder) Created MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd00008f1a [System: PrevIdle]
2016-10-24 03:18:51 -0700 Assertions PID 139(mDNSResponder) Released MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd00008f1a [System: PrevIdle]
2016-10-24 03:19:16 -0700 Assertions PID 47(powerd) Created InternalPreventSleep "Network wake delay proxy assertion" 00:00:00 id:0x0xd00008f2b [System: PrevIdle]
2016-10-24 03:19:16 -0700 DarkWake DarkWake from Standby [CDN] due to ARPT/Network: Using BATT (Charge:20%) 31 secs
2016-10-24 03:19:16 -0700 HibernateStats hibmode=3 standbydelay=10800 rd=322 ms
2016-10-24 03:19:16 -0700 Kernel Client Acks Delays to Wake notifications: [AirPort_Brcm4360 driver is slow(msg: SetState to 2)(365 ms)] [SSP3 driver is slow(msg: SetState to 3)(402 ms)] [SSP3 driver is slow(msg: DidChangeState to 3)(380 ms)] [com_apple_driver_AppleUSBCardReaderDriverNub driver is slow(msg: SetState to 2)(536 ms)]
2016-10-24 03:19:47 -0700 Assertions PID 47(powerd) TimedOut InternalPreventSleep "Network wake delay proxy assertion" 00:00:30 id:0x0xd00008f2b [System: PrevIdle SRPrevSleep kCPU]
2016-10-24 03:19:47 -0700 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using Batt (Charge:20%) 3574 secs
2016-10-24 03:19:49 -0700 Wake Requests [*proc=powerd request=TCPKATurnOff inDelta=5057]
2016-10-24 03:19:49 -0700 PM Client Acks Delays to Sleep notifications: [com.apple.apsd is slow(1978 ms)]
2016-10-24 04:18:56 -0700 Kernel Client Acks Delays to Sleep notifications: [AppleThunderboltNHIType2 driver is slow(msg: WillChangeState to 2)(363 ms)]
2016-10-24 04:18:56 -0700 Assertions PID 139(mDNSResponder) Created MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd00008f33 [System: PrevIdle]
2016-10-24 04:18:56 -0700 Assertions PID 139(mDNSResponder) Released MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd00008f33 [System: PrevIdle]
2016-10-24 04:19:21 -0700 Assertions PID 47(powerd) Created InternalPreventSleep "Network wake delay proxy assertion" 00:00:00 id:0x0xd00008f47 [System: PrevIdle]
2016-10-24 04:19:21 -0700 DarkWake DarkWake from Standby [CDN] due to ARPT/Network: Using BATT (Charge:20%) 31 secs
2016-10-24 04:19:21 -0700 HibernateStats hibmode=3 standbydelay=10800 rd=324 ms
2016-10-24 04:19:21 -0700 Kernel Client Acks Delays to Wake notifications: [AirPort_Brcm4360 driver is slow(msg: SetState to 2)(396 ms)] [SSP3 driver is slow(msg: SetState to 3)(403 ms)] [SSP3 driver is slow(msg: DidChangeState to 3)(382 ms)] [com_apple_driver_AppleUSBCardReaderDriverNub driver is slow(msg: SetState to 2)(547 ms)]
2016-10-24 04:19:52 -0700 Assertions PID 47(powerd) TimedOut InternalPreventSleep "Network wake delay proxy assertion" 00:00:30 id:0x0xd00008f47 [System: PrevIdle SRPrevSleep kCPU]
2016-10-24 04:19:52 -0700 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using Batt (Charge:20%) 1481 secs
2016-10-24 04:19:54 -0700 Wake Requests [*proc=powerd request=TCPKATurnOff inDelta=1452]
2016-10-24 04:19:54 -0700 PM Client Acks Delays to Sleep notifications: [com.apple.apsd is slow(1994 ms)]
2016-10-24 04:44:08 -0700 Kernel Client Acks Delays to Sleep notifications: [AppleThunderboltNHIType2 driver is slow(msg: WillChangeState to 2)(362 ms)]
2016-10-24 04:44:08 -0700 Assertions PID 139(mDNSResponder) Created MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd00008f4f [System: PrevIdle]
2016-10-24 04:44:08 -0700 Assertions PID 139(mDNSResponder) Released MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd00008f4f [System: PrevIdle]
2016-10-24 04:44:33 -0700 DarkWake DarkWake from Standby [CDN] due to RTC/Maintenance: Using BATT (Charge:19%) 0 secs
2016-10-24 04:44:33 -0700 HibernateStats hibmode=3 standbydelay=10800 rd=318 ms
2016-10-24 04:44:33 -0700 Kernel Client Acks Delays to Wake notifications: [AirPort_Brcm4360 driver is slow(msg: SetState to 2)(397 ms)] [SSP3 driver is slow(msg: SetState to 3)(403 ms)] [SSP3 driver is slow(msg: DidChangeState to 3)(382 ms)] [com_apple_driver_AppleUSBCardReaderDriverNub driver is slow(msg: SetState to 2)(629 ms)]
2016-10-24 04:44:33 -0700 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=inactive Using Batt (Charge:19%) 13153 secs
2016-10-24 04:44:37 -0700 PM Client Acks Delays to Sleep notifications: [com.apple.apsd is slow(3974 ms)]
2016-10-24 08:23:20 -0700 Kernel Client Acks Delays to Sleep notifications: [powerd is slow(3976 ms)] [AppleThunderboltNHIType2 driver is slow(msg: WillChangeState to 2)(360 ms)] [RP03 driver is slow(msg: SetState to 0)(1114 ms)]
2016-10-24 08:23:20 -0700 Assertions Kernel Idle sleep preventers: IODisplayWrangler
2016-10-24 08:23:20 -0700 Notification Display is turned on
2016-10-24 08:23:20 -0700 Assertions PID 139(mDNSResponder) Created MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd00008f5a [System: PrevIdle]
2016-10-24 08:23:20 -0700 Assertions PID 139(mDNSResponder) Released MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd00008f5a [System:

Oct 24, 2016 1:38 PM in response to Seny

Very frustrating! Yes, I almost see an hourly pattern, with lots of "noise" wakes in between. Your 4.44 wakeup is for RTC/Maintenance, which is what the other 2-hourly wakeups are for.


I'm on latest Sierra. I find the Sierra console log useless. Its verbose, you can't seem to go back in time, and has completely different information in it. You can't see what it's up to when it wakes up at all. "Wake for wifi access" isn't an option when you're on battery. The 2-hourly wakeups (with advertising enabled) happen on a completely fresh install, but only once you've signed into iCloud. When it wakes up, I can tell (on El Capitan), that the only thing it does is take up the keepalive session with the Apple Push Services Notification service.


I have all Airport Express/AirPort Extreme access points.


I have this (and the probably MacBook-specific kernel panics while asleep) raised with Apple support. I've sent them heaps of logs. Hopefully something will come of it...


Let me know how you go!

Oct 27, 2016 1:01 PM in response to Stephen Dawson1

I know that there is no "wake on wi-fi" on battery. I asked that just to make sure we have similar settings.


My progress so far is almost zero.😢 I installed a fresh copy of Sierra on my rMBP 15" (mid 2014) with the same software and settings as on the previously mentioned rMPB 13" (early 2015).


Both computers sleep on AC. pmset -g log | grep "due"


A typical night of the rMBP 13":


2016-10-24 19:19:12 -0700 Sleep Entering Sleep state due to 'Clamshell Sleep':TCPKeepAlive=active Using AC (Charge:100%) 7200 secs

2016-10-24 21:19:12 -0700 DarkWake DarkWake from Deep Idle [CDN] due to RTC/Maintenance: Using AC (Charge:100%) 45 secs

2016-10-24 21:19:57 -0700 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using AC (Charge:100%) 1734 secs

2016-10-24 21:48:51 -0700 DarkWake DarkWake from Deep Idle [CDN] due to ARPT/Network: Using AC (Charge:100%) 45 secs

2016-10-24 21:49:36 -0700 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using AC (Charge:100%) 7200 secs

2016-10-24 23:49:36 -0700 DarkWake DarkWake from Deep Idle [CDN] due to RTC/Maintenance: Using AC (Charge:100%) 45 secs

2016-10-24 23:50:21 -0700 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using AC (Charge:100%) 7200 secs

2016-10-25 01:50:21 -0700 DarkWake DarkWake from Deep Idle [CDN] due to RTC/Maintenance: Using AC (Charge:100%) 45 secs

2016-10-25 01:51:06 -0700 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using AC (Charge:100%) 7200 secs

2016-10-25 03:51:06 -0700 DarkWake DarkWake from Deep Idle [CDN] due to RTC/Maintenance: Using AC (Charge:100%) 45 secs

2016-10-25 03:51:51 -0700 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using AC (Charge:100%) 7200 secs

2016-10-25 05:51:51 -0700 DarkWake DarkWake from Deep Idle [CDN] due to RTC/Maintenance: Using AC (Charge:100%) 44 secs

2016-10-25 05:52:35 -0700 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using AC (Charge:100%) 7200 secs

2016-10-25 07:52:35 -0700 DarkWake DarkWake from Deep Idle [CDN] due to RTC/Maintenance: Using AC (Charge:100%) 45 secs

2016-10-25 07:53:20 -0700 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using AC (Charge:100%) 4282 secs

2016-10-25 09:04:42 -0700 Wake Wake from Deep Idle [CDNVA] due to EC.LidOpen/Lid Open: Using AC (Charge:100%) 181 secs

2016-10-25 09:07:43 -0700 Sleep Entering Sleep state due to 'Clamshell Sleep':TCPKeepAlive=active Using AC (Charge:100%) 156 secs

2016-10-25 09:10:19 -0700 Wake Wake from Deep Idle [CDNVA] due to EC.LidOpen/Lid Open: Using AC (Charge:100%)



A typical night of the rMBP 15":


2016-10-24 19:47:16 -0700 Sleep Entering Sleep state due to 'Clamshell Sleep': Using AC (Charge:100%) 48131 secs

2016-10-25 09:09:27 -0700 Wake Wake from Normal Sleep [CDNVA] due to EC.LidOpen/Lid Open: Using AC (Charge:100%)


I repeat. Same systems, same software, same settings, same fresh installations. Hopelessness filled every corner of the black movie screen. Credits follow. The End.


The only difference between the setups that I can think of is that I first installed Dropbox on the 13" driven by inertia. I yanked it off later as fully as I could (its launch agent, settings, caches, etc). Everything else is similar.


I also checked your theory that being logged into iCloud somehow keeps the apple push notification daemon's (apsd) connection alive. I logged out of iCloud on the 13" for one night to no avail. This theory can't be hypothetically complete because in this case, you should log out from every Apple service like Messages and FaceTime as well because they all rely on push notifications. I will try to disable "apsd" altogether to see if it plays any role.


Next steps that I'm going to make on the 13":

1. Disable "apsd" via launchctl and see if it interacts with wake-ups;

2. Fresh-install OSX 10.12 again on rMBP 13" to confirm or disprove that an environment matters;

3. Revert back to good ol' Mavericks.


#1 is easy to implement and doesn't cost much time.

#2 is relatively radical. I'd rather postpone it till I run out of all options.

#3 is due to growing hopelessness and frustration with how things are in Sierra and lack of response from the tech guys in this and other related threads.

Oct 27, 2016 9:06 PM in response to Seny

Cool about the wake on wifi setting. Good idea to check, just in case it has a bearing.


To tell you the truth, it doesn't matter much to me what it does on AC. More important, obviously, is that it has the same behaviour on battery. I'm pretty sure I've seen similar behaviour on AC with other MacBook Pros, Airs etc, but none of them do this when on battery. But it sounds like your 13" rMBP does it too on battery. The 13" rMBP I've tried it on was late 2012, and that slept very soundly!


The thing about the iCloud signon is that the behaviour only starts after you sign into something iCloud-related, even just Messages. But signing out again doesn't stop the behaviour. You can, from memory, reboot, sign into a fresh user and it will sleep properly, until you sign into iCloud on that user. Strange, I know!


Now, a very interesting new finding! I'm on Sierra, so don't know if this was the case with El Capitan too, but probably was. When one of those maintenance sleeps happens you see something like:


2016-10-28 07:05:32 +1100 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using Batt (Charge:67%) 7230 secs


7200 secs is, of course, 2 hours. And it says TCPKeepAlive=active.


But now I find that EXACTLY 12 hours after the Mac is initially put to sleep, I get


2016-10-28 10:05:03 +1100 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=inactive Using Batt (Charge:67%)


TCPKeepAlive is now inactive, and the Mac stays properly asleep.


I don't know what to make of all this. Maybe Apple decided the newer Macs are energy-efficient enough to keep that Apple Push session active by waking every 2 hours, rather than setting it up every time, but only for 12 hours. Maybe it's only supposed to do this on AC and not on battery, where I believe wifi is left turned on too. I also don't know why you get spurious network wakes on battery either at times. But battery life certainly suffers more than it should during that initial 12 hour period.


Go forth and ponder!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Macbook 12 battery drain in sleep

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.