Contribute
Register

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

Having got a test install of Sonoma installed and running, I can confirm that the wake during sleep problem is back.

Using the following Terminal command :-

Code:
pmset -g log | grep "Wake Request"

On my system (with all the usual sleep fixes including the fix from my Ventura post) i'm seeing a new type of wake request called CSPNEvaluation triggered by the powerd process which will wake the system up for around 45 seconds multiple times during an overnight sleep :-

Code:
2023-11-11 18:53:17 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=7228 wakeAt=2023-11-11 20:53:45]
2023-11-11 20:54:43 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=3604 wakeAt=2023-11-11 21:54:48]
2023-11-11 21:55:47 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=3604 wakeAt=2023-11-11 22:55:51]
2023-11-11 22:56:51 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=3603 wakeAt=2023-11-11 23:56:54]
2023-11-11 23:57:54 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=3603 wakeAt=2023-11-12 00:57:57]
2023-11-12 00:58:57 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=27742 wakeAt=2023-11-12 08:41:19]
2023-11-12 08:42:17 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=7204 wakeAt=2023-11-12 10:42:22]
2023-11-12 10:43:21 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=3603 wakeAt=2023-11-12 11:43:25]
2023-11-12 11:44:24 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=3604 wakeAt=2023-11-12 12:44:28]
2023-11-12 12:45:27 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=3604 wakeAt=2023-11-12 13:45:31]
2023-11-12 13:46:30 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=3604 wakeAt=2023-11-12 14:46:34]

This is something new that i've never seen before in MacOS as a Wake Reason, i will continue to investigate and will update this thread with any new findings.

Cheers
Jay
 
Last edited:
@Lensjocky,

I've got a test install of Sonoma installed and can confirm that the wake during sleep problem is back.
Having done a few days of investigations it looks like Apple have introduced something new but i would like you to confirm my findings.

Could you please try an overnight sleep test and then in the morning use the following terminal command.

Code:
pmset -g log | grep "Wake Request"

On my system (with all the usual sleep fixes including the fix from my Ventura post) i'm seeing that a request called CSPNEvaluation in causing the powerd process to wake the system up for around 45 seconds multiple times during overnight sleep :-

Code:
2023-11-11 18:53:17 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=7228 wakeAt=2023-11-11 20:53:45]     
2023-11-11 20:54:43 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=3604 wakeAt=2023-11-11 21:54:48]     
2023-11-11 21:55:47 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=3604 wakeAt=2023-11-11 22:55:51]     
2023-11-11 22:56:51 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=3603 wakeAt=2023-11-11 23:56:54]     
2023-11-11 23:57:54 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=3603 wakeAt=2023-11-12 00:57:57]     
2023-11-12 00:58:57 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=27742 wakeAt=2023-11-12 08:41:19]     
2023-11-12 08:42:17 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=7204 wakeAt=2023-11-12 10:42:22]     
2023-11-12 10:43:21 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=3603 wakeAt=2023-11-12 11:43:25]     
2023-11-12 11:44:24 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=3604 wakeAt=2023-11-12 12:44:28]     
2023-11-12 12:45:27 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=3604 wakeAt=2023-11-12 13:45:31]     
2023-11-12 13:46:30 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=3604 wakeAt=2023-11-12 14:46:34]

This is something new that i've never seen before, it might be to do with something called 'First Level Security Certification', the CSPN part seems to mean Certification de Sécurité de Premier Niveau as far as i can tell. I've searched high and low for anything to do with MacOS + request=CSPNEvaluation but there is nothing (that i've found so far). The only information i can find so far are just generic documents and definitions such as :

https://www.systancia.com/en/definition-cspn/

It's quite possible that it has nothing to with Certification de Sécurité de Premier Niveau and Apple just happen to be using the same initials .... really not sure at this stage of the investigation.

Please note that i am NOT using the Broadcom WiFi fixes (OC + OCLP) on my test system.

Would be useful to know if you are seeing the same Wake Requests on your Sonoma system.

Cheers
Jay
Will do! I'll try this later today.
Just FYI I've patched Sonoma w/ OCLP to get my Broadcomm Wifi back.
Thanks for looking Jay.
 
@jaymonkey Hi, by some miracle I've just stumbled upon this forum post and saw your message.

When I came back home just now, I saw that my PC was awake, and the logs printed out using the command your provided support it:
Code:
sourcelocation@Mac-Pro-sourcelocation ~ % pmset -g log | grep "Wake Request"

2023-11-12 21:07:07 +0000 Wake Requests           [process=mDNSResponder request=Maintenance deltaSecs=7197 wakeAt=2023-11-12 23:07:04 info="upkeep wake"] [process=NotificationCenter request=Maintenance deltaSecs=10498 wakeAt=2023-11-13 00:02:05 info="com.apple.notificationcenter.dnd"] [process=powerd request=CSPNEvaluation deltaSecs=7226 wakeAt=2023-11-12 23:07:33] [*process=powerd request=UserWake deltaSecs=4267 wakeAt=2023-11-12 22:18:14 info="com.apple.alarm.user-visible-com.apple.acmd.alarm,82"]
2023-11-12 22:29:57 +0000 Wake Requests           [process=mDNSResponder request=Maintenance deltaSecs=7197 wakeAt=2023-11-13 00:29:55 info="upkeep wake"] [process=NotificationCenter request=Maintenance deltaSecs=5506 wakeAt=2023-11-13 00:01:44 info="com.apple.notificationcenter.dnd"] [process=powerd request=CSPNEvaluation deltaSecs=6882 wakeAt=2023-11-13 00:24:40] [*process=powerd request=UserWake deltaSecs=5402 wakeAt=2023-11-13 00:00:00 info="com.apple.alarm.user-visible-com.apple.donotdisturb.server.ScheduleLifetimeMonitor.timer,380"]
2023-11-12 23:00:57 +0000 Wake Requests           [process=mDNSResponder request=Maintenance deltaSecs=7197 wakeAt=2023-11-13 01:00:54 info="upkeep wake"] [process=NotificationCenter request=Maintenance deltaSecs=3692 wakeAt=2023-11-13 00:02:29 info="com.apple.notificationcenter.dnd"] [process=powerd request=CSPNEvaluation deltaSecs=7226 wakeAt=2023-11-13 01:01:23] [*process=powerd request=UserWake deltaSecs=3543 wakeAt=2023-11-13 00:00:00 info="com.apple.alarm.user-visible-com.apple.donotdisturb.server.ScheduleLifetimeMonitor.timer,380"]
2023-11-13 00:00:59 +0000 Wake Requests           [*process=mDNSResponder request=Maintenance deltaSecs=7197 wakeAt=2023-11-13 02:00:56 info="upkeep wake"] [process=NotificationCenter request=Maintenance deltaSecs=25169 wakeAt=2023-11-13 07:00:28 info="com.apple.notificationcenter.dnd"] [process=powerd request=CSPNEvaluation deltaSecs=7226 wakeAt=2023-11-13 02:01:25] [process=powerd request=UserWake deltaSecs=19062 wakeAt=2023-11-13 05:18:41 info="com.apple.alarm.user-invisible-com.apple.calaccessd.travelEngine.periodicRefreshTimer,729"]
2023-11-13 02:11:53 +0000 Wake Requests           [process=mDNSResponder request=Maintenance deltaSecs=7197 wakeAt=2023-11-13 04:11:51 info="upkeep wake"] [process=NotificationCenter request=Maintenance deltaSecs=17422 wakeAt=2023-11-13 07:02:16 info="com.apple.notificationcenter.dnd"] [*process=powerd request=CSPNEvaluation deltaSecs=6911 wakeAt=2023-11-13 04:07:05] [process=powerd request=UserWake deltaSecs=11207 wakeAt=2023-11-13 05:18:41 info="com.apple.alarm.user-invisible-com.apple.calaccessd.travelEngine.periodicRefreshTimer,729"]
2023-11-13 04:18:03 +0000 Wake Requests           [process=mDNSResponder request=Maintenance deltaSecs=7197 wakeAt=2023-11-13 06:18:00 info="upkeep wake"] [process=NotificationCenter request=Maintenance deltaSecs=9830 wakeAt=2023-11-13 07:01:53 info="com.apple.notificationcenter.dnd"] [process=powerd request=CSPNEvaluation deltaSecs=6911 wakeAt=2023-11-13 06:13:14] [*process=powerd request=UserWake deltaSecs=3638 wakeAt=2023-11-13 05:18:41 info="com.apple.alarm.user-invisible-com.apple.calaccessd.travelEngine.periodicRefreshTimer,729"]
2023-11-13 05:29:34 +0000 Wake Requests           [process=mDNSResponder request=Maintenance deltaSecs=7197 wakeAt=2023-11-13 07:29:32 info="upkeep wake"] [process=NotificationCenter request=Maintenance deltaSecs=5555 wakeAt=2023-11-13 07:02:10 info="com.apple.notificationcenter.dnd"] [process=powerd request=CSPNEvaluation deltaSecs=6911 wakeAt=2023-11-13 07:24:45] [*process=powerd request=UserWake deltaSecs=5425 wakeAt=2023-11-13 07:00:00 info="com.apple.alarm.user-visible-com.apple.donotdisturb.server.ScheduleLifetimeMonitor.timer,729"]
2023-11-13 07:10:58 +0000 Wake Requests           [process=mDNSResponder request=Maintenance deltaSecs=7197 wakeAt=2023-11-13 09:10:55 info="upkeep wake"] [process=NotificationCenter request=Maintenance deltaSecs=60595 wakeAt=2023-11-14 00:00:53 info="com.apple.notificationcenter.dnd"] [*process=powerd request=CSPNEvaluation deltaSecs=6911 wakeAt=2023-11-13 09:06:09] [process=powerd request=UserWake deltaSecs=22844 wakeAt=2023-11-13 13:31:42 info="com.apple.alarm.user-invisible-com.apple.calaccessd.travelEngine.periodicRefreshTimer,729"]
2023-11-13 08:03:17 +0000 Wake Requests           [process=NotificationCenter request=Maintenance deltaSecs=57493 wakeAt=2023-11-14 00:01:30 info="com.apple.notificationcenter.dnd"] [*process=powerd request=CSPNEvaluation deltaSecs=3464 wakeAt=2023-11-13 09:01:01] [process=powerd request=UserWake deltaSecs=19705 wakeAt=2023-11-13 13:31:42 info="com.apple.alarm.user-invisible-com.apple.calaccessd.travelEngine.periodicRefreshTimer,729"]
2023-11-13 09:11:58 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=6911 wakeAt=2023-11-13 11:07:09] [process=powerd request=UserWake deltaSecs=15584 wakeAt=2023-11-13 13:31:42 info="com.apple.alarm.user-invisible-com.apple.calaccessd.travelEngine.periodicRefreshTimer,729"]
2023-11-13 11:18:03 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=6911 wakeAt=2023-11-13 13:13:14] [process=powerd request=UserWake deltaSecs=8019 wakeAt=2023-11-13 13:31:42 info="com.apple.alarm.user-invisible-com.apple.calaccessd.travelEngine.periodicRefreshTimer,729"]
2023-11-13 13:24:12 +0000 Wake Requests           [process=NotificationCenter request=Maintenance deltaSecs=38327 wakeAt=2023-11-14 00:03:00 info="com.apple.notificationcenter.dnd"] [process=powerd request=CSPNEvaluation deltaSecs=6911 wakeAt=2023-11-13 15:19:23] [*process=powerd request=UserWake deltaSecs=449 wakeAt=2023-11-13 13:31:42 info="com.apple.alarm.user-invisible-com.apple.calaccessd.travelEngine.periodicRefreshTimer,729"]

Seems like my system is also waking up due to some sort of "CSPNEvaluation".
 
@jaymonkey

nice find! This CSPNEvaluation is the reason for the hourly wakes in sonoma. Now we need to find out how to stop it. These hourly wake schedules can"t be cancelled with pmset sched cancel. Bug or feature, only apple knows i guess.
 
@Lensjocky,

I've got a test install of Sonoma installed and can confirm that the wake during sleep problem is back.
Having done a few days of investigations it looks like Apple have introduced something new but i would like you to confirm my findings.

Could you please try an overnight sleep test and then in the morning use the following terminal command.

Code:
pmset -g log | grep "Wake Request"

On my system (with all the usual sleep fixes including the fix from my Ventura post) i'm seeing that a request called CSPNEvaluation in causing the powerd process to wake the system up for around 45 seconds multiple times during overnight sleep :-

Code:
2023-11-11 18:53:17 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=7228 wakeAt=2023-11-11 20:53:45]      
2023-11-11 20:54:43 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=3604 wakeAt=2023-11-11 21:54:48]      
2023-11-11 21:55:47 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=3604 wakeAt=2023-11-11 22:55:51]      
2023-11-11 22:56:51 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=3603 wakeAt=2023-11-11 23:56:54]      
2023-11-11 23:57:54 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=3603 wakeAt=2023-11-12 00:57:57]      
2023-11-12 00:58:57 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=27742 wakeAt=2023-11-12 08:41:19]      
2023-11-12 08:42:17 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=7204 wakeAt=2023-11-12 10:42:22]      
2023-11-12 10:43:21 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=3603 wakeAt=2023-11-12 11:43:25]      
2023-11-12 11:44:24 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=3604 wakeAt=2023-11-12 12:44:28]      
2023-11-12 12:45:27 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=3604 wakeAt=2023-11-12 13:45:31]      
2023-11-12 13:46:30 +0000 Wake Requests           [*process=powerd request=CSPNEvaluation deltaSecs=3604 wakeAt=2023-11-12 14:46:34]

This is something new that i've never seen before, it might be to do with something called 'First Level Security Certification', the CSPN part seems to mean Certification de Sécurité de Premier Niveau as far as i can tell. I've searched high and low for anything to do with MacOS + request=CSPNEvaluation but there is nothing (that i've found so far). The only information i can find so far are just generic documents and definitions such as :

https://www.systancia.com/en/definition-cspn/

It's quite possible that it has nothing to with Certification de Sécurité de Premier Niveau and Apple just happen to be using the same initials .... really not sure at this stage of the investigation.

Please note that i am NOT using the Broadcom WiFi fixes (OC + OCLP) on my test system.

Would be useful to know if you are seeing the same Wake Requests on your Sonoma system.

Cheers
Jay

Ever since the upgrade to Sonoma, I am getting these random wakes due to th CSPNEvaluation.

My system seems to wake up in order to sync things with icloud. There is all this activity with "nsurlsession". I just have the free storage, so I'm wondering if it is syncing my iMessages to update them for the new iMessage functionality in Sonoma.
 
@tedyun

could be possible. Have you tried turning off iMessage in sonoma?
 
@tedyun

could be possible. Have you tried turning off iMessage in sonoma?

@ApexDE - I can give it a shot, but I’m going out of town for the next couple of weeks so I won’t be able to test it until then.
 
@sourcelocation, @ApexDE, @tedyun

Many thanks to you all for testing and confirming that CSPNEvaluation is the new cause for Sonoma's insomnia.

This helps me as it shows i'm on the right path. I just don't understand why Apple does not grasp the meaning of system sleep. FFS Sleep means SLEEP :lol:. Lots of reports of Sonoma's insomnia on the Apple forums effecting M1, M2 & M3 Macs with some reporting that it's draining the battery overnight (on laptop macs) so it may get addressed by Apple although somehow i doubt it ....

I've never seen this new wake reason (CSPNEvaluation) on any Mac before Sonoma so this is a new feature, i just don't understand why Appple could not have tied it into to the existing Power Nap features so that users can disable it via System Settings -> Energy Saver ... thanks Tim !!

I'll continue this investigation and will post when or if i make progress. I've already tried a bunch of things, but so far nothing has worked so suggests this feature is berried deep within the kernel.

Cheers
Jay
 
Last edited:
@jaymonkey

i guess we need to dig in to powerd as it seems to schedule these new wakes besides/outside of the schedule system which is controllable via pmset (e.g. pmset repeat cancel)
Maybe some powerd plist setting which we can influence?
 
Back
Top