Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Why does Macbook Pro M1 Keeps waking up and sleeping when not in use?

My Macbook Pro M1


Running this command shows the state of battery over time. As you can see in the logs displayed, throughout the night when the laptop is not being used. What are these reasons for laptop waking up?

"NUB.SPMISw3IRQ nub-spmi.0x02"


pmset -g log | grep -w Charge | more


2021-01-06 01:08:05 -0500 Sleep                 Entering Sleep state due to 'Sleep Service Back to Sleep':TCPKeepAlive=active Using Batt (Charge:100%) 926 secs
2021-01-06 01:23:31 -0500 DarkWake              DarkWake from Deep Idle [CDNP] : due to NUB.SPMISw3IRQ nub-spmi.0x02 rtc/SleepService Using BATT (Charge:100%) 4 secs
2021-01-06 01:23:35 -0500 Sleep                 Entering Sleep state due to 'Sleep Service Back to Sleep':TCPKeepAlive=active Using Batt (Charge:100%) 1139 secs
2021-01-06 01:42:34 -0500 DarkWake              DarkWake from Deep Idle [CDNP] : due to NUB.SPMISw3IRQ nub-spmi.0x02 rtc/SleepService Using BATT (Charge:100%) 4 secs
2021-01-06 01:42:38 -0500 Sleep                 Entering Sleep state due to 'Sleep Service Back to Sleep':TCPKeepAlive=active Using Batt (Charge:100%) 1108 secs
2021-01-06 02:01:06 -0500 DarkWake              DarkWake from Deep Idle [CDNP] : due to NUB.SPMISw3IRQ nub-spmi.0x02 rtc/SleepService Using BATT (Charge:100%) 4 secs
2021-01-06 02:01:10 -0500 Sleep                 Entering Sleep state due to 'Sleep Service Back to Sleep':TCPKeepAlive=active Using Batt (Charge:100%) 995 secs
2021-01-06 02:17:45 -0500 DarkWake              DarkWake from Deep Idle [CDNP] : due to NUB.SPMISw3IRQ nub-spmi.0x02 rtc/SleepService Using BATT (Charge:100%) 4 secs
2021-01-06 02:17:49 -0500 Sleep                 Entering Sleep state due to 'Sleep Service Back to Sleep':TCPKeepAlive=active Using Batt (Charge:100%) 1057 secs
2021-01-06 02:35:26 -0500 DarkWake              DarkWake from Deep Idle [CDNP] : due to NUB.SPMISw3IRQ nub-spmi.0x02 rtc/SleepService Using BATT (Charge:100%) 4 secs
2021-01-06 02:35:30 -0500 Sleep                 Entering Sleep state due to 'Sleep Service Back to Sleep':TCPKeepAlive=active Using Batt (Charge:100%) 1162 secs
2021-01-06 02:54:52 -0500 DarkWake              DarkWake from Deep Idle [CDNP] : due to NUB.SPMISw3IRQ nub-spmi.0x02 rtc/SleepService Using BATT (Charge:100%) 4 secs
2021-01-06 02:54:56 -0500 Sleep                 Entering Sleep state due to 'Sleep Service Back to Sleep':TCPKeepAlive=active Using Batt (Charge:100%) 1013 secs
2021-01-06 03:11:49 -0500 DarkWake              DarkWake from Deep Idle [CDNP] : due to NUB.SPMISw3IRQ nub-spmi.0x02 rtc/SleepService Using BATT (Charge:100%) 4 secs
2021-01-06 03:11:53 -0500 Sleep                 Entering Sleep state due to 'Sleep Service Back to Sleep':TCPKeepAlive=active Using Batt (Charge:100%) 1084 secs
2021-01-06 03:29:57 -0500 DarkWake              DarkWake from Deep Idle [CDNP] : due to NUB.SPMISw3IRQ nub-spmi.0x02 rtc/SleepService Using BATT (Charge:100%) 4 secs
2021-01-06 03:30:01 -0500 Sleep                 Entering Sleep state due to 'Sleep Service Back to Sleep':TCPKeepAlive=active Using Batt (Charge:100%) 631 secs
2021-01-06 03:40:32 -0500 DarkWake              DarkWake from Deep Idle [CDNP] : due to SMC.OutboxNotEmpty smc.70070000 wifibt wlan/ Using BATT (Charge:100%) 5 secs
2021-01-06 03:40:37 -0500 Sleep                 Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active Using Batt (Charge:100%) 792 secs

Posted on Jan 6, 2021 6:18 AM

Reply
Question marked as Best reply

Posted on Jan 24, 2021 10:46 PM

I've solved this issue.

Here's the solution (need to update to macOS 11.2 RC):

1.Run command in terminal: sudo pmset -a tcpkeepalive 0

2.Run command in terminal: sudo pmset -a powernap 0

3.Make sure these options is not checked: "System Preferences->Battery->Optimized battery charging" and "System Preferences->Battery->Power Adapter->Wake for network access"

4.Reboot your macbook

Similar questions

4 replies
Question marked as Best reply

Jan 24, 2021 10:46 PM in response to Amanb014

I've solved this issue.

Here's the solution (need to update to macOS 11.2 RC):

1.Run command in terminal: sudo pmset -a tcpkeepalive 0

2.Run command in terminal: sudo pmset -a powernap 0

3.Make sure these options is not checked: "System Preferences->Battery->Optimized battery charging" and "System Preferences->Battery->Power Adapter->Wake for network access"

4.Reboot your macbook

Feb 12, 2021 11:16 AM in response to Amanb014

Use this command instead:

pmset -g log | grep -e " Sleep " -e " Wake " -e " DarkWake " -e " Wake Requests "


Then you'll see that when going into sleep, the Mac sets a "Wake Request" in 2 hours, for "upkeep wake":

2021-02-11 21:52:24 -0500 Sleep        	    Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=disabled Using AC (Charge:0%) 7213 secs 
2021-02-11 21:52:24 -0500 Wake Requests    	[*process=mDNSResponder request=Maintenance deltaSecs=7200 wakeAt=2021-02-11 23:52:24 info="upkeep wake"]      
2021-02-11 23:52:37 -0500 DarkWake      	DarkWake from Deep Idle [CDN] : due to NUB.SPMISw3IRQ nub-spmi.0x02 rtc/Maintenance Using AC (Charge:0%) 45 secs  
2021-02-11 23:53:22 -0500 Sleep        	    Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=disabled Using AC (Charge:0%) 7202 secs 
2021-02-11 23:53:22 -0500 Wake Requests    	[*process=mDNSResponder request=Maintenance deltaSecs=7200 wakeAt=2021-02-12 01:53:22 info="upkeep wake"]      
2021-02-12 01:53:24 -0500 DarkWake      	DarkWake from Deep Idle [CDN] : due to NUB.SPMISw3IRQ nub-spmi.0x02 rtc/Maintenance Using AC (Charge:0%) 45 secs


I don't know of anyway to shut that off, even with the other pmset commands shown. If you look in more details at the pmset log, it looks like macOS is syncing "regular" stuff, like Contacts, etc. I think macOS just "needs" to do these things.

Feb 15, 2021 8:31 AM in response to J. Tuttle

Darkwake is a good function, but it leads to a lot of compatibility problems. When darkwake happens, many displays will be awakened, especially the display of DP protocol. I don't think apple can compromise on compatibility. I'm very disappointed.


For your log, did you try step 3? If your darkwake doesn't cause the external monitor to wake up, just ignore this issue. And your monitor is fully compatible with M1.

Why does Macbook Pro M1 Keeps waking up and sleeping when not in use?

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