pmset: add sudo to commands that change settings.

This commit is contained in:
Jonathan Boiser 2016-10-02 09:58:21 -05:00
parent 54e18a150a
commit 680fff35ef

View File

@ -1,7 +1,7 @@
# pmset
> Configure macOS power management settings, as one might do in System Preferences > Energy Saver.
> These commands must be run as root, i.e. starting with `sudo`.
> Some of these commands must be run as root, i.e. starting with `sudo`.
- Display the current power management settings:
@ -13,16 +13,16 @@
- Set display to never sleep when on charger power:
`pmset -c displaysleep 0`
`sudo pmset -c displaysleep 0`
- Set display to sleep after 15 minutes when on battery power:
`pmset -b displaysleep 15`
`sudo pmset -b displaysleep 15`
- Schedule computer to automatically wake up every weekday at 9 AM:
`pmset repeat wake MTWRF 09:00:00`
`sudo pmset repeat wake MTWRF 09:00:00`
- Restore to system defaults:
`pmset -a displaysleep 10 disksleep 10 sleep 30 womp 1`
`sudo pmset -a displaysleep 10 disksleep 10 sleep 30 womp 1`