# 查询日志
pmset -g log | grep -e "Wake from" -e "DarkWake" -e "due to"
# 查看当前所有睡眠计划
pmset -g custom
# 设置使用电池和连接充电器时均关闭powernap
sudo pmset -a powernap 0
# 设置使用电池和连接充电器时均关闭tcp_keep_alive
sudo pmset -a tcpkeepalive 0
Reference
标签:powernap,时均,pmset,sudo,休眠,设置,MacBook From: https://www.cnblogs.com/hongyugao/p/18016321