1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-03-28 21:16:20 +01:00
tldr/pages.zh/osx/pmset.md
bl-ue 8ebd171d6f
*: fix typos reported by Hunspell (#5848)
Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com>
Co-authored-by: Seth Falco <seth@falco.fun>
Co-authored-by: Patrice Denis <patricedenis@users.noreply.github.com>
2021-05-20 16:13:41 -04:00

629 B

pmset

配置 macOS 电源管理设置,就像在系统首选项 > 节能程序中一样. 修改设置的命令必须以 sudo 开头.

  • 显示当前电源管理设置:

pmset -g

  • 显示当前电源和电池电量:

pmset -g batt

  • 当充电器通电时,将显示器设置为从不休眠:

sudo pmset -c displaysleep 0

  • 使用电池电源 15 分钟后将显示器设置为休眠:

sudo pmset -b displaysleep 15

  • 安排计算机在每个工作日上午 9 点自动唤醒:

sudo pmset repeat wake MTWRF 09:00:00

  • 还原为系统默认值:

sudo pmset -a displaysleep 10 disksleep 10 sleep 30 womp 1