一行代码解决macos睡眠偶尔睡死

2021-06-28

alias resetpowerstate="
sudo pmset schedule cancelall
 sudo pmset autopoweroff 0
sudo pmset powernap 0
sudo pmset standby 0
sudo pmset proximitywake 0
sudo pmset tcpkeepalive 0

每次睡眠唤醒 记得 运行下

resetpowerstate

需要输入管理员密码