https://mp.weixin.qq.com/s/l59ZNpE8bBVf0o927Gi6YQ
将 Mac 关机。
在内建键盘上,按住以下所有按键。Mac 可能会开机。
按住这三个按键 7 秒钟,然后在不松开这些按键的情况下按住电源按钮。如果 Mac 处于开机状态,它将在你按住这些按键时关机。
通过重置 SMC,可以解决某些与电源、电池、风扇和其他功能相关的问题。本文仅适用于配备 Intel 处理器的 Mac 电脑。
pmset -g log|grep -e "sleep" -e "wake" -e "wake request" -e "waketime"
看到有如下:
2024-01-07 09:11:44 +0800 Assertions PID 83447(coreaudiod) Released PreventUserIdleDisplaySleep "com.apple.audio.context373.preventuseridledisplaysleep" 36:43:28 id:0x0x500009c9a [System: DeclUser kDisp]
2024-01-07 09:11:44 +0800 Assertions PID 83447(coreaudiod) Released PreventUserIdleSystemSleep "com.apple.audio.context373.preventuseridlesleep" 36:43:28 id:0x0x100009c88 [System: DeclUser kDisp]
2024-01-07 09:11:44 +0800 Assertions PID 83447(coreaudiod) Released PreventUserIdleDisplaySleep "com.apple.audio.context374.preventuseridledisplaysleep" 36:43:28 id:0x0x500009c8f [System: DeclUser kDisp]
2024-01-07 09:11:44 +0800 Assertions PID 83447(coreaudiod) Released PreventUserIdleSystemSleep "com.apple.audio.context374.preventuseridlesleep" 36:43:28 id:0x0x100009c84 [System: DeclUser kDisp]
pmset -g sched
sudo pmset schedule cancelall
pmset -g sched
结果为空,定时任务已删除
查看“活动监视器->能耗->防止睡眠”列表下是否存在应用禁用了系统睡眠情况,如下图所示
若存在此情况请进入应用设置关闭此选项或者功能;