2017-06-04 20:47:01 +00:00
|
|
|
# pmset
|
2020-11-18 16:24:28 +00:00
|
|
|
# Configure macOS power management settings, as one might do in
|
|
|
|
# System Preferences > Energy Saver.
|
2017-06-04 20:47:01 +00:00
|
|
|
# Commands that modify settings must begin with sudo (Mac OS X)
|
2017-06-04 14:35:24 +00:00
|
|
|
|
2017-06-04 20:47:01 +00:00
|
|
|
# Display the current power management settings:
|
|
|
|
pmset -g
|
2017-06-04 14:35:24 +00:00
|
|
|
|
2017-06-04 20:47:01 +00:00
|
|
|
# Display the current power source and battery levels:
|
|
|
|
pmset -g batt
|
2017-06-04 14:35:24 +00:00
|
|
|
|
2017-06-04 20:47:01 +00:00
|
|
|
# Set display to never sleep when on charger power:
|
|
|
|
sudo pmset -c displaysleep 0
|
2017-06-04 14:35:24 +00:00
|
|
|
|
2017-06-04 20:47:01 +00:00
|
|
|
# Set display to sleep after 15 minutes when on battery power:
|
|
|
|
sudo pmset -b displaysleep 15
|
2017-06-04 14:35:24 +00:00
|
|
|
|
2017-06-04 20:47:01 +00:00
|
|
|
# Schedule computer to automatically wake up every weekday at 9 AM:
|
|
|
|
sudo pmset repeat wake MTWRF 09:00:00
|
2017-06-04 14:35:24 +00:00
|
|
|
|
2017-06-04 20:47:01 +00:00
|
|
|
# Restore to system defaults:
|
|
|
|
sudo pmset -a displaysleep 10 disksleep 10 sleep 30 womp 1
|