Contribute
Register

[Solved] Sleep stopped working and I'm at a loss

Status
Not open for further replies.
Joined
Jun 15, 2012
Messages
519
Motherboard
Gigabyte Z370 AORUS Gaming 7-F13
CPU
i7-8700K OC @ 5.1Ghz
Graphics
RX 6900 XT
Mac
  1. MacBook Pro
  2. Mac Pro
Classic Mac
  1. Performa
Mobile Phone
  1. iOS
Yes i've searched threads, and internet, for 3 days. I've tried literally everything under the sun from doriana guides to every work around imaginable going back to 2012. I cannot find anything wrong. In fact everything was perfect until this week when suddenly hack decided sleep feature is utterly worthless and always instantly wakes up/goes to sleep on infinite loop now.

Here is what a wake loop looks like from two diff types of logs
2021-09-20 23:26:54.947585-0400 localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC (Alarm)
2021-09-20 23:26:54.947586-0400 localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC (Alarm)
2021-09-20 23:27:06.558251-0400 localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC (Alarm)
2021-09-20 23:27:06.558252-0400 localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC (Alarm)
2021-09-20 23:28:05.279155-0400 localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC (Alarm)
2021-09-20 23:28:05.279156-0400 localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC (Alarm)
2021-09-20 23:28:17.640696-0400 localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC (Alarm)
2021-09-20 23:28:17.640696-0400 localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC (Alarm)
2021-09-20 23:28:22.005741-0400 localhost powerd[87]: [powerd:sleepWake] Wake reason: "<private>" identity: "<private>"
2021-09-20 23:28:26.150513-0400 localhost powerd[87]: [powerd:sleepWake] Wake reason: "<private>" identity: "<private>"
2021-09-20 23:29:15.799789-0400 localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC (Alarm)
2021-09-20 23:29:15.799789-0400 localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC (Alarm)
2021-09-20 23:29:28.549608-0400 localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC (Alarm)
2021-09-20 23:29:28.549609-0400 localhost kernel[0]: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC (Alarm)
2021-09-20 23:29:36.148355-0400 localhost powerd[87]: [powerd:sleepWake] Wake reason: "<private>" identity: "<private>"

Here is more verbose log
2021-09-20 23:26:33.711648-0400 localhost powerd[87]: [powerd:sleepWake] vm.darkwake_mode: 0 -> 0
2021-09-20 23:26:34.261738-0400 localhost powerd[87]: [powerd:sleepWake] sendNoRespNotification: 0x19
2021-09-20 23:26:49.441821-0400 localhost powerd[87]: [powerd:sleepWake] chooseStandbyDelay(): lowBattery = false, battery powered = false, capacity=0, lowBatteryThreshold=0; chosen delay=0
2021-09-20 23:26:49.441822-0400 localhost powerd[87]: [powerd:sleepWake] Failed to get standbydelay. rc=0xe00002bc
2021-09-20 23:26:49.441830-0400 localhost powerd[87]: [powerd:sleepWake] Entering Sleep state due to 'Idle Sleep'
2021-09-20 23:26:49.441949-0400 localhost powerd[87]: [powerd:sleepWake] connectionFireNotification: 0x0 gen 0x120
2021-09-20 23:26:51.623564-0400 localhost powerd[87]: [powerd:sleepWake] No AdaptiveWake is requested. InactivityEnd:Tue Sep 21 08:15:00 2021 PowerNap State:0
2021-09-20 23:26:51.623654-0400 localhost powerd[87]: [powerd:sleepWake] Wake scheduled by com.apple.alarm
2021-09-20 23:26:58.004798-0400 localhost powerd[87]: [powerd:sleepWake] No need to refresh inactivity prediction: phase=0, start=653897700.000000, now=653887618.005157
2021-09-20 23:26:58.004799-0400 localhost powerd[87]: [powerd:sleepWake] sendNoRespNotification: 0x8019
2021-09-20 23:26:58.007259-0400 localhost powerd[87]: [powerd:sleepWake] Updating wake start timestamp to 29964733034448
2021-09-20 23:27:02.186053-0400 localhost powerd[87]: [powerd:sleepWake] Updating wake end timestamp to 29968919435790
2021-09-20 23:27:02.186117-0400 localhost powerd[87]: [powerd:sleepWake] vm.darkwake_mode: 0 -> 1
2021-09-20 23:27:02.186156-0400 localhost powerd[87]: [powerd:sleepWake] DarkWake from Normal Sleep [CDN] : due to RTC/Maintenance
2021-09-20 23:27:02.186165-0400 localhost powerd[87]: [powerd:sleepWake] WakeDetails: <private>
2021-09-20 23:27:02.186257-0400 localhost powerd[87]: [powerd:sleepWake] <private>
2021-09-20 23:27:02.186468-0400 localhost powerd[87]: [powerd:sleepWake] sendNoRespNotification: 0x19
2021-09-20 23:27:02.189330-0400 localhost powerd[87]: [powerd:sleepWake] chooseStandbyDelay(): lowBattery = false, battery powered = false, capacity=0, lowBatteryThreshold=0; chosen delay=0
2021-09-20 23:27:02.189330-0400 localhost powerd[87]: [powerd:sleepWake] Failed to get standbydelay. rc=0xe00002bc
2021-09-20 23:27:02.189339-0400 localhost powerd[87]: [powerd:sleepWake] Entering Sleep state due to 'Maintenance Sleep'
2021-09-20 23:27:02.189437-0400 localhost powerd[87]: [powerd:sleepWake] connectionFireNotification: 0x0 gen 0x121
2021-09-20 23:27:03.246912-0400 localhost powerd[87]: [powerd:sleepWake] No AdaptiveWake is requested. InactivityEnd:Tue Sep 21 08:15:00 2021 PowerNap State:0
2021-09-20 23:27:03.246990-0400 localhost powerd[87]: [powerd:sleepWake] Wake scheduled by com.apple.alarm
2021-09-20 23:27:11.006477-0400 localhost powerd[87]: [powerd:sleepWake] Updating wake start timestamp to 29973298876241
2021-09-20 23:27:11.006760-0400 localhost powerd[87]: [powerd:sleepWake] No need to refresh inactivity prediction: phase=0, start=653897700.000000, now=653887631.007271
2021-09-20 23:27:11.006761-0400 localhost powerd[87]: [powerd:sleepWake] sendNoRespNotification: 0x8019
2021-09-20 23:27:15.200868-0400 localhost powerd[87]: [powerd:sleepWake] Updating wake end timestamp to 29977500245296
2021-09-20 23:27:15.200926-0400 localhost powerd[87]: [powerd:sleepWake] vm.darkwake_mode: 1 -> 1
2021-09-20 23:27:15.200962-0400 localhost powerd[87]: [powerd:sleepWake] DarkWake from Normal Sleep [CDN] : due to RTC/Maintenance
2021-09-20 23:27:15.200972-0400 localhost powerd[87]: [powerd:sleepWake] WakeDetails: <private>
2021-09-20 23:27:15.201061-0400 localhost powerd[87]: [powerd:sleepWake] <private>
2021-09-20 23:27:15.201264-0400 localhost powerd[87]: [powerd:sleepWake] sendNoRespNotification: 0x19
2021-09-20 23:28:00.957547-0400 localhost powerd[87]: [powerd:sleepWake] chooseStandbyDelay(): lowBattery = false, battery powered = false, capacity=0, lowBatteryThreshold=0; chosen delay=0
2021-09-20 23:28:00.957548-0400 localhost powerd[87]: [powerd:sleepWake] Failed to get standbydelay. rc=0xe00002bc
2021-09-20 23:28:00.957555-0400 localhost powerd[87]: [powerd:sleepWake] Entering Sleep state due to 'Maintenance Sleep'
2021-09-20 23:28:00.957630-0400 localhost powerd[87]: [powerd:sleepWake] connectionFireNotification: 0x0 gen 0x122
2021-09-20 23:28:01.989114-0400 localhost powerd[87]: [powerd:sleepWake] No AdaptiveWake is requested. InactivityEnd:Tue Sep 21 08:15:00 2021 PowerNap State:0
2021-09-20 23:28:01.989205-0400 localhost powerd[87]: [powerd:sleepWake] Wake scheduled by com.apple.alarm
2021-09-20 23:28:09.004203-0400 localhost powerd[87]: [powerd:sleepWake] Updating wake start timestamp to 30026692840586
2021-09-20 23:28:09.004653-0400 localhost powerd[87]: [powerd:sleepWake] No need to refresh inactivity prediction: phase=0, start=653897700.000000, now=653887689.005484
2021-09-20 23:28:09.004654-0400 localhost powerd[87]: [powerd:sleepWake] sendNoRespNotification: 0x8019
2021-09-20 23:28:13.166922-0400 localhost powerd[87]: [powerd:sleepWake] Updating wake end timestamp to 30030860582679
2021-09-20 23:28:13.166984-0400 localhost powerd[87]: [powerd:sleepWake] vm.darkwake_mode: 1 -> 1
2021-09-20 23:28:13.167022-0400 localhost powerd[87]: [powerd:sleepWake] DarkWake from Normal Sleep [CDN] : due to RTC/Maintenance
2021-09-20 23:28:13.167031-0400 localhost powerd[87]: [powerd:sleepWake] WakeDetails: <private>
2021-09-20 23:28:13.167124-0400 localhost powerd[87]: [powerd:sleepWake] <private>
2021-09-20 23:28:13.167349-0400 localhost powerd[87]: [powerd:sleepWake] sendNoRespNotification: 0x19
2021-09-20 23:28:13.170995-0400 localhost powerd[87]: [powerd:sleepWake] chooseStandbyDelay(): lowBattery = false, battery powered = false, capacity=0, lowBatteryThreshold=0; chosen delay=0
2021-09-20 23:28:13.170995-0400 localhost powerd[87]: [powerd:sleepWake] Failed to get standbydelay. rc=0xe00002bc
2021-09-20 23:28:13.171004-0400 localhost powerd[87]: [powerd:sleepWake] Entering Sleep state due to 'Maintenance Sleep'
2021-09-20 23:28:13.171087-0400 localhost powerd[87]: [powerd:sleepWake] connectionFireNotification: 0x0 gen 0x123
2021-09-20 23:28:14.306456-0400 localhost powerd[87]: [powerd:sleepWake] No AdaptiveWake is requested. InactivityEnd:Tue Sep 21 08:15:00 2021 PowerNap State:0
2021-09-20 23:28:14.306548-0400 localhost powerd[87]: [powerd:sleepWake] Wake scheduled by com.apple.alarm
2021-09-20 23:28:21.999556-0400 localhost powerd[87]: [powerd:sleepWake] No need to refresh inactivity prediction: phase=0, start=653897700.000000, now=653887702.000540
2021-09-20 23:28:21.999557-0400 localhost powerd[87]: [powerd:sleepWake] sendNoRespNotification: 0x8019
2021-09-20 23:28:22.005377-0400 localhost powerd[87]: [powerd:sleepWake] Updating wake start timestamp to 30035341604210
2021-09-20 23:28:22.005674-0400 localhost powerd[87]: [powerd:sleepWake] AppWoke:com.apple.bluetoothd-blueavengers Reason:BlueAvengers: Roll beacon advertisement
2021-09-20 23:28:22.005741-0400 localhost powerd[87]: [powerd:sleepWake] Wake reason: "<private>" identity: "<private>"
2021-09-20 23:28:26.148578-0400 localhost powerd[87]: [powerd:sleepWake] Updating wake end timestamp to 30039491157768
2021-09-20 23:28:26.148634-0400 localhost powerd[87]: [powerd:sleepWake] vm.darkwake_mode: 1 -> 1
2021-09-20 23:28:26.148672-0400 localhost powerd[87]: [powerd:sleepWake] DarkWake from Normal Sleep [CDN] : due to RTC/Maintenance
2021-09-20 23:28:26.148681-0400 localhost powerd[87]: [powerd:sleepWake] WakeDetails: <private>
2021-09-20 23:28:26.148769-0400 localhost powerd[87]: [powerd:sleepWake] <private>
2021-09-20 23:28:26.148980-0400 localhost powerd[87]: [powerd:sleepWake] sendNoRespNotification: 0x19
2021-09-20 23:28:26.150488-0400 localhost powerd[87]: [powerd:sleepWake] AppWoke:com.apple.bluetoothd-blueavengers Reason:BlueAvengers: Roll beacon advertisement
2021-09-20 23:28:26.150513-0400 localhost powerd[87]: [powerd:sleepWake] Wake reason: "<private>" identity: "<private>"
2021-09-20 23:29:11.407954-0400 localhost powerd[87]: [powerd:sleepWake] chooseStandbyDelay(): lowBattery = false, battery powered = false, capacity=0, lowBatteryThreshold=0; chosen delay=0
2021-09-20 23:29:11.407955-0400 localhost powerd[87]: [powerd:sleepWake] Failed to get standbydelay. rc=0xe00002bc
2021-09-20 23:29:11.407963-0400 localhost powerd[87]: [powerd:sleepWake] Entering Sleep state due to 'Maintenance Sleep'
2021-09-20 23:29:11.408042-0400 localhost powerd[87]: [powerd:sleepWake] connectionFireNotification: 0x0 gen 0x124
2021-09-20 23:29:12.502704-0400 localhost powerd[87]: [powerd:sleepWake] No AdaptiveWake is requested. InactivityEnd:Tue Sep 21 08:15:00 2021 PowerNap State:0
2021-09-20 23:29:12.502792-0400 localhost powerd[87]: [powerd:sleepWake] Wake scheduled by com.apple.alarm
2021-09-20 23:29:20.004202-0400 localhost powerd[87]: [powerd:sleepWake] Updating wake start timestamp to 30088808883039
2021-09-20 23:29:20.004841-0400 localhost powerd[87]: [powerd:sleepWake] No need to refresh inactivity prediction: phase=0, start=653897700.000000, now=653887760.005670
2021-09-20 23:29:20.004843-0400 localhost powerd[87]: [powerd:sleepWake] sendNoRespNotification: 0x8019
2021-09-20 23:29:24.156795-0400 localhost powerd[87]: [powerd:sleepWake] Updating wake end timestamp to 30092966497241
2021-09-20 23:29:24.156855-0400 localhost powerd[87]: [powerd:sleepWake] vm.darkwake_mode: 1 -> 1
2021-09-20 23:29:24.156891-0400 localhost powerd[87]: [powerd:sleepWake] DarkWake from Normal Sleep [CDN] : due to RTC/Maintenance
2021-09-20 23:29:24.156900-0400 localhost powerd[87]: [powerd:sleepWake] WakeDetails: <private>
2021-09-20 23:29:24.156991-0400 localhost powerd[87]: [powerd:sleepWake] <private>
2021-09-20 23:29:24.157192-0400 localhost powerd[87]: [powerd:sleepWake] sendNoRespNotification: 0x19
2021-09-20 23:29:24.161693-0400 localhost powerd[87]: [powerd:sleepWake] chooseStandbyDelay(): lowBattery = false, battery powered = false, capacity=0, lowBatteryThreshold=0; chosen delay=0
2021-09-20 23:29:24.161693-0400 localhost powerd[87]: [powerd:sleepWake] Failed to get standbydelay. rc=0xe00002bc
2021-09-20 23:29:24.161705-0400 localhost powerd[87]: [powerd:sleepWake] Entering Sleep state due to 'Maintenance Sleep'
2021-09-20 23:29:24.161806-0400 localhost powerd[87]: [powerd:sleepWake] connectionFireNotification: 0x0 gen 0x125
2021-09-20 23:29:25.190599-0400 localhost powerd[87]: [powerd:sleepWake] No AdaptiveWake is requested. InactivityEnd:Tue Sep 21 08:15:00 2021 PowerNap State:0
2021-09-20 23:29:25.190695-0400 localhost powerd[87]: [powerd:sleepWake] Wake scheduled by com.apple.alarm
2021-09-20 23:29:32.003660-0400 localhost powerd[87]: [powerd:sleepWake] No need to refresh inactivity prediction: phase=0, start=653897700.000000, now=653887772.004640
2021-09-20 23:29:32.003662-0400 localhost powerd[87]: [powerd:sleepWake] sendNoRespNotification: 0x8019
2021-09-20 23:29:32.009204-0400 localhost powerd[87]: [powerd:sleepWake] Updating wake start timestamp to 30097366553566
2021-09-20 23:29:36.145772-0400 localhost powerd[87]: [powerd:sleepWake] Updating wake end timestamp to 30101513295798
2021-09-20 23:29:36.145830-0400 localhost powerd[87]: [powerd:sleepWake] vm.darkwake_mode: 1 -> 1
2021-09-20 23:29:36.145866-0400 localhost powerd[87]: [powerd:sleepWake] DarkWake from Normal Sleep [CDN] : due to RTC/Maintenance
2021-09-20 23:29:36.145875-0400 localhost powerd[87]: [powerd:sleepWake] WakeDetails: <private>
2021-09-20 23:29:36.145967-0400 localhost powerd[87]: [powerd:sleepWake] <private>
2021-09-20 23:29:36.146174-0400 localhost powerd[87]: [powerd:sleepWake] sendNoRespNotification: 0x19
2021-09-20 23:29:36.148324-0400 localhost powerd[87]: [powerd:sleepWake] AppWoke:com.apple.bluetoothd-blueavengers Reason:BlueAvengers: Toggle beacon state
2021-09-20 23:29:36.148355-0400 localhost powerd[87]: [powerd:sleepWake] Wake reason: "<private>" identity: "<private>"
2021-09-20 23:29:49.741377-0400 localhost powerd[87]: [powerd:sleepWake] vm.darkwake_mode: 1 -> 0
2021-09-20 23:29:49.741826-0400 localhost powerd[87]: [powerd:sleepWake] Cancelling dark wake update capabilities timer
2021-09-20 23:29:49.742061-0400 localhost powerd[87]: [powerd:sleepWake] vm.darkwake_mode: 0 -> 0
2021-09-20 23:29:51.229977-0400 localhost powerd[87]: [powerd:sleepWake] Updating wake end timestamp to 30115424058545
2021-09-20 23:29:51.230103-0400 localhost powerd[87]: [powerd:sleepWake] DarkWake to FullWake from Normal Sleep [CDNVA] : due to UserActivity Assertion

Believe me I've tried every RTC fix. every patch that's supposed to be there is there. There isn't even a single program open. I even disabled wifi bluetooth airdrop and findmymac. Doesn't stop blueavenger from causing some of the wakes because of apples intrusive airtags mesh network needs to use every apple device without permission. Based on time stamps it could very well be that forcing the RTC alarms. Unfortunately that can't be disabled. Maybe a good feature for RestrictEvents to look into

However google says that even blueavengers shouldn't run forever. But for me it does. Sleep is impossible. Can anyone see anything here I can even work with?
 
Yes i've searched threads, and internet, for 3 days. I've tried literally everything under the sun from doriana guides to every work around imaginable going back to 2012. I cannot find anything wrong. In fact everything was perfect until this week when suddenly hack decided sleep feature is utterly worthless and always instantly wakes up/goes to sleep on infinite loop now.

Here is what a wake loop looks like from two diff types of logs


Here is more verbose log


Believe me I've tried every RTC fix. every patch that's supposed to be there is there. There isn't even a single program open. I even disabled wifi bluetooth airdrop and findmymac. Doesn't stop blueavenger from causing some of the wakes because of apples intrusive airtags mesh network needs to use every apple device without permission. Based on time stamps it could very well be that forcing the RTC alarms. Unfortunately that can't be disabled. Maybe a good feature for RestrictEvents to look into

However google says that even blueavengers shouldn't run forever. But for me it does. Sleep is impossible. Can anyone see anything here I can even work with?
If the system is doing that on a seemingly infinite basis, that’s very wrong.

It could be caused by anything, but I suspect it could be a hardware issue somewhere - systems and neither OSes do not suddenly decide to go crazy. It is likely a piece of hardware that has likely failed or burned out.

I recommend you try and retain the original EFI settings for the system, and using that test and check your systems temperature. Look at what pieces from your hardware may have been damaged. It could be RAM, a flat BIOS battery, damaged motherboard/SSD, overheated CPU or GPU (in which case doing a thermal repaste of either may help).
 
Thermals all fine, I'd catch something that obvious.

already ruled out most of drives and USB by unplugging everything.

also the logs don't indicate hardware cause since it's a software RTC alarm that's causing the wake, usually hardware ones are more indicative. I really suspect the obfuscated apple process is to blame, which makes it near impossible to diagnose unless any users have delt with that before. Which is why I'm hoping someone here has.

I will pull the USB/wifi card from board though as a test to see if FULLY killing bluetooth (not just turning off) solves it (cause that'd be enough to kill BlueAvenger)
 
Hi there.

I think it is worth mentioning that a macOS compatible PCIe wireless/bluetooth combo card with USB header connection can be fully sorted by configuration.

A good candidate for wake from sleep is the USB port on your RX6900XT, assuming it has one. Find out where it is allocated by running the IORegistryExplorer app.

"Port polling" is generally what causes wake-ups.

If your system randomly goes to sleep too, as implied in post #1, then USB is not the issue.
 
i made one discovery. whatever causes wakes doesn’t do it if do not disturb is enable. for 8 hours straight no wakes. dnd squelched whatever task was sending the wake requests. i just do not see a hardware cause is this. some task is going rogue. at least i know i can force it now for bed but i do leave computer for long periods of time during day too. maybe i can set something hacky like a script loop that checks if display off and if so sets dnd.

will also go through notification settings. or anything else i can think of that i know dnd disables.

it doesn’t randomly sleep that it’s doing on idle. it just attempts to go back to sleep after answering the wake requests. only to get a new wake requests immediately after tryin to sleep again. it stays in that loop until i send it an actual user wake requests then it sets idle timer back to 5 min

EDIT:
Just want to add that whatever problem was, self resolved. It was definitely a software task causing it, and eventually it finished what it was doing. What task that was i'll never know since apple ofuscated it. Everything's been smooth again, like before.
 
Last edited:
Status
Not open for further replies.
Back
Top