You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

Solution: Mountain Lion slow shut down

Hello Community,


I just found something to fix the slow shut down problem temporarily!

Just use the following Terminal codes and hit enter after each line!


cd ~/Library/Preferences/

rm com.apple.desktop.plist

killall dock


You will have to set your wallpaper again!

After this your shut down time (if it was very long) should be shorter like when your Mac was new!


I had the problem on my MacBook Pro 15 RD! Maybe it is only a specific problem to this computer! I just wanted to share my solution cause i found some similar descriptions to problems in some other forums!

MacBook Pro (Retina, Mid 2012), OS X Mountain Lion (10.8.2)

Posted on Nov 17, 2012 3:48 AM

Reply
42 replies

Oct 7, 2013 7:03 AM in response to joaomalveiro

joaomalveiro


Please read my solution - here it is again:


Enter each line individually and hit enter after. You may be asked to enter your password after the first "enter". When you insert your password.. it does not show... you just hit enter and return. (at least that is what happened to me)


Here we go:



sudo defaults write /System/Library/LaunchDaemons/com.apple.coreservices.appleevents ExitTimeOut -int 1



sudo defaults write /System/Library/LaunchDaemons/com.apple.securityd ExitTimeOut -int 1



sudo defaults write /System/Library/LaunchDaemons/com.apple.mDNSResponder ExitTimeOut -int 1



sudo defaults write /System/Library/LaunchDaemons/com.apple.diskarbitrationd ExitTimeOut -int 1



sudo defaults write /System/Library/LaunchAgents/com.apple.coreservices.appleid.authentication ExitTimeOut -int 1

Oct 14, 2013 2:09 AM in response to prilicious

I noticed that in some cases, when opening folders containing certain types of video files and / or viewing these files with quick look, it may happen that a process called VTDecoderXPCService, which should normally close by itself when no longer in use by 20 seconds, doesn't quit, even without committing any more hardware resources. If that happens, of course, at the time of shutdown ML tries to close it , and it does not respond, ML waits for the default time of 20 seconds and then closes it forcibly. And of course we will once again get the hated wheel, even after applying Designanthem's commands listed above.


In this case it is not sufficient to set the timeout value to a second, because that process (which belongs to the daemon com.apple.coremedia.videodecoder) does not respond to the order of closing, therefore if we want to get rid of it instantly we have to use a Kill command from terminal:


killall -9 com.apple.coremedia.videodecoder


Now we have to make ML run this command automatically every time we log out. I put the kill command into a script which I then set as LogoutHook, basically the equivalent of that "Shutdown Items" folder, well remembered by those who were fortunate enough to use Mac OS 9, and then suppressed for some incomprehensible reason with the advent of Mac OS X.


Now everything works beautifully.

Oct 15, 2013 2:07 AM in response to virtualkeith

OK Virtualkeith, this is what I've done:



[create the script to be executed on shutdown]

sudo nano /Library/Scripts/smetti-con.sh


[it will open the script compilation environment]


#!/bin/bash


killall -9 com.apple.coremedia.videodecoder


[I also wanted to get rid of the startup chime on my MacBook Pro, so I added this command to mute the audio output on logout]:


osascript -e 'set volume with output muted'

hit ctrl+o

confirm with Enter

hit ctrl+x to return to main Terminal window


[now let's make the shutdown script executable]

sudo chmod u+x /Library/Scripts/smetti-con.sh


[set the shutdown script as LogoutHook]


sudo defaults write com.apple.loginwindow LogoutHook /Library/Scripts/smetti-con.sh


[if you added the startup chime command like I've done, now you have to create this script to be executed on startup, in order to have the audio output restored when you log in; otherwise you can completely ignore the following steps]


sudo nano /Library/Scripts/avvia-con.sh


[it will open the script compilation environment]


#!/bin/bash


osascript -e 'set volume without output muted'


hit ctrl+o

confirm with Enter

hit ctrl+x to return to main Terminal window


sudo chmod u+x /Library/Scripts/avvia-con.sh


sudo defaults write com.apple.loginwindow LoginHook /Library/Scripts/avvia-con.sh


Done!

Dec 6, 2013 2:20 AM in response to designanthem

Hi Designanthem


I can see people are very happy with what you told them,

please helm me here,

i bought this imac with and updated it to Mavericks x and since its gone very slow in shutdown, its even not shutting down sometimes,

would you help me here i dont know how to work or type in terminal code and need your guide if possilbe?

Many Thanks

A

Jan 24, 2014 4:43 PM in response to alishary

read carefully:


Open Terminal.


Then... Enter each line below individually (one at a time) and hit enter after. You may be asked to enter your password after the first "enter". When you insert your password.. it does not show your password... still proceed and just hit enter and return.




sudo defaults write /System/Library/LaunchDaemons/com.apple.coreservices.appleevents ExitTimeOut -int 1


sudo defaults write /System/Library/LaunchDaemons/com.apple.securityd ExitTimeOut -int 1


sudo defaults write /System/Library/LaunchDaemons/com.apple.mDNSResponder ExitTimeOut -int 1


sudo defaults write /System/Library/LaunchDaemons/com.apple.diskarbitrationd ExitTimeOut -int 1


sudo defaults write /System/Library/LaunchAgents/com.apple.coreservices.appleid.authentication ExitTimeOut -int 1

Solution: Mountain Lion slow shut down

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