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

2024-06-12 23:36

本文主要是介绍黑苹果睡眠总是自动唤醒(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/

这篇关于黑苹果睡眠总是自动唤醒(RTC)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1055658

相关文章

Python实现微信自动锁定工具

《Python实现微信自动锁定工具》在数字化办公时代,微信已成为职场沟通的重要工具,但临时离开时忘记锁屏可能导致敏感信息泄露,下面我们就来看看如何使用Python打造一个微信自动锁定工具吧... 目录引言:当微信隐私遇到自动化守护效果展示核心功能全景图技术亮点深度解析1. 无操作检测引擎2. 微信路径智能获

IDEA自动生成注释模板的配置教程

《IDEA自动生成注释模板的配置教程》本文介绍了如何在IntelliJIDEA中配置类和方法的注释模板,包括自动生成项目名称、包名、日期和时间等内容,以及如何定制参数和返回值的注释格式,需要的朋友可以... 目录项目场景配置方法类注释模板定义类开头的注释步骤类注释效果方法注释模板定义方法开头的注释步骤方法注

pytorch自动求梯度autograd的实现

《pytorch自动求梯度autograd的实现》autograd是一个自动微分引擎,它可以自动计算张量的梯度,本文主要介绍了pytorch自动求梯度autograd的实现,具有一定的参考价值,感兴趣... autograd是pytorch构建神经网络的核心。在 PyTorch 中,结合以下代码例子,当你

Python如何自动生成环境依赖包requirements

《Python如何自动生成环境依赖包requirements》:本文主要介绍Python如何自动生成环境依赖包requirements问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑... 目录生成当前 python 环境 安装的所有依赖包1、命令2、常见问题只生成当前 项目 的所有依赖包1、

Spring Boot项目中结合MyBatis实现MySQL的自动主从切换功能

《SpringBoot项目中结合MyBatis实现MySQL的自动主从切换功能》:本文主要介绍SpringBoot项目中结合MyBatis实现MySQL的自动主从切换功能,本文分步骤给大家介绍的... 目录原理解析1. mysql主从复制(Master-Slave Replication)2. 读写分离3.

微信公众号脚本-获取热搜自动新建草稿并发布文章

《微信公众号脚本-获取热搜自动新建草稿并发布文章》本来想写一个自动化发布微信公众号的小绿书的脚本,但是微信公众号官网没有小绿书的接口,那就写一个获取热搜微信普通文章的脚本吧,:本文主要介绍微信公众... 目录介绍思路前期准备环境要求获取接口token获取热搜获取热搜数据下载热搜图片给图片加上标题文字上传图片

SpringBoot中封装Cors自动配置方式

《SpringBoot中封装Cors自动配置方式》:本文主要介绍SpringBoot中封装Cors自动配置方式,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录SpringBoot封装Cors自动配置背景实现步骤1. 创建 GlobalCorsProperties

idea中创建新类时自动添加注释的实现

《idea中创建新类时自动添加注释的实现》在每次使用idea创建一个新类时,过了一段时间发现看不懂这个类是用来干嘛的,为了解决这个问题,我们可以设置在创建一个新类时自动添加注释,帮助我们理解这个类的用... 目录前言:详细操作:步骤一:点击上方的 文件(File),点击&nbmyHIgsp;设置(Setti

一文详解SQL Server如何跟踪自动统计信息更新

《一文详解SQLServer如何跟踪自动统计信息更新》SQLServer数据库中,我们都清楚统计信息对于优化器来说非常重要,所以本文就来和大家简单聊一聊SQLServer如何跟踪自动统计信息更新吧... SQL Server数据库中,我们都清楚统计信息对于优化器来说非常重要。一般情况下,我们会开启"自动更新

Flask 验证码自动生成的实现示例

《Flask验证码自动生成的实现示例》本文主要介绍了Flask验证码自动生成的实现示例,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习... 目录生成图片以及结果处理验证码蓝图html页面展示想必验证码大家都有所了解,但是可以自己定义图片验证码