How to use Terminal to add the power chime to your MacBook Air or MacBook Pro

Terminal-PowerChime-Main

You know the sound your iPhone makes when you plug it in to charge? Well, the new 12-inch MacBooks (yes, those really thin ones) make the same sound when you connect and disconnect the power. And guess what? With a little trick, you can have this same sound on your current MacBook Pro or MacBook Air as well, allowing you to know for sure that your charging cable is indeed properly connected to your laptop.

To begin, ensure that you have the latest version of Yosemite (10.10.3 or higher) installed on your MacBook Pro or Air, and then open the Terminal (located in /Applications/Utilities). Unplug your MacBook if it's plugged in.

Next, copy and paste the following line into the Terminal, then press the return key (you must type this command all on one line without any returns regardless of how it looks wrapped):

defaults write com.apple.PowerChime ChimeOnAllHardware -bool true; open /System/Library/CoreServices/PowerChime.app &

Power Chime

Type the line shown here into Terminal to activate a chime when you plug in your MacBook's charging cable.

Voila! When you connect the power you will hear the chime sound. If you get tired of this sound, simply use this command in the Terminal to deactivate it:

defaults write com.apple.PowerChime ChimeOnAllHardware -bool false; killall PowerChime

TOPICS
Latest in Macbooks
apple macbook air against blue background
There's a huge MacBook Air sale right now – shop record-low prices from $629.99
13-inch and 15-inch MacBook Air M4 in Sky Blue
The new Apple MacBook Air M4 has a weird quirk with its performance cores - but it's nothing to worry about
MacBook Air 15-inch with M4 chip on a creative's desk with screen open
I've reviewed the Apple MacBook Air 15-inch (M4) - and it remains the best 15-inch laptop I'd recommend for most people
Apple MacBook Air M3 on yellow background with lowest price text overlay
Forget the MacBook Air M4: here are 9 older-model MacBook deals from $629.99
MacBook Air mute key
The new M4 MacBook Air finally fixes an Apple keyboard annoyance that's been around for decades
Apple MacBook Air 13-inch (M4) REVIEW
The Apple MacBook Air 13-inch (M4) is the best ultraportable – and the new price makes it even more appealing
Latest in How Tos
tiktok
How to edit TikTok videos
Irish boxer TJ Doheny receives an undercard bout, ahead of the WBO super welterweight world title fight in March, 2023
Ball vs Doheny live stream: how to watch the boxing action from anywhere
 Facebook social media app logo on log-in, sign-up registration page
How to delete all your Facebook posts
Max Verstappen of Red Bull in testing for the 2025 season in Bahrain
Australian Grand Prix 2025: How to watch F1 First Practice race online from anywhere
Lunar eclipse
I'm a pro photographer – here's how I'm shooting the total lunar eclipse blood moon with my camera and phone
Photoshop CC logo on a screen
How to make an image background transparent in Photoshop