Contribute
Register

[SOLVED] Ventura/Sonoma - Random (Scheduled PM) Wake from Sleep

Thanks jaymonkey, this guide of yours solved all sleep problems I had on my five different machines, especially good for my HP laptop (MacbookPro 14.1). Very good also to read the pmset variables, thanks Edhawk for that file. Ventura has been a bit of a problem with glitches here and there, but its shaping up.

 
I got my hourly wakeup issues fixed with the guide from post #1

I updated to macOS sonoma 14.1 and the issue came back, sadly not fixable using the ventura guide. It seems apple changed some things regarding the hourly wakeup.
Did anyone already find out how to stop sonomas insomnia?

sleep log with wake reasons:

2023-10-27 03:38:37 +0200 DarkWake DarkWake from Deep Idle [CDN] : due to NUB.SPMI0Sw3IRQ nub-spmi.0x02 rtc/Maintenance Using AC (Charge:0%) 45 secs


2023-10-27 04:18:34 +0200 DarkWake DarkWake from Deep Idle [CDN] : due to NUB.SPMI0Sw3IRQ nub-spmi.0x02 rtc/Maintenance Using AC (Charge:0%) 44 secs


2023-10-27 05:39:37 +0200 DarkWake DarkWake from Deep Idle [CDN] : due to NUB.SPMI0Sw3IRQ nub-spmi.0x02 rtc/Maintenance Using AC (Charge:0%) 45 secs


2023-10-27 06:40:38 +0200 DarkWake DarkWake from Deep Idle [CDN] : due to NUB.SPMI0Sw3IRQ nub-spmi.0x02 rtc/Maintenance Using AC (Charge:0%) 45 secs


2023-10-27 07:41:37 +0200 DarkWake DarkWake from Deep Idle [CDN] : due to NUB.SPMI0Sw3IRQ nub-spmi.0x02 rtc/Maintenance Using AC (Charge:0%) 45 secs


pmset -g :

System-wide power settings:


Currently in use:


standby 0


Sleep On Power Button 1


autorestart 0


SleepServices 0


powernap 0


networkoversleep 0


disksleep 0


sleep 0 (sleep prevented by powerd, bluetoothd, sharingd)


ttyskeepawake 1


displaysleep 10


tcpkeepalive 0


womp 0
 
I can confirm that the Sleep Issue is not reSolved in Sonoma 14.1
I've taken to shutting my machine down at night.
Hopeful somebody with more knowledge than I can solve this.
As always I'm available to help in any way I can.
 
Last edited:
Hello jaymonkey, your thorough investigation leading to the fourth solution has been working for me in the last week and half. So kudos to you!

I was starting to become more confident that this is most likely due to the update to Ventura OS, as with previous Apple OS, the sleep was working fairly well.

My next fix is having the system go to sleep after the display sleeps. Right now I have to manually do this with the mouse. I see that on post #10 Edhawk makes reference to setting Sleep=1. Would that be in my config.plist file? I could not find it.

Again, much appreciated for this stellar solution!
 
This is the solution that I have been looking for a long time. I have the darkwake issue on my desktop. It wakes up in the middle of the night, does something, and goes back to sleep.

03:00:09 -0400 DarkWake DarkWake from Normal Sleep [CDN] : due to RTC/Maintenance Using AC (Charge:0%) 45 secs
03:00:54 -0400 Sleep Entering Sleep state due to 'Maintenance Sleep': Using AC (Charge:0%) 10756 secs
06:00:10 -0400 DarkWake DarkWake from Normal Sleep [CDN] : due to RTC/Maintenance Using AC (Charge:0%) 0 secs
06:00:10 -0400 Sleep Entering Sleep state due to 'Maintenance Sleep': Using AC (Charge:0%) 1395 secs

pmset -g log | grep "Wake Requests" gave

00:59:32 -0400 Wake Requests [process=NotificationCenter request=Maintenance deltaSecs=18129 wakeAt=06:01:42 info="com.apple.notificationcenter.dnd"] [*process=powerd request=CSPNEvaluation deltaSecs=7226 wakeAt=02:59:59] [process=powerd request=UserWake deltaSecs=18027 wakeAt=06:00:00 info="com.apple.alarm.user-visible-com.apple.donotdisturb.server.ScheduleLifetimeMonitor.timer,454"]

03:00:56 -0400 Wake Requests [process=NotificationCenter request=Maintenance deltaSecs=10802 wakeAt=06:00:58 info="com.apple.notificationcenter.dnd"] [process=powerd request=CSPNEvaluation deltaSecs=10803 wakeAt=06:00:59] [*process=powerd request=UserWake deltaSecs=10744 wakeAt=06:00:00 info="com.apple.alarm.user-visible-com.apple.donotdisturb.server.ScheduleLifetimeMonitor.timer,454"]

06:00:11 -0400 Wake Requests [process=NotificationCenter request=Maintenance deltaSecs=61301 wakeAt=23:01:53 info="com.apple.notificationcenter.dnd"] [*process=powerd request=CSPNEvaluation deltaSecs=7252 wakeAt=08:01:04] [process=powerd request=UserWake deltaSecs=11378 wakeAt=09:09:50 info="com.apple.alarm.user-invisible-com.apple.calaccessd.travelEngine.periodicRefreshTimer,454"]

17:51:05 -0400 Wake Requests [process=NotificationCenter request=Maintenance deltaSecs=18627 wakeAt=23:01:32 info="com.apple.notificationcenter.dnd"] [process=powerd request=CSPNEvaluation deltaSecs=7226 wakeAt=19:51:31] [*process=powerd request=UserWake deltaSecs=6881 wakeAt=19:45:46 info="com.apple.alarm.user-invisible-com.apple.calaccessd.travelEngine.periodicRefreshTimer,467"]

17:52:59 -0400 Wake Requests [process=NotificationCenter request=Maintenance deltaSecs=18593 wakeAt=23:02:53 info="com.apple.notificationcenter.dnd"] [process=powerd request=CSPNEvaluation deltaSecs=7226 wakeAt=19:53:26] [*process=powerd request=UserWake deltaSecs=6766 wakeAt=19:45:46 info="com.apple.alarm.user-invisible-com.apple.calaccessd.travelEngine.periodicRefreshTimer,467"]

I could disable the scheduling using sudo pmset schedule cancelall, but I didn't think about chflags. I appreciate your time and efforts.
 
My next fix is having the system go to sleep after the display sleeps. Right now I have to manually do this with the mouse. I see that on post #10 Edhawk makes reference to setting Sleep=1. Would that be in my config.plist file? I could not find it.

Again, much appreciated for this stellar solution!
Ok, good news! I found the solution to the above with terminal command "sudo pmset sleep 1'. So now, as soon as the monitor goes to sleep the whole computer does too
 
After applying the fixes suggested in this thread, I’ve monitored it for a week. I can confirm that it’s solved 100%. It sleeps when it needs to sleep, wakes up when I move the mouse, and has no more darkwake during sleep. The commands that I used for this are as follows:

% sudo pmset -a womp 0
% sudo pmset -a proximitywake 0
% sudo pmset -a powernap 0
% sudo pmset -a networkoversleep 0
% sudo pmset -a hibernatemode 0
% sudo pmset -a gpuswitch 1
% sudo pmset schedule cancelall
% sudo pmset repeat cancel
% sudo chflags schg /Library/Preferences/SystemConfiguration/com.apple.AutoWake.plist
 
Those Systemwide power settings should work for any recent version of macOS.
 
Back
Top