操作一
查看自己电脑的休眠状态,改成25可以解决待机耗电的问题
pmset -g
sudo pmset -a hibernatemode 25
以下是苹果电脑的几种休眠状态,
hibernatemode=0
by default is supported on desktops. The system will not back memory up to persistent storage. The system must wake from the contents of the memory (RAM). The system will lose context on power loss. Historically, this is plain old sleep.
sudo pmset -a hibernatemode 0
hibernatemode=3
by default is supported on portables or laptops. The system will store a copy of memory to persistent storage (the disk), and will power memory during sleep. The system will wake from memory, unless a power loss forces it to restore from disk image.
sudo pmset -a hibernatemode 3
hibernatemode=25
is only settable via pmset. The system will store a copy of memory to persistent storage (the disk), and will remove power to memory. The system will restore from disk image. If you want hibernation—slower sleeps, slower wakes, and better battery life you should use this setting.
操作二
- 蓝牙偏好设置 /高级 /去掉勾选「允许蓝牙设备唤醒这台电脑」
- 系统偏好设置 /节能 /电源适配器下, 去掉勾选「唤醒以供 Wi-Fi 网络访问」
- 系统偏好设置 /节能 /电池下,先勾选「电池供电时启用 Power Nap 」,再去掉勾选该选项,此举为了解决 macOS 存在的可能性的 Bug,看似未勾选,实际上是勾选的可能性存在的 Bug。这个 Bug 会导致在用电池睡眠的时候依然在定期唤醒访问 Wi-Fi。
- sudo pmset -b tcpkeepalive 0 设置在电池供电的情况下,关闭网络访问。