Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Mavericks very slow shutdown, how to fix it?

Since I updated my 13' late 2012 MacbookPro to OSX Mavericks it won't shut down at all or it takes extremely long (about 1 hour!). Someone any idea how to solve this problem? The only options for me at the moment ar shutting the system down by holding the shutdown/boot button or just leaving my Macbook on all the time, which isn't quite nice 😟.


Hope you guys can help me!

MacBook Pro (13-inch Mid 2012), OS X Mavericks (10.9), Slow Shutdown Mavericks MacBook Pro

Posted on Oct 25, 2013 2:35 PM

Reply
23 replies

Jun 5, 2017 6:17 AM in response to dcnicholls

Hi,


it's a few years since you posted this and hope you're still on the Apple Communities site. I used your fix above for my Mavericks and it worked for the AOSNotificationOSX, it now Exits in less than 2 seconds instead of 20. However I have another process that is still taking 20 seconds to Exit and cannot find how to speed it up. It's the com.apple.launchd.peruser.501 and I've looked all over the internet for a way to locate and shut this down quickly.


I tried this and then restarted: sudo defaults write /private/var/log/com.apple.launchd.peruser.501 ExitTimeOut -int 2


this is where peruser.501 is located (Show in Finder from Console). Maybe this isn't the process, just a log?


After my last shutdown the launchd-shutdown.system.log says:

20013925 com.apple.launchd 1 com.apple.launchd.peruser.501 177 Job exited while dirty.


20014352 com.apple.launchd 1 com.apple.launchd.peruser.501 177 Exited 20.001472 seconds after the first signal was sent

Do you have any suggestions?


Many thanks in advance,

Darren.

Oct 25, 2013 2:47 PM in response to Job_vW

Check Activity Monitor (it's in Applications/Utilities) and see if some process is refusing to shut down.


There may be Spotlight Indexing going on, which can take a while to complete after a new install. This should resolve when the indexing is done.


Do you have any antivirus software, "enhancers", "cleaners", "utilities", or other crapware installed?


Try a safe boot. The safe boot boots with only Apple software. If the safe boot elimanates the symptom, then the problem is some third-party software that you have installed. Mac OS X: What is Safe Boot, Safe Mode?


Boot into your recovery partition and repair your hard drive. While you're there, repair permissions too. When to Run First Aid in Mountain Lion's Disk Utility - For Dummies (the title of the link is for ML, but it applies to Mavericks too).

Jan 4, 2014 5:34 PM in response to Job_vW

I have done 2 clean reinstalls of Maverick, without installing any additional software other than the OS X updates. The problem of slow log outs and slow shut down persists.


The problem starts when you initially sign in to iCloud with Maverick. After signing in the slow log out persists even after signing out of iCloud and Intenet accounts.


This same issue occurs on 3 of out Apple machines: Mac-Mini, Mac Book Pro & iMac


Apple needs to fix this issue!

Jan 11, 2014 12:28 PM in response to Job_vW

This was a constant problem with my 2008 unibody macbook and 2012 macbook pro. Both running on SSD with maxed out memory & trim enabled. It was very annoying as it was faster on Mountain lion. First tried upgrading ML to Mavericks, but no luck. Then did few clean installs, no luck. Next, did a network re/install from the recovery still no luck. Tried all the hacks like safe boot, disk repair, permission repair and with out even opening mac Mail. None of them worked out. From the clues that I got from BBQ Man posting, I did a clean install of Mavericks and then in the first boot I did not set iCloud, just setup my use accound by hand. Skipped all iCould related stuff. Then did all updates and when everything was up to speed I enabled iCould+Mail+Find my mac and etc. For some reason this combination worked out very well for me.

Hopefully, this stays till the next good release of OSX

Jan 12, 2014 2:58 AM in response to aplegediya

I am glad you were able to produce a better working install like I. So far I have reinstalled Maverick this same way (clean install and no iCloud during setup or install) on a 2012 MacBook Pro and a 2012 Mini with no known issues/good results as far as no delays in log out/in & shut down. I failed to mention I do a permissions repair after the reinstall and all updates are completed. During the permissions test on these 2 machines I have noticed iBooks has many incorrect permissions in need of repair. But once the permissions are repaired -- I then go ahead with setting up iCoud and everything still appears good as far as slow log-in/out and restarts go ....

Jun 2, 2014 11:08 PM in response to Job_vW

There seem to be several processes that can cause a 20 second delay on shutdown. Here's how I found the problem(s) in my MBP (10.9.3, u/g from 10.8):


Open Console and find/open the launchd-shutdown.system.log in /var/log/com.apple.launchd


Search on the phrase: 'after the first signal was sent' (no quotes)


Check the numbers following 'Exited' in each line. One or more will be around 16-20 seconds, if the last shutdown was slow. These are the processes that are causing the delay.


In my case, two processes were slow: com.apple.AOSNotificationOSX and com.displaylink.displaylinkmanager


You need to find where these processes live via Finder (search with 'System files' 'Are included'), and insert an ExitTimeOut as described a few posts above.


I inserted the following ExitTimeOutts (the paths came from my Finder search for the com. files):


sudo defaults write /Library/LaunchDaemons/com.displaylink.displaylinkmanager ExitTimeOut -int 2


and


sudo defaults write /System/Library/LaunchDaemons/com.apple.AOSNotificationOSX ExitTimeOut -int 2


If your offending process is not one of these, you can modify the ExitTimeOut string accordingly.


Anyway, with these changes made, my MBP now shuts down in a second or two, with no apparent ill effects.

Jun 24, 2014 12:49 PM in response to Job_vW

Ok, I picked up a mid 2012 MBP over the weekend, only my second Mac. Anyway, I got the base model with the 500GB HDD. I took it home and immediately put a 512 Crucial MX100 in, and 8GB RAM. I noticed after installing Yosemite from an external drive that shutdown time was 30+ seconds. Unacceptable. I assumed it was the beta software so I went back to Mav, clean install. Imagine my surprise when shutdown was 30+ seconds in Mav as well. So, I Googled, and Googled, and found several different suggested fixes. None of which worked. I kept seeing a couple lines and ran them, more than once. Didn't help. So, I just went out on a limb and tried this;


In a terminal:

sudo chown root:admin /

sudo kextcache -system-prelinked-kernel

sudo kextcache -system-caches

sudo reboot

THIS WORKED! My MBP now shuts down in ~1 second. I hope this helps someone else, I know some of the other things I've seen work for some people but not others.

Mavericks very slow shutdown, how to fix it?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.