台式机睡眠间断性唤醒问题,AMD,OC加入__ZN8补丁解决
本帖最后由 qwert6081 于 2024-10-21 13:27 编辑求助这种问题怎么设置pmsetcsm@CSMdeMac ~ % pmset -g customAC Power: Sleep On Power Button 1 standbydelayhigh 86400 standbydelaylow 86400 standby 0 proximitywake 0 ttyskeepawake 0 hibernatemode 0 powernap 0 gpuswitch 2 hibernatefile /var/vm/sleepimage highstandbythreshold 50 displaysleep 10 womp 0 networkoversleep 0 sleep 0 disksleep 10csm@CSMdeMac ~ % pmset -g log | grep -e "Wake from" -e "DarkWake" -e "due to"2023-09-23 18:07:58 +0800 Sleep Entering Sleep state due to 'Software Sleep pid=172': Using AC (Charge:0%) 2023-09-23 19:57:42 +0800 DarkWake DarkWake from Normal Sleep : due to M2_1 GPP1 GPP3 GPP4 GPP5 GPP6 GPP7 X162 GPPA GPPB GPPC GPPD GPPE GPPF PX11 PX12/ Using AC (Charge:0%) 1 secs 2023-09-23 19:57:43 +0800 Wake DarkWake to FullWake from Normal Sleep : due to HID Activity Using AC (Charge:0%) 2023-09-23 22:42:57 +0800 Sleep Entering Sleep state due to 'Software Sleep pid=172': Using AC (Charge:0%) 2023-09-24 00:43:45 +0800 DarkWake DarkWake from Normal Sleep : due to RTC0/Maintenance Using AC (Charge:0%) 47 secs 2023-09-24 00:44:32 +0800 Sleep Entering Sleep state due to 'Maintenance Sleep': Using AC (Charge:0%) 2023-09-24 01:44:47 +0800 DarkWake DarkWake from Normal Sleep : due to RTC0/Maintenance Using AC (Charge:0%) 45 secs 2023-09-24 01:45:32 +0800 Sleep Entering Sleep state due to 'Maintenance Sleep': Using AC (Charge:0%) 2023-09-24 02:11:50 +0800 DarkWake DarkWake from Normal Sleep : due to RTC0/Maintenance Using AC (Charge:0%) 45 secs 2023-09-24 02:12:35 +0800 Sleep Entering Sleep state due to 'Maintenance Sleep': Using AC (Charge:0%) 2023-09-24 04:12:55 +0800 DarkWake DarkWake from Normal Sleep : due to RTC0/Maintenance Using AC (Charge:0%) 46 secs 2023-09-24 04:13:41 +0800 Sleep Entering Sleep state due to 'Maintenance Sleep': Using AC (Charge:0%) 2023-09-24 05:18:26 +0800 DarkWake DarkWake from Normal Sleep : due to RTC0/Maintenance Using AC (Charge:0%) 45 secs 2023-09-24 05:19:11 +0800 Sleep Entering Sleep state due to 'Maintenance Sleep': Using AC (Charge:0%) 2023-09-24 07:19:27 +0800 DarkWake DarkWake from Normal Sleep : due to RTC0/Maintenance Using AC (Charge:0%) 45 secs 2023-09-24 07:20:12 +0800 Sleep Entering Sleep state due to 'Maintenance Sleep': Using AC (Charge:0%) 2023-09-24 09:20:28 +0800 DarkWake DarkWake from Normal Sleep : due to RTC0/Maintenance Using AC (Charge:0%) 45 secs 2023-09-24 09:21:13 +0800 Sleep Entering Sleep state due to 'Maintenance Sleep': Using AC (Charge:0%) 2023-09-24 10:24:55 +0800 DarkWake DarkWake from Normal Sleep : due to RTC0/Maintenance Using AC (Charge:0%) 46 secs 2023-09-24 10:25:41 +0800 Sleep Entering Sleep state due to 'Maintenance Sleep': Using AC (Charge:0%) 2023-09-24 11:28:01 +0800 DarkWake DarkWake from Normal Sleep : due to M2_1 GPP1 GPP3 GPP4 GPP5 GPP6 GPP7 X162 GPPA GPPB GPPC GPPD GPPE GPPF PX11 PX12/ Using AC (Charge:0%) 2 secs 2023-09-24 11:28:03 +0800 Wake DarkWake to FullWake from Normal Sleep : due to HID Activity Using AC (Charge:0%)
查看唤醒日志
log show --last 1d |grep "Wake reason"
OC加入__ZN8补丁解决
| com.apple.driver.AppleRTC | __ZN8AppleRTC18setupDateTimeAlarmEPK11RTCDateTime | Disable RTC wake scheduling | 1 | true || 0 || C3 || 0 ||| x86_64 |
唤醒分析
查看从开机以来的睡眠/唤醒次数:
1
pmset -g stats
Copy
输出的结果:
字段 注释
Sleep Count 睡眠次数
Dark Wake Count 后台唤醒次数(不亮屏)
User Wake Count 亮屏唤醒次数(通常是用户手动唤醒)
查看详细后台唤醒记录:
1
pmset -g log | grep -e "Wake from" -e "DarkWake" -e "due to" RTC0唤醒,多半是没有关闭电源小息,可以检查一下 启用
Kernel-Patch-
__ZN8AppleRTC18setupDateTimeAlarmEPK11RTCDateTim 我也总是出现 RTC0 的唤醒,把那个小憩关掉就好了,不过影响不大,本来就是定期唤醒更新内容的,比如睡着后更新 app 啊获取邮件啊之类的,无所谓了。。。醒了会自动睡眠的 一样 隔一段时间唤醒 然后又自动睡眠了 最后问题解决了吗? 同样问题学习一下 你是笨鱼 发表于 2023-9-24 13:57 https://bbs.pcbeta.com/static/image/common/back.gif
RTC0唤醒,多半是没有关闭电源小息,可以检查一下
一番折腾,貌似睡的踏实了
sudo pmset proximitywake 0 liao100 发表于 2023-9-25 09:50 https://bbs.pcbeta.com/static/image/common/back.gif
最后问题解决了吗?
一番折腾,貌似睡的踏实了,关闭小息
sudo pmset proximitywake 0 teniubi250 发表于 2023-9-25 09:40 https://bbs.pcbeta.com/static/image/common/back.gif
一样 隔一段时间唤醒 然后又自动睡眠了
一番折腾,貌似睡的踏实了,试试
sudo pmset proximitywake 0 gujiangjiang 发表于 2023-9-24 20:54 https://bbs.pcbeta.com/static/image/common/back.gif
我也总是出现 RTC0 的唤醒,把那个小憩关掉就好了,不过影响不大,本来就是定期唤醒更新内容的,比如睡着后 ...
主要是风扇硬盘夜里抽风
一番折腾,貌似睡的踏实了,试试
sudo pmset proximitywake 0 hasimu 发表于 2023-9-24 14:06 https://bbs.pcbeta.com/static/image/common/back.gif
启用
Kernel-Patch-
__ZN8AppleRTC18setupDateTimeAlarmEPK11RTCDateTim
这个布丁代码有点高级,不会打{:5_264:}
调整了一下别的参数貌似正常了。 qwert6081 发表于 2023-9-26 18:37 https://bbs.pcbeta.com/static/image/common/back.gif
这个布丁代码有点高级,不会打
调整了一下别的参数貌似正常了。
这个补丁不用打,opencore自带启用就可以,开启小息启用此补丁也不耽误备份也不会自动唤醒。 hasimu 发表于 2023-9-26 19:56 https://bbs.pcbeta.com/static/image/common/back.gif
这个补丁不用打,opencore自带启用就可以,开启小息启用此补丁也不耽误备份也不会自动唤醒。
2023-09-27 09:00:03 +0800 DarkWake DarkWake from Normal Sleep : due to RTC0/Maintenance Using AC (Charge:79%) 42 secs
2023-09-27 09:00:45 +0800 Sleep Entering Sleep state due to 'Maintenance Sleep': Using AC (Charge:79%) 1382 secs
2023-09-27 09:23:47 +0800 DarkWake DarkWake from Normal Sleep : due to RTC0/Maintenance Using AC (Charge:79%) 47 secs
2023-09-27 09:24:34 +0800 Sleep Entering Sleep state due to 'Maintenance Sleep': Using AC (Charge:79%) 2450 secs
2023-09-27 10:05:24 +0800 Wake
奇怪的是,我这个机型就没有小憩的功能,不知道为啥也会被RTC0唤醒。。。 qwert6081 发表于 2023-9-26 18:31 https://bbs.pcbeta.com/static/image/common/back.gif
一番折腾,貌似睡的踏实了,关闭小息
sudo pmset proximitywake 0
学习了,记录一下 学习了,感谢楼主,我的也是这样 学习了,感谢楼主,我的也是这样 为什么我的只能机箱面板可以唤醒,鼠标、键盘都不可以唤醒? hasimu 发表于 2023-9-24 14:06 https://i.pcbeta.com/static/image/common/back.gif
启用
Kernel-Patch-
__ZN8AppleRTC18setupDateTimeAlarmEPK11RTCDateTim
为什么我找不到这个呢
页:
[1]
2