Merge pull request #1102 from jonboiser/pmset

pmset: add page
waldyrious/alt-syntax
Waldir Pimenta 2016-10-02 19:03:49 +01:00 committed by GitHub
commit adcdf62ba3
1 changed files with 28 additions and 0 deletions

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

@ -0,0 +1,28 @@
# pmset
> Configure macOS power management settings, as one might do in System Preferences > Energy Saver.
> Commands that modify settings must begin with `sudo`.
- Display the current power management settings:
`pmset -g`
- Display the current power source and battery levels:
`pmset -g batt`
- Set display to never sleep when on charger power:
`sudo pmset -c displaysleep 0`
- Set display to sleep after 15 minutes when on battery power:
`sudo pmset -b displaysleep 15`
- Schedule computer to automatically wake up every weekday at 9 AM:
`sudo pmset repeat wake MTWRF 09:00:00`
- Restore to system defaults:
`sudo pmset -a displaysleep 10 disksleep 10 sleep 30 womp 1`