yes, i can confirm that sleep is fixed with the modified powerd.plist. Two long sleeps (8 hours and 12 hours) with not a single wakeup.
Assume that we must repeat this process after every new install or update, right?On another forum a solution was found by somebody:
#------------------------------------------------------------------------------
Having investigated this further I found that there is a MacOS FeatureFlag for enabling CoreSmartPowerNap in powerd.plist in the system folder /System/Library/FeatureFlags/Domain/
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CoreSmartPowerNap</key>
<dict>
<key>Enabled</key>
<true/>
</dict>
</dict>
</plist>
We cant change this plist directly because the file is in the secure system enclave but another user pointed out that we can override MacOS FeatureFlags by setting in them in the /Library/Preferences/FeatureFlags/Domain/ folder.
I've tried this approach and since implementing I have not seen any CSPNEvaluation wake reasons.
If you want to try this for yourself do the following :-
1. Open Terminal
2. Create the folder structure in terminal with: sudo mkdir -p /Library/Preferences/FeatureFlags/Domain/
3. Copy the above code into a editor and change the boolean flag <true/> to <false/>
4. Save the file as powerd.plist into the new folder: /Library/Preferences/FeatureFlags/Domain/
5. Reboot
#------------------------------------------------------------------------------
Tried and tested this:
1. put the machine into sleep
2. wake it up
3. pmset -g log > pmset.txt.
4. Voila -> no CSPNEvaluation Wake Request for this sleep action
Best regards!
sudo defaults write /Library/Preferences/com.apple.mDNSResponder.plist NoMulticastAdvertisements -bool true
sudo pmset disksleep 0
sudo pmset womp 0
sudo pmset powernap 0
sudo pmset ttyskeepawake 0
sudo pmset tcpkeepalive 1
sudo pmset schedule cancelall
sudo pmset repeat cancel
sudo chflags schg /Library/Preferences/SystemConfiguration/com.apple.AutoWake.plist
sudo mkdir -p /Library/Preferences/FeatureFlags/Domain
sudo cp /System/Library/FeatureFlags/Domain/powerd.plist /Library/Preferences/FeatureFlags/Domain
sudo nano /Library/Preferences/FeatureFlags/Domain/powerd.plist
replace <true/> to <false/>
reboot
pmset -g log | grep "Wake from"
before:
2023-11-20 04:27:14 +0800 Wake Wake from Deep Idle [CDNVA] : due to NUB.SPMI0Sw3IRQ nub-spmi0.0x02 rtc/HID Activity Using AC (Charge:0%) 645 secs
2023-11-20 06:38:01 +0800 Wake Wake from Deep Idle [CDNVA] : due to NUB.SPMI0Sw3IRQ nub-spmi0.0x02 rtc/UserActivity Assertion Using AC (Charge:0%) 614 secs
2023-11-20 08:48:17 +0800 Wake Wake from Deep Idle [CDNVA] : due to NUB.SPMI0Sw3IRQ nub-spmi0.0x02 rtc/HID Activity Using AC (Charge:0%) 615 secs
2023-11-20 10:58:34 +0800 Wake Wake from Deep Idle [CDNVA] : due to NUB.SPMI0Sw3IRQ nub-spmi0.0x02 rtc/HID Activity Using AC (Charge:0%) 615 secs
2023-11-20 13:08:51 +0800 Wake Wake from Deep Idle [CDNVA] : due to NUB.SPMI0Sw3IRQ nub-spmi0.0x02 rtc/HID Activity Using AC (Charge:0%) 615 secs
2023-11-20 15:19:08 +0800 Wake Wake from Deep Idle [CDNVA] : due to NUB.SPMI0Sw3IRQ nub-spmi0.0x02 rtc/HID Activity Using AC (Charge:0%) 615 secs
2023-11-20 17:29:25 +0800 Wake Wake from Deep Idle [CDNVA] : due to NUB.SPMI0Sw3IRQ nub-spmi0.0x02 rtc/HID Activity Using AC (Charge:0%) 615 secs
after:
2023-11-20 18:04:23 +0800 Wake Wake from Deep Idle [CDNVA] : due to SMC.OutboxNotEmpty smc.70070000 usb3 pcie-xhci/UserActivity Assertion Using AC (Charge:0%)
2023-11-21 08:58:51 +0800 Wake Wake from Deep Idle [CDNVA] : due to SMC.OutboxNotEmpty smc.70070000 usb3 pcie-xhci/HID Activity Using AC (Charge:0%) 285 secs
2023-11-21 18:31:38 +0800 Wake Wake from Deep Idle [CDNVA] : due to SMC.OutboxNotEmpty smc.70070000 usb3 pcie-xhci/HID Activity Using AC (Charge:0%)
2023-11-21 20:31:22 +0800 Wake Wake from Deep Idle [CDNVA] : due to SMC.OutboxNotEmpty smc.70070000 usb3 pcie-xhci/HID Activity Using AC (Charge:0%)
2023-11-21 22:40:22 +0800 Wake Wake from Deep Idle [CDNVA] : due to SMC.OutboxNotEmpty smc.70070000 usb3 pcie-xhci/HID Activity Using AC (Charge:0%)
Thanks for the input!Code:sudo defaults write /Library/Preferences/com.apple.mDNSResponder.plist NoMulticastAdvertisements -bool true sudo pmset disksleep 0 sudo pmset womp 0 sudo pmset powernap 0 sudo pmset ttyskeepawake 0 sudo pmset tcpkeepalive 1 sudo pmset schedule cancelall sudo pmset repeat cancel sudo chflags schg /Library/Preferences/SystemConfiguration/com.apple.AutoWake.plist sudo mkdir -p /Library/Preferences/FeatureFlags/Domain sudo cp /System/Library/FeatureFlags/Domain/powerd.plist /Library/Preferences/FeatureFlags/Domain sudo nano /Library/Preferences/FeatureFlags/Domain/powerd.plist replace <true/> to <false/> reboot
mac mini m2 pro w/ thunderbolt external nvme ssd, macos 14.1.1, never encountered an unexpected wakeup again!
Code:pmset -g log | grep "Wake from" before: 2023-11-20 04:27:14 +0800 Wake Wake from Deep Idle [CDNVA] : due to NUB.SPMI0Sw3IRQ nub-spmi0.0x02 rtc/HID Activity Using AC (Charge:0%) 645 secs 2023-11-20 06:38:01 +0800 Wake Wake from Deep Idle [CDNVA] : due to NUB.SPMI0Sw3IRQ nub-spmi0.0x02 rtc/UserActivity Assertion Using AC (Charge:0%) 614 secs 2023-11-20 08:48:17 +0800 Wake Wake from Deep Idle [CDNVA] : due to NUB.SPMI0Sw3IRQ nub-spmi0.0x02 rtc/HID Activity Using AC (Charge:0%) 615 secs 2023-11-20 10:58:34 +0800 Wake Wake from Deep Idle [CDNVA] : due to NUB.SPMI0Sw3IRQ nub-spmi0.0x02 rtc/HID Activity Using AC (Charge:0%) 615 secs 2023-11-20 13:08:51 +0800 Wake Wake from Deep Idle [CDNVA] : due to NUB.SPMI0Sw3IRQ nub-spmi0.0x02 rtc/HID Activity Using AC (Charge:0%) 615 secs 2023-11-20 15:19:08 +0800 Wake Wake from Deep Idle [CDNVA] : due to NUB.SPMI0Sw3IRQ nub-spmi0.0x02 rtc/HID Activity Using AC (Charge:0%) 615 secs 2023-11-20 17:29:25 +0800 Wake Wake from Deep Idle [CDNVA] : due to NUB.SPMI0Sw3IRQ nub-spmi0.0x02 rtc/HID Activity Using AC (Charge:0%) 615 secs after: 2023-11-20 18:04:23 +0800 Wake Wake from Deep Idle [CDNVA] : due to SMC.OutboxNotEmpty smc.70070000 usb3 pcie-xhci/UserActivity Assertion Using AC (Charge:0%) 2023-11-21 08:58:51 +0800 Wake Wake from Deep Idle [CDNVA] : due to SMC.OutboxNotEmpty smc.70070000 usb3 pcie-xhci/HID Activity Using AC (Charge:0%) 285 secs 2023-11-21 18:31:38 +0800 Wake Wake from Deep Idle [CDNVA] : due to SMC.OutboxNotEmpty smc.70070000 usb3 pcie-xhci/HID Activity Using AC (Charge:0%) 2023-11-21 20:31:22 +0800 Wake Wake from Deep Idle [CDNVA] : due to SMC.OutboxNotEmpty smc.70070000 usb3 pcie-xhci/HID Activity Using AC (Charge:0%) 2023-11-21 22:40:22 +0800 Wake Wake from Deep Idle [CDNVA] : due to SMC.OutboxNotEmpty smc.70070000 usb3 pcie-xhci/HID Activity Using AC (Charge:0%)
the usb3 is my mouse
Thanks for the clarification! Much appreciated.The -a, -b, -c, -u flags determine whether the settings apply to battery ( -b ), charger (wall power) ( -c ), UPS ( -u ) or all ( -a ).
Set tcpkeepalive to 1 will not trigger unexpected wakeup and to 0 may break Find-My-Mac.
Concerning CSPNEvaluation: Apple didn't fixed anything. I meant that the powerd.plist in the user space was not removed by the update.
I wold give the procedure summarized by stiffy a try. Chances are very good you can resolve the sleep issues. It is just a couple of minutes, while downgrading is much more time consuming and you do not get the benefits of the new OS.In the same boat. 2020 i5 MacBook Pro has no sleep issues but this upgrade wakes up all the time and although slow drain it’s definately draining faster without the sleep. I’m not a technical as you folks so thinking of downgrading.
Question. If I go back to Ventura I have to install it clean and use migration assistant and use a recent Time Machine backup. Should the Time Machine backup match the correct macOS? Thanks.
Is it just a copy and paste into terminal?I wold give the procedure summarized by stiffy a try. Chances are very good you can resolve the sleep issues. It is just a couple of minutes, while downgrading is much more time consuming and you do not get the benefits of the new OS.
For Migration Assistant:If I go back to Ventura I have to install it clean and use migration assistant and use a recent Time Machine backup. Should the Time Machine backup match the correct macOS?
yes it is, except editing the powerd.plist file with nano. If you are not familiar with nano you may use TextEdit.app for convinience. It may also better to first copy powerd.plist to your Desktop and try to edit it before copy it to the final destination. Double check that it is correct.In the same boat. 2020 i5 MacBook Pro has no sleep issues but this upgrade wakes up all the time and although slow drain it’s definately draining faster without the sleep. I’m not a technical as you folks so thinking of downgrading.
Question. If I go back to Ventura I have to install it clean and use migration assistant and use a recent Time Machine backup. Should the Time Machine backup match the correct macOS? Thanks.
So I’ve realised to downgrade I must create a bootable disk with Venture loaded on. Is this correct? I can’t see any other way.For Migration Assistant:
Best: TM backup version matches installed macOS.
OK: TM backup version is older than installed macOS - get tricky when much older.
Not good: TM backup version is newer than installed. Old macOS does not know everything about future macOS and its backup - in many cases it will not be able to read the newer TM disk (e.g. if APFS TM format has changed).
Exception: The underlying differences between macOS 13.6 and 14.0 are fairly small, so likely that macOS 13 Migration Assistant will be mostly successful recovering a macOS 14.0 backup. You could test this
When you are fully sleeping, your body is alert to some stimuli and can wake you very rapidly. Macs are the same. In both cases that is a good thing.mac is not fully sleeping
tcpkeepalive
to zero.I did everything that is mentioned below:When you are fully sleeping, your body is alert to some stimuli and can wake you very rapidly. Macs are the same. In both cases that is a good thing.
If you want to reduce network stimuli, settcpkeepalive
to zero.