按住这三个按键 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
结果为空,定时任务已删除