mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-12-27 10:52:13 +03:00
pmset: add sudo
to commands that change settings.
This commit is contained in:
parent
54e18a150a
commit
680fff35ef
@ -1,7 +1,7 @@
|
|||||||
# pmset
|
# pmset
|
||||||
|
|
||||||
> Configure macOS power management settings, as one might do in System Preferences > Energy Saver.
|
> 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:
|
- Display the current power management settings:
|
||||||
|
|
||||||
@ -13,16 +13,16 @@
|
|||||||
|
|
||||||
- Set display to never sleep when on charger power:
|
- 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:
|
- 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:
|
- 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:
|
- 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`
|
||||||
|
Loading…
Reference in New Issue
Block a user