0
篇帖子
通过终端命令查询最近1天内的唤醒情况log show --last 1d | grep "Wake reason"
可以清晰的看到主要唤醒原因是kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC (Alarm)
这也是网上比较常见的异常唤醒原因,网上搜索之后得出解决方法,就是往引导配置里面添加一下补丁。
需要用到OpenCore Configurator
根据对应的opencore版本下载对应的版本即可。
根据图片中的位置将以下补丁代码一一对应添加即可
Base: __ZN8AppleRTC18setupDateTimeAlarmEPK11RTCDateTime
Comment: Disable RTC wake scheduling
Count: 1
Enabled: True
Identifier: com.apple.driver.AppleRTC
Replace: C3
或者直接把下面的代码复制粘贴到config.plist
文件中
<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>19.0.0</string>
<key>Replace</key>
<data>ww==</data>
<key>ReplaceMask</key>
<data></data>
<key>Skip</key>
<integer>0</integer>
</dict>
</array>
保存配置文件重启观察一天之后日志中的唤醒记录是否已经正常
本博客内所有原创和翻译的文章的版权归本人所有,允许第三方转载,但转载时请务必保留作者名,并注明出处链接,否则本人将保留追究其法律责任的权利。
「人生在世,留句话给我吧」