Add a Power Chime to Your Mac Via the Terminal

Spread the love

Chances are if you own an iPhone you’ll be familiar with a chime it makes when you plug it in to charge. Similarly, Apple’s new 12-inch MacBooks make the same sound when you connect and disconnect the power.

With the help of a Terminal command you can also have the same sound on your MacBook Pro or MacBook Air as well. It’s another method to know for sure that your charging cable has indeed connected to your laptop, and it’s charging properly.

You’ll need to have the latest version of OS X Yosemite installed on your MacBook Pro / MacBook Air for this. To get the chime, follow the technique detailed below.

1. Open Terminal on your Mac, either by using Spotlight or by accessing it from “Applications -> Utilities.”

2. In Terminal, simply copy and paste the following line, and press Enter on your keyboard.

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

Now whenever you connect your power cord to your Mac, you’ll hear the chime sound indicating that your Mac is charging.

If you ever want to disable it in the future, use the following command:

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

So that’s all for this guide! Be sure to try it out, and tell us if you have any questions or queries in the Comments section below!

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Sign up for all newsletters.
By signing up, you agree to our Privacy Policy and European users agree to the data transfer policy. We will not share your data and you can unsubscribe at any time. Subscribe


Shujaa Imran

Shujaa Imran is MakeTechEasier’s resident Mac tutorial writer. He’s currently training to follow his other passion become a commercial pilot. You can check his content out on Youtube

Comments are closed