1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-09 08:15:41 +02:00

pmset: add Chinese translation

This commit is contained in:
wizarot 2019-03-13 11:30:40 +08:00 committed by Owen Voke
parent 0e91797ef6
commit b73c42a50a

28
pages.zh/osx/pmset.md Normal file
View file

@ -0,0 +1,28 @@
# 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`