From a3f91f67e07b6b31760b52320e0e890f93ff4e97 Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Sat, 2 Nov 2013 17:30:49 +0100 Subject: .osx: Add SSD-specific tweaks Source: http://forums.macrumors.com/showthread.php?t=1505922 --- .osx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.osx b/.osx index f092d01..2eca980 100755 --- a/.osx +++ b/.osx @@ -106,6 +106,26 @@ defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1 # Disable Notification Center and remove the menu bar icon launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist 2> /dev/null +############################################################################### +# SSD-specific tweaks # +############################################################################### + +# Disable local Time Machine snapshots +sudo tmutil disablelocal + +# Disable hibernation (speeds up entering sleep mode) +sudo pmset -a hibernatemode 0 + +# Remove the sleep image file to save disk space +sudo rm /Private/var/vm/sleepimage +# Create a zero-byte file instead… +sudo touch /Private/var/vm/sleepimage +# …and make sure it can’t be rewritten +sudo chflags uchg /Private/var/vm/sleepimage + +# Disable the sudden motion sensor as it’s not useful for SSDs +sudo pmset -a sms 0 + ############################################################################### # Trackpad, mouse, keyboard, Bluetooth accessories, and input # ############################################################################### -- cgit v1.2.3