zoukankan      html  css  js  c++  java
  • 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 设置在电池供电的情况下,关闭网络访问。
  • 相关阅读:
    Nbear讲解 之核心类CodeGenerator
    计算字符串显示的像素
    C# 加密算法[汇总]
    索引器的本质
    Excel[.xls|.xlsx|.csv] 导入 导出
    Spring.Net Ioc 实例
    反射中 BindingFlags标识
    C# 图片操作 常用方法 总结
    iTextSharp 生成pdf Form 实例
    玩转 Route
  • 原文地址:https://www.cnblogs.com/eternityz/p/12269982.html
Copyright © 2011-2022 走看看