Add a Power Chime to Your Mac Via the Terminal

Use Terminal in OS X To Add A Power Chime To Your Mac

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 ChimeOnAllHardware -bool true; open /System/Library/CoreServices/ &


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 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!

Shujaa Imran
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

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox