Shutdown issue seems to be fixed - I'm not kidding. Please note that with the small exception of one year, Apple's fix for this issue came ahead of schedule.
Shutdown issue seems to be fixed - I'm not kidding. Please note that with the small exception of one year, Apple's fix for this issue came ahead of schedule.
What about booting up and waking from sleep and login? is that faster too?
I threw together an app that should fix 20-30 second shutdown times. Feedback is appreciated, here it is:
https://www.dropbox.com/s/54k6yodqgdfp1i6/OS X Shutdown Fix.dmg
Important: go to system preferences > security & privacy > turn on downloads from anywhere
Tip: also disable internet sharing, that slows down shutdown time a lot.
UPDATE 6/11: Download the new version using the above link. It takes longer but it will at least work now and may speed up your entire system!
UPDATE 7/4: Download version 1.2 using the link above. There is a new button for if you decide that you want to wait to shut down your mac
Okay, I like to be very cautious about modifying OS system defaults so could you answer a question for me?
Are there any circumstances where your final solution would cause problems (i.e. data corruption)? For instance, I have an operation running in the background that's performing disk I/O, and I forget about it and click shutdown. I know this could potentially cause problems regardless of settings, but would it be a substantially greater risk if using this fast shutdown solution?
As a side note, I have similar slow shutdown issues running under Linux on various machines and I also wrote a modified shutdown script for near instant shutdowns and it works very well there.
My current 10.8.4. Shutdowns take 11 seconds. I don't really have a need to enhance from there, but 3 seconds would be much snappier.
The commands that speed up the shutdown only terminate the same processes that already would have been after the normal 20 seconds, so there won't be any problems
your little app seems to hang, i can't get it to work, have to force quit it every time.
Sorry, I will add that to the OP, it does hang but there is nothing wrong, it is just repairing permissions which will take a LONG time
I threw together an app that should fix 20-30 second shutdown times.
I use the method below for a faster 3 to 4 second shutdown
I still got the problem with 10.8.5 and 2012 cMBP.
"defaults" will change permissions of altered plist files to 600 (and will also change ownership to root if executed as root and the plist file isn't owned by root) which is undesirable in these cases (some system plist files with such permissions will "break" the OS a little).
It's better to use "PlistBuddy":
- adding the ExitTimeOut entry and setting it to 2s:
sudo /usr/libexec/PlistBuddy -c "Add :ExitTimeOut integer 2" /System/Library/LaunchDaemons/com.apple.securityd.plist
- setting the already existing ExitTimeOut entry to 2s:
sudo /usr/libexec/PlistBuddy -c "Set :ExitTimeOut 2" /System/Library/LaunchDaemons/com.apple.securityd.plist
- deleting the ExitTimeOut entry:
sudo /usr/libexec/PlistBuddy -c "Delete :ExitTimeOut" /System/Library/LaunchDaemons/com.apple.securityd.plist
So when doing it this way, no "repair permissions" task should need to be performed afterwards.
To return to default state just use the last (Delete) command to delete the ExitTimeOut entry - it doesn't exist by default (which means the time out is effectively 20s).