睡眠不稳定求助
各位大佬,我的配置如下:
主板:技嘉]CPU:AMD Ryzen 5 3600
显卡:AMD]声卡:Realtek ALC 1220
有线网卡:Intel]无线网卡:Intel AX200
macOS Sonoma 14.0 Beta 6
睡眠日志如下;
Last login: Sat Aug 26 10:43:03 on ttys000
dd459685379@459685379dePro ~ % log show --start '2023-8-26 00:00:00' --end '2023-8-26 23:59:59' | grep 'Wake reason'
2023-08-26 08:44:46.556892+0800 0x79 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: PWRB (User)
2023-08-26 08:44:46.556894+0800 0x79 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: PWRB (User)
2023-08-26 08:48:45.033869+0800 0x79 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 GPP2 GPP3 GPP4 GPP5 GPP6 GPP7 GPPA GPPB GPPC GPPD GPPE GPPF GP10 GP11 (Alarm)
2023-08-26 08:48:45.033871+0800 0x79 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 GPP2 GPP3 GPP4 GPP5 GPP6 GPP7 GPPA GPPB GPPC GPPD GPPE GPPF GP10 GP11 (Alarm)
2023-08-26 08:52:57.648455+0800 0x79 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: PWRB (User)
2023-08-26 08:52:57.648456+0800 0x79 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: PWRB (User)
2023-08-26 09:08:29.898536+0800 0x79 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: PWRB RTC0 (User)
2023-08-26 09:08:29.898537+0800 0x79 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: PWRB RTC0 (User)
2023-08-26 09:31:25.992583+0800 0x79 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: PWRB (User)
2023-08-26 09:31:25.992585+0800 0x79 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: PWRB (User)
2023-08-26 09:32:35.469356+0800 0x79 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 GPP2 GPP3 GPP4 GPP5 GPP6 GPP7 GPPA GPPB GPPC GPPD GPPE GPPF GP10 GP11 (Alarm)
2023-08-26 09:32:35.469358+0800 0x79 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 GPP2 GPP3 GPP4 GPP5 GPP6 GPP7 GPPA GPPB GPPC GPPD GPPE GPPF GP10 GP11 (Alarm)
2023-08-26 09:33:45.749853+0800 0x79 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: PWRB RTC0 (User)
2023-08-26 09:33:45.749854+0800 0x79 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: PWRB RTC0 (User)
2023-08-26 09:38:27.719320+0800 0x79 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: PWRB (User)
2023-08-26 09:38:27.719321+0800 0x79 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: PWRB (User)
2023-08-26 09:50:51.785711+0800 0x79 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 (Alarm)
2023-08-26 09:50:51.785712+0800 0x79 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 (Alarm)
2023-08-26 10:36:05.209031+0800 0x79 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: PWRB (User)
2023-08-26 10:36:05.209032+0800 0x79 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: PWRB (User)
2023-08-26 10:42:23.492959+0800 0x79 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 (Alarm)
2023-08-26 10:42:23.492960+0800 0x79 Default 0x0 0 0 kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC0 (Alarm)
睡眠很不稳定,睡眠日志中如果唤醒原因是RTC0 (Alarm)就会出现睡了马上醒的问题,我在配置文件Kernel中加入了下面这个patch项,还是没用:
Base: __ZN8AppleRTC18setupDateTimeAlarmEPK11RTCDateTime
Comment: Disable RTC wake scheduling
Count: 1
Enabled: True
Identifier: com.apple.driver.AppleRTC
Replace: C3
试一下把Count: 1
1改成0
我使用这个补丁后每次开机的第一次睡眠就没有RTC0 (Alarm),但唤醒后再次睡眠,就会出现这个了