当前位置: 首页 > news >正文

黑苹果睡眠总是自动唤醒(RTC)

黑苹果睡眠总是自动唤醒【RTC】

  • 1. 问题
  • 2. 解决方案
    • 2.1. 查看重启日志
    • 2.2. 配置Disable RTC wake scheduling补丁
  • 3. 后续
  • 4. 参考

1. 问题

黑苹果EFI 更换后,总是在手动 睡眠后,间歇性重启,然后再次睡眠,然后再重启。原因归结为: RTC (Alarm) 导致的重启。

昨天查看了重启日志:

 $ log show --last 1d | grep "Wake reason"                                                                        2024-06-10 22:11:56.210575+0800 0xa4d      Default     0x0                  0      0    kernel: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason **Wake reason**: Host (0x01)^[[A2024-06-11 00:09:09.338214+0800 0x77       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower **Wake reason**: RTC (Alarm)2024-06-11 00:09:09.338215+0800 0x77       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower **Wake reason**: RTC (Alarm)2024-06-11 01:05:48.411265+0800 0x77       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower **Wake reason**: RTC (Alarm)2024-06-11 01:05:48.411382+0800 0x77       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower **Wake reason**: RTC (Alarm)2024-06-11 01:11:19.571070+0800 0x2448c    Default     0x0                  0      0    kernel: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason **Wake reason**: Host (0x01)2024-06-11 01:12:13.142668+0800 0x77       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower **Wake reason**: RTC (Alarm)2024-06-11 01:12:13.142669+0800 0x77       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower **Wake reason**: RTC (Alarm)2024-06-11 02:54:34.413465+0800 0x77       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower **Wake reason**: RTC (Alarm)2024-06-11 02:54:34.413465+0800 0x77       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower **Wake reason**: RTC (Alarm)2024-06-11 04:42:36.814304+0800 0x249e5    Default     0x0                  0      0    kernel: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason **Wake reason**: Host (0x01)2024-06-11 04:43:28.999777+0800 0x77       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower **Wake reason**: RTC (Alarm)2024-06-11 04:43:28.999778+0800 0x77       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower **Wake reason**: RTC (Alarm)2024-06-11 06:25:26.645049+0800 0x24d53    Default     0x0                  0      0    kernel: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason **Wake reason**: Host (0x01)2024-06-11 06:26:20.006974+0800 0x77       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower **Wake reason**: RTC (Alarm)2024-06-11 06:26:20.006975+0800 0x77       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower **Wake reason**: RTC (Alarm)2024-06-11 07:00:04.705977+0800 0x251e6    Default     0x0                  0      0    kernel: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason **Wake reason**: Host (0x01)2024-06-11 07:00:57.574484+0800 0x77       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower **Wake reason**: RTC (Alarm)2024-06-11 07:00:57.574485+0800 0x77       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower **Wake reason**: RTC (Alarm)2024-06-11 07:02:06.175407+0800 0x77       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower **Wake reason**: RTC (Alarm)2024-06-11 07:02:06.175408+0800 0x77       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower **Wake reason**: RTC (Alarm)2024-06-11 08:17:11.543698+0800 0x25c9b    Default     0x0                  0      0    kernel: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason **Wake reason**: Host (0x01)2024-06-11 08:18:04.557374+0800 0x77       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower **Wake reason**: RTC (Alarm)2024-06-11 08:18:04.557375+0800 0x77       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower **Wake reason**: RTC (Alarm)

这个日志我只取了部分,重启次数太多了

2. 解决方案

2.1. 查看重启日志

执行如下命令可以查看最近一天内的重启原因:
log show --last 1d | grep "Wake reason"

如果是RTC 导致重启就可以继续用下面方案

2.2. 配置Disable RTC wake scheduling补丁

image.png
image.png

用opencore添加补丁即可。

1. Base: __ZN8AppleRTC18setupDateTimeAlarmEPK11RTCDateTime
2. Comment: Disable RTC wake scheduling
3. Count: 1
4. Enabled: True
5. Identifier: com.apple.driver.AppleRTC
6. Replace: C3
7. MinKernel: 19.0.0
8. count: 1

注意最后开启enable开关,保存后,重启,观察即可

3. 后续

观察第一天,显然 RTC 导致的自动唤醒问题木有啦!!!

 $ log show --last 1d | grep "Wake reason"2024-06-11 23:21:12.834085+0800 0x77       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower **Wake reason**: ?2024-06-11 23:21:12.834088+0800 0x77       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower **Wake reason**: ?2024-06-12 21:51:22.745014+0800 0x24a4b    Default     0x0                  0      0    kernel: (AppleTopCaseHIDEventDriver) [HID] [ATC] AppleDeviceManagementHIDEventService::processWakeReason **Wake reason**: Host (0x01)

我的黑苹果还会

  1. 睡眠两天后会睡死,然后需要电源键启动,然后会自己再重启一次 – 观察中
  2. 睡死启动后,系统设置不能打开,会奔溃。 – 观察中
  3. 睡眠唤醒后,显示器上的耳机检测不到。-- 其他解决方案

4. 参考

https://osx.cx/sleep-wake-up-solution.html

https://www.bilibili.com/read/cv23475360/

相关文章:

  • JavaEE初阶--网络基本概念
  • 2024年宜春市中职“网络建设与运维”竞赛说明竞赛试题
  • 快速压缩前端项目
  • 【Windchill监听器、队列、排程】
  • is not null 、StringUtils.isNotEmpty和StringUtils.isNotBlank之间的区别?
  • 【技巧】Leetcode 67. 二进制求和【简单】
  • uni-app前端,社区团购系统搭建部署
  • 汽车IVI中控开发入门及进阶(二十八):视频SERDES芯片
  • 【MySQL】在CentOS环境下安装MySQL
  • Qt 6.13
  • 源码编译安装 clang/gcc
  • 查看一个网站是否是用React搭建的
  • 安全等保评测-什么是“等保“?
  • 零基础入门学用Arduino 第三部分(二)
  • Linux DMA-Buf驱动框架
  • 【347天】每日项目总结系列085(2018.01.18)
  • 4. 路由到控制器 - Laravel从零开始教程
  • angular组件开发
  • es6
  • JSONP原理
  • LeetCode541. Reverse String II -- 按步长反转字符串
  • NSTimer学习笔记
  • php的插入排序,通过双层for循环
  • python_bomb----数据类型总结
  • Python代码面试必读 - Data Structures and Algorithms in Python
  • Python实现BT种子转化为磁力链接【实战】
  • React中的“虫洞”——Context
  • spark本地环境的搭建到运行第一个spark程序
  • Terraform入门 - 3. 变更基础设施
  • vue2.0开发聊天程序(四) 完整体验一次Vue开发(下)
  • vue脚手架vue-cli
  • 测试如何在敏捷团队中工作?
  • 大主子表关联的性能优化方法
  • 开发基于以太坊智能合约的DApp
  • 力扣(LeetCode)965
  • 验证码识别技术——15分钟带你突破各种复杂不定长验证码
  • [地铁译]使用SSD缓存应用数据——Moneta项目: 低成本优化的下一代EVCache ...
  • hi-nginx-1.3.4编译安装
  • # Swust 12th acm 邀请赛# [ E ] 01 String [题解]
  • #Java第九次作业--输入输出流和文件操作
  • #在线报价接单​再坚持一下 明天是真的周六.出现货 实单来谈
  • #职场发展#其他
  • (4)(4.6) Triducer
  • (C++20) consteval立即函数
  • (Note)C++中的继承方式
  • (zhuan) 一些RL的文献(及笔记)
  • (二)Eureka服务搭建,服务注册,服务发现
  • (过滤器)Filter和(监听器)listener
  • (剑指Offer)面试题34:丑数
  • (转)全文检索技术学习(三)——Lucene支持中文分词
  • .NET Framework Client Profile - a Subset of the .NET Framework Redistribution
  • .NET 快速重构概要1
  • .NET4.0并行计算技术基础(1)
  • .NET牛人应该知道些什么(2):中级.NET开发人员
  • @Transaction注解失效的几种场景(附有示例代码)