MacBook regular maintenance (also for other machines)
Those are the steps I usually do to cleanup, verify and recalibrate a MacBook regularly. Those steps should work for iMacs too (except the battery recalibration and similar stuff) and can be used as a general guideline for other operating systems too but with other software tools than the mentioned ones. Perform them in this order if unsure.
A note about the battery calibration: verify if your laptop model requires it at your vendor, including Macs.
Steps
- Close all running programs and applications, if possible
- Perform a backup of the whole machine. On a Mac: use TimeMachine
- Empty the trash can
- Check for unused and removable apps; use AppCleaner
- Check for unused files and remove them or move them to another machine or disk
- Perform a backup of all the e-mails in your e-mail client. Export your mailbox with Apple Mail or, if Thunderbird user, consider the add-on ImportExportTools.
- Vacuum Apple Mail database to improve it’s performance by running this
command in a terminal:
sqlite3 ~/Library/Mail/V2/MailData/Envelope\ Index vacuum;
- Update the packages with your favorite package manager; if you use Homebrew:
brew update; brew upgrade; brew cleanup
- Update the software installed with any market or store; AppStore updates
- Perform a disk integrity check. Run verify disk with disk utility.app
- Still using disk utility.app, verify and correct the disk permissions
- Perform a full-system scan with your favorite antivirus
- Recalibrate the battery of your laptop; follow this guide for MacBooks (see below for short version)
- Perform an SMC reset and a NVRAM (a.k.a. PRAM) reset (see below for short version)
- Add a log entry in CoconutBattery.app
- Clean the computer screen with a clean cloth
- Clean the keyboard, touchpad, laptop case, charger, mouse and other peripherals with alcohol
- Perform a reboot
MacBook battery calibration
Be sure to take the right time to do it, since it forces your MacBook to be charging without interruptions and shut down for some hours.
- Fully charge your MacBook’s battery
- Let it rest in the fully charged state for at least two hours
- Prevent the sleeping of the computer using Caffeine
- Disconnect the power adapter
- Use the MacBook until the battery dies (save your work first!)
- Let the MacBook sleep discharged for at least five hours
- Charge it until it’s full again
CoconutBattery helps take track of the improvement this process does to the battery capacity.
SMC reset
- Shut down
- Plug in the MagSafe power adapter, if its not already connected
- On the built-in keyboard, press the (left side)
Shift+Control+Option
keys and thepower
button at the same time for about 3-4 seconds. Release them together. If you see the MagSafe LED blink or change color, then you’ve done it right, but sometimes the LED stays still - Power on
NVRAM (a.k.a. PRAM) reset
- Shut down
- Locate the following keys on the keyboard:
Command
,Option
,P
, andR
. You will need to hold these keys down simultaneously in the next step - Turn on the computer and quickly press and hold the
Command+Option+P+R
keys before the Apple logo appears - Hold the keys down until the computer restarts and you hear the startup sound
- Release the keys
- Reconfigure speaker volume, screen resolution, startup disk selection and time zone information if needed