Ventura 睡眠后半夜随机唤醒问题解决
升级到 macOS Ventura 以后,黑苹果睡眠以后老是半夜随机唤醒,然后过一会儿又自动睡眠,挺莫名其妙的问题。查了下发现已经有很多人遇到这个问题了。打开“System Report”查看电源选项:发现在“Power Events” > "Next Scheduled Events"下有几项电源计划事件,注明了 PID、事件类型、计划调用者、执行时间、用户可见性等信息。看时间发现确实符合自己的问题现象,其中就有半夜里唤醒的事件。继续搜索,了解到了“pmset”命令,顾名思义就是“power manager set”。
在终端查看所有电源计划事件命令:
pmset -g sched
Scheduled power events:
wake at 11/28/2022 20:27:37 by 'com.apple.alarm.user-visible-com.apple.CalendarNotification.EKTravelEngine.periodicRefreshTimer'
wake at 11/28/2022 22:51:06 by 'com.apple.alarm.user-visible-com.apple.acmd.alarm'
wake at 11/29/2022 03:10:53 by 'com.apple.alarm.user-visible-com.apple.CalendarNotification.EKTravelEngine.periodicRefreshTimer'
wake at 11/29/2022 18:58:23 by 'com.apple.alarm.user-visible-com.apple.acmd.alarm'
可以看见和开头截图显示的一致。
取消所有电源计划事件命令:
sudo pmset schedule cancelall
输入密码后成功执行,就取消成功了。至此,问题解决。 也取消计划试试 后面还会重新出现这个计划。
具体解决方法是加个patch补丁
key>Patch</key>
<array>
<dict>
<key>Arch</key>
<string>Any</string>
<key>Base</key>
<string>__ZN8AppleRTC18setupDateTimeAlarmEPK11RTCDateTime</string>
<key>Comment</key>
<string>Disable RTC wake scheduling</string>
<key>Count</key>
<integer>1</integer>
<key>Enabled</key>
<true/>
<key>Find</key>
<data></data>
<key>Identifier</key>
<string>com.apple.driver.AppleRTC</string>
<key>Limit</key>
<integer>0</integer>
<key>Mask</key>
<data></data>
<key>MaxKernel</key>
<string></string>
<key>MinKernel</key>
<string></string>
<key>Replace</key>
<data>ww==</data>
<key>ReplaceMask</key>
<data></data>
<key>Skip</key>
<integer>0</integer>
</dict>
</array> 好帖留名备用 感谢老哥了,这个好像是 OpenCore 默认自带但是关闭的那个patch吧 一直在找, 晚上回家试试, 大佬牛逼 对的,默认是自带的 Replace那里应该是填写“C3”? 关闭之后重启会再次出现,不想打补丁,所以等系统修复或者open core修复吧 我的笔记本睡眠唤醒偶尔黑屏,键盘灯亮的,可以输入密码进入系统,12的系统也一样,试一下咯