refactor(macos): Do not mess with powersettings

This is really weird to reset and the defaults are okay.
This commit is contained in:
Saibotk 2024-04-02 03:27:42 +02:00
parent d0f52a2b1c
commit fb8d6140dd
Signed by: saibotk
GPG key ID: 67585F0065E261D5

View file

@ -178,34 +178,34 @@ sudo systemsetup -settimezone "Europe/Berlin" > /dev/null
###############################################################################
# Enable lid wakeup
sudo pmset -a lidwake 1
# sudo pmset -a lidwake 1
# Restart automatically on power loss
sudo pmset -a autorestart 1
# sudo pmset -a autorestart 1
# Restart automatically if the computer freezes
sudo systemsetup -setrestartfreeze on
# sudo systemsetup -setrestartfreeze on
# Sleep the display after 15 minutes
sudo pmset -a displaysleep 15
# sudo pmset -a displaysleep 15
# Disable machine sleep while charging
sudo pmset -c sleep 0
# sudo pmset -c sleep 0
# 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)
sudo pmset -a standbydelay 86400
# sudo pmset -a standbydelay 86400
# Never go into computer sleep mode
sudo systemsetup -setcomputersleep Off > /dev/null
# sudo systemsetup -setcomputersleep Off > /dev/null
# Hibernation 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
# power failure.
sudo pmset -a hibernatemode 0
# sudo pmset -a hibernatemode 0
# Remove the sleep image file to save disk space
# sudo rm /private/var/vm/sleepimage