1 8 9 10 11 12 Previous Next 167 Replies Latest reply: Aug 19, 2013 2:23 PM by OlliHappyOnMac Go to original post
  • 150. Re: macbook pro slow shutdown 10.8.2
    billy noah Level 1 Level 1 (60 points)

    to create/update the locate database you can use the command:

     

    /usr/libexec/locate.updatedb

     

    or edit:

     

    /System/Library/LaunchDaemons/com.apple.locate.plist

     

    to update automatically however frequently you want.  it's default is 3:15am once a week .. i think sunday.

     

    $ sudo launchctl list | grep locate

     

    will verify if it's loaded or not.. if not, load it:

     

    $ sudo launchctl load /System/Library/LaunchDaemons/com.apple.locate.plist

     

    i have mine set for once a day at an odd hour in the night.

     

    i know this is off topic but it's useful to have this working so find system files.  that being said, if you aren't savvy enough to figure this out on your own you probably shouldn't be mucking around with system level daemons.

  • 151. Re: macbook pro slow shutdown 10.8.2
    billy noah Level 1 Level 1 (60 points)

    took the 10.8.3 plunge today (after a complete backup of course) and pleased to say it did not change any of my plist edits.  still have a 2 second kill on:

     

    com.apple.securityd

    com.apple.coreservices.appleevents

    com.apple.coreservices.appleid.authentication

    com.apple.mDNSResponder

    com.apple.diskarbitrationd

     

    and boot args set to verbose.

     

    consistently achieving 5-7 second shutdowns.

  • 152. Re: macbook pro slow shutdown 10.8.2
    @sB81 Level 1 Level 1 (0 points)

    Why I have 20 seconds kill on:

    com.apple.coreservices.appleid.authentication

    I don't understand. However I won't modify any filesystem because I'm not so expert with Unix

  • 153. Re: macbook pro slow shutdown 10.8.2
    billy noah Level 1 Level 1 (60 points)

    it is my opinion that decreasing the exit timeout of these services won't harm anything.  if your OS is killing it anyway at 20 seconds, then killing it after 2 seconds shouldn't change a thing.  this has been covered in this thread several pages back but to save you the time, here's the command:

     

     

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

    nobody who has implemented this workaround has thus far encountered any problems by doing so to my knowledge.

     

    oh and there shouldn't be a space in "plist"  but for some reason the forum is adding one despite my best attempts to edit this post

  • 154. Re: macbook pro slow shutdown 10.8.2
    ultraspiracle Level 1 Level 1 (0 points)

    Scott, thanks for the tips. Seems you and billy Noah are the aficionados here. I think all who are irritated by this problem should follow their advice and let all the rest of us know how it works out. I changed a friends settings in terminal this weekend for appleid authentication and it helped him temporarily.  Maybe there's more to be done with his setup. Incidentally I'm still on lion and I had a default 20" kill for appleid and it does not contribute to slow shutdowns on that o.s. So now I'm curious about upgrading again to mountain lion and integrating these tweaks. Please let us know how it works out for you guys

     

    (Sent from iPad so greaammer and spelling may be preschool.)

  • 155. Re: macbook pro slow shutdown 10.8.2
    ultraspiracle Level 1 Level 1 (0 points)

    And also don't forget to file bug reports!

  • 156. Re: macbook pro slow shutdown 10.8.2
    @sB81 Level 1 Level 1 (0 points)

    But is not that Apple wants to turn off our mac in 20 seconds?

  • 157. Re: macbook pro slow shutdown 10.8.2
    billy noah Level 1 Level 1 (60 points)

    @sB81 wrote:

     

    But is not that Apple wants to turn off our mac in 20 seconds?

    no.  the exittimeout property is the amount of seconds which must pass before the system kills a process which has failed to exit cleanly.  killing them is a last resort for the os and it's definitely not what apple or any os x user "wants".  these processes should not be stalling repeatedly as they do. that is why it's a bug.

  • 158. Re: macbook pro slow shutdown 10.8.2
    @sB81 Level 1 Level 1 (0 points)

    ok! Thanks a lot!

  • 159. Re: macbook pro slow shutdown 10.8.2
    @sB81 Level 1 Level 1 (0 points)

    Is there a a sort of backup I can do before tiping terminal command sudo defaults write /System/Library/LaunchAgents/com.apple.coreservices.appleid.authentication.plis t ExitTimeOut -int 2 ?

  • 160. Re: macbook pro slow shutdown 10.8.2
    Mirumoto Level 1 Level 1 (0 points)

    Hi guys,

     

    I have been trying to solve this issue for months and after trying many things hinted in this thread and in others I have found a solution that is working (at least for now).

     

    I have noticed that the hanging process could have been related to Apple Devices, I have both a Magic Mouse and Apple Keyboard for my Macbook Pro.

     

    Deleting the magic mouse profile from the bluetooth menu and then adding it back did the trick for me.

     

    Now when I reboot it is back to shuting down in 3 seconds.

     

    Not sure if it is going to work for you but that did it for me. It has been 2 days now.

  • 161. Re: macbook pro slow shutdown 10.8.2
    Bilzo Level 1 Level 1 (15 points)

    This.

     

     

     

    Mirumoto wrote:

     

    Hi guys,

     

    I have been trying to solve this issue for months and after trying many things hinted in this thread and in others I have found a solution that is working (at least for now).

     

    I have noticed that the hanging process could have been related to Apple Devices, I have both a Magic Mouse and Apple Keyboard for my Macbook Pro.

     

    Deleting the magic mouse profile from the bluetooth menu and then adding it back did the trick for me.

     

    Now when I reboot it is back to shuting down in 3 seconds.

     

    Not sure if it is going to work for you but that did it for me. It has been 2 days now.

    I scoured my console and changed the exit timeouts for all those .plist files, but it never changed a thing.  My MacBook Pro (early 2011 15-inch) was constantly taking 20 seconds to shutdown, without exception.

     

    After deleting the default bluetooth keyboard and magic mouse profiles that Apple installed, my shutdown time is consistently five seconds or less now.

     

    I think it's possible that there is a combination of factors going on, because my console says that com.apple.coreservices.appleid.authentication needs to be killed every time I shutdown, so if you don't have bluetooth issues then following the previous solutions may help.  Apparently, I needed another solution in concert with those.

     

    Thanks, Mirumoto, and everyone else that has been providing help to this thread.

  • 162. Re: macbook pro slow shutdown 10.8.2
    schnaufifant Level 1 Level 1 (10 points)

    Please Delete this.

  • 163. Re: macbook pro slow shutdown 10.8.2
    flapman Level 1 Level 1 (0 points)

    Wiktor,

    I have the same problem as you.  My 20 second timeout shows in the logs as  com.apple.launchd[1]: (com.apple.coremedia.videodecoder[7087]) Exit timeout elapsed (20 seconds). Killing

     

    I can not find any file named com.apple.launchd or com.apple.coremedia.  I'm uaing PathFinder to search which will usually find any file that exists but it isn't finding anything like either of these names. 

     

     

  • 164. Re: macbook pro slow shutdown 10.8.2
    flapman Level 1 Level 1 (0 points)

    I think I found the problem on my 13" 2012 MacBook Air.  When I have a Thunderbolt to HDMI cable plugged in going to my TV, I get the delay, even with the TV off.  When the Thunderbolt cable is not plugged into the MBA, it will shut down immediately and there is no timeout message in the logs.  I assume the com.apple.coremedia.videodecoder reference in the logs is because of the Thunderbolt to HDMI cable.  There seems to be no library file associated with this cable.