refactor(macos): Do not mess with powersettings
This is really weird to reset and the defaults are okay.
This commit is contained in:
parent
d0f52a2b1c
commit
fb8d6140dd
1 changed files with 9 additions and 9 deletions
18
macos/.macos
18
macos/.macos
|
@ -178,34 +178,34 @@ sudo systemsetup -settimezone "Europe/Berlin" > /dev/null
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
# Enable lid wakeup
|
# Enable lid wakeup
|
||||||
sudo pmset -a lidwake 1
|
# sudo pmset -a lidwake 1
|
||||||
|
|
||||||
# Restart automatically on power loss
|
# Restart automatically on power loss
|
||||||
sudo pmset -a autorestart 1
|
# sudo pmset -a autorestart 1
|
||||||
|
|
||||||
# Restart automatically if the computer freezes
|
# Restart automatically if the computer freezes
|
||||||
sudo systemsetup -setrestartfreeze on
|
# sudo systemsetup -setrestartfreeze on
|
||||||
|
|
||||||
# Sleep the display after 15 minutes
|
# Sleep the display after 15 minutes
|
||||||
sudo pmset -a displaysleep 15
|
# sudo pmset -a displaysleep 15
|
||||||
|
|
||||||
# Disable machine sleep while charging
|
# Disable machine sleep while charging
|
||||||
sudo pmset -c sleep 0
|
# sudo pmset -c sleep 0
|
||||||
|
|
||||||
# Set machine sleep to 5 minutes on battery
|
# Set machine sleep to 5 minutes on battery
|
||||||
sudo pmset -b sleep 5
|
# sudo pmset -b sleep 5
|
||||||
|
|
||||||
# Set standby delay to 24 hours (default is 1 hour)
|
# Set standby delay to 24 hours (default is 1 hour)
|
||||||
sudo pmset -a standbydelay 86400
|
# sudo pmset -a standbydelay 86400
|
||||||
|
|
||||||
# Never go into computer sleep mode
|
# Never go into computer sleep mode
|
||||||
sudo systemsetup -setcomputersleep Off > /dev/null
|
# sudo systemsetup -setcomputersleep Off > /dev/null
|
||||||
|
|
||||||
# Hibernation mode
|
# Hibernation mode
|
||||||
# 0: Disable hibernation (speeds up entering sleep mode)
|
# 0: Disable hibernation (speeds up entering sleep mode)
|
||||||
# 3: Copy RAM to disk so the system state can still be restored in case of a
|
# 3: Copy RAM to disk so the system state can still be restored in case of a
|
||||||
# power failure.
|
# power failure.
|
||||||
sudo pmset -a hibernatemode 0
|
# sudo pmset -a hibernatemode 0
|
||||||
|
|
||||||
# Remove the sleep image file to save disk space
|
# Remove the sleep image file to save disk space
|
||||||
# sudo rm /private/var/vm/sleepimage
|
# sudo rm /private/var/vm/sleepimage
|
||||||
|
|
Loading…
Add table
Reference in a new issue