mac设置省电

操作一

查看自己电脑的休眠状态,改成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 设置在电池供电的情况下,关闭网络访问。
posted @   未月廿三  阅读(1126)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
阅读排行:
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 零经验选手,Compose 一天开发一款小游戏!
· 通过 API 将Deepseek响应流式内容输出到前端
点击右上角即可分享
微信分享提示