Wednesday 6 November 2013

Speed up the shutdown process in OS X

Description

If your Mac is constantly taking long time to shut down then there is some problem which should be resolved. This could be due to some problematic device or some faulty configuration of your system. Also, your system may be waiting for some background processes to exit. OS X takes only few seconds to shut down normally.

Solution:

If this problem is due to some background processes then you can change the default 20-second time to a lower value so that the system will exit these processes earlier. 
Let’s have a look on the background processes that hamper the shutdown of OS X:
•AppleEvents- With this, processes can communicate and command each other. 
•securityd – Through this, you can manage access to keychains and other security authorizations. It may time out while waiting for user interaction for some authentication request.
•mDNSResponder -- Multicast DNS actions, including automatic discovery of network servers and services can be managed by it. It usually time out due to local network configuration problems.
•Diskarbitrationd - It monitors the mounting and accessibility of local file systems. It may time out if there is any fault in the drives being used.
•Apple ID authentication – By this, you can manage the verification of your Apple ID for various services. Due to poor network access or lack of response from Apple's servers, it may time out.
For these processes, system launcher holds 20-second default timeout. Thus, by directing the launcher to shorten this default timeout you can speed up shutdowns.
For changing the timeouts, you need to change the launch daemon files the system uses for these services. After taking the backup of your system, run the following commands which you can copy and paste into the OS X Terminal utility:

sudo defaults write /System/Library/LaunchDaemons/c\
om.apple.coreservices.appleevents ExitTimeOut -int 5

sudo defaults write /System/Library/LaunchDaemons/c\
om.apple.securityd ExitTimeOut -int 5

sudo defaults write /System/Library/LaunchDaemons/c\
om.apple.mDNSResponder ExitTimeOut -int 5

sudo defaults write /System/Library/LaunchDaemons/c\
om.apple.diskarbitrationd ExitTimeOut -int 5

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

In the above commands, the timeout value is set to 5. It means the system will wait for 5 seconds before turning off any process. These are “sudo” commands. This means when you run the first command, you need to enter your admin password. Make sure you paste both lines of each command available above in the terminal. When it gets completed, restart your computer. 

Also, you can run the following commands to remove the "ExitTimeOut" settings entry. 

These are:

sudo defaults delete /System/Library/LaunchDaemons/c\
om.apple.coreservices.appleevents ExitTimeOut

sudo defaults delete /System/Library/LaunchDaemons/c\
om.apple.securityd ExitTimeOut

sudo defaults delete /System/Library/LaunchDaemons/c\
om.apple.mDNSResponder ExitTimeOut

sudo defaults delete /System/Library/LaunchDaemons/c\
om.apple.diskarbitrationd ExitTimeOut

sudo defaults delete /System/Library/LaunchAgents/com\
.apple.coreservices.appleid.authentication ExitTimeOut
Follow the above tips and speed up the shutdown process of OS X. For more from the XpertCrewTM team, please follow us on Twitter @Techvedic or contact Techvedic’s computer support helpdesk, as per below contact-details: 
U.S. +855-859-0057 (http://www.techvedic.com/ )
U.K. +800-635-0716 (http://www.techvedic.co.uk/ )
CA 1-855-749-5861 (http://www.techvedic.ca/> )
AU 1-800-197-298 (http://www.techvedic.com.au/> )
And yes, we are eagerly waiting for your valuable feedback. Do write us back. We would be more than happy to help you. We are available 24/7.

0 comments:

Post a Comment