Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

szilske

macrumors regular
Original poster
Nov 10, 2015
106
34
Germany
Hi folks,

my 15" MacBook Pro (Late 2016) is waking up from DeepSleep quite often:

```

2020-02-29 08:37:33 +0100 Sleep Entering Sleep state due to 'Clamshell Sleep':TCPKeepAlive=disabled Using Batt (Charge:96%) 7220 secs
2020-02-29 10:37:53 +0100 DarkWake DarkWake from Normal Sleep [CDN] : due to EC.SleepTimer/SleepTimer Using BATT (Charge:95%) 0 secs
2020-02-29 10:37:53 +0100 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=disabled Using Batt (Charge:95%) 905 secs
2020-02-29 10:52:58 +0100 DarkWake DarkWake from Standby [CDN] : due to RTC/Maintenance Using BATT (Charge:94%) 1 secs
2020-02-29 10:52:59 +0100 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=disabled Using Batt (Charge:94%) 904 secs
2020-02-29 11:08:03 +0100 DarkWake DarkWake from Standby [CDN] : due to RTC/Maintenance Using BATT (Charge:94%) 0 secs
2020-02-29 11:08:03 +0100 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=disabled Using Batt (Charge:94%) 905 secs
2020-02-29 11:23:08 +0100 DarkWake DarkWake from Standby [CDN] : due to RTC/Maintenance Using BATT (Charge:94%) 0 secs
2020-02-29 11:23:08 +0100 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=disabled Using Batt (Charge:94%) 905 secs
2020-02-29 11:38:13 +0100 DarkWake DarkWake from Standby [CDN] : due to RTC/Maintenance Using BATT (Charge:94%) 0 secs
2020-02-29 11:38:13 +0100 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=disabled Using Batt (Charge:94%) 905 secs
2020-02-29 11:53:18 +0100 DarkWake DarkWake from Standby [CDN] : due to RTC/Maintenance Using BATT (Charge:94%) 0 secs
2020-02-29 11:53:18 +0100 Sleep Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=disabled Using Batt (Charge:94%) 410 secs
2020-02-29 12:00:08 +0100 Wake Wake from Standby [CDNVA] : due to EC.LidOpen/Lid Open Using BATT (Charge:93%)
```

Does anyone know what `DarkWake from Standby [CDN] : due to RTC/Maintenance` means? I have disabled `TCPKeepAlive` and also PowerNap and Wake up by Bluetooth.

Cheers,
Stefan
 
Checking system.log this is the only thing that I can observe during those wakeups:

```
libcoreservices: _dirhelper_userdir: 557: bootstrap_look_up returned (ipc/send) invalid destination port
```
 
Last edited:
  • Like
Reactions: Lumen777
My Macbook 2016 does the RTC/Maintenace wakes for a while (hour or two) and then much further apart RTC/SleepService wakes. I am not clear about the difference. RTC is real time clock - so both are some timed wake.

You already have tcpkeepalive 0, but what are your values for standbydelayhigh and standbydelaylow? I think you will get things more under control if you set them both the same. I have mine at 7200 (2 hours), but maybe 3600 would be better. Both these values are much lower than defaults. The high and low refer to battery level being above or below highstandbythreshold (50%) and standbydelay how long until it goes into standby where it writes RAM to disk and turns off memory.

I assume you have hibernatemode 3. Some recommend setting this to 25, but then wake up is too prolonged. I recommend 3.

Some links that got me on the right path:
https://support.apple.com/en-us/HT202824 Other Sleep Modes section
https://www.dssw.co.uk/reference/pmset.html Which is just man pmset.

My favourite reporting command is:
pmset -g log | egrep "\b(Sleep|Wake*|DarkWake|Start)\s{2,}"

I don't think there have been any changes to this since High Sierra.
 
Potentially yes, I have an AppleWatch, which can unlock the MacBook and also AirPods, which are paired with the MacBook.

But I habe disabled the setting, that Bluetooth devices can wake up the MacBook up.
 
But I habe disabled the setting, that Bluetooth devices can wake up the MacBook up.

I did that too. It didn't work. Well, either it didn't work or my BT DAC kept the computer from fully going to sleep even though it appeared to be asleep to me.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.