TechJunkie is a BOX20 Media Company

Home PC Windows How to Give Your Mac an iOS-Like Charging Sound

How to Give Your Mac an iOS-Like Charging Sound

How to Give Your Mac an iOS-Like Charging Sound

Your iPhone and iPad emit a nice chime sound whenever you connect a Lightning or 30-pin USB cable to let you know they’re charging and, it was recently discovered, so too does the new 12-inch MacBook. But that new MacBook has some serious limitations that won’t make it right for everyone. Wouldn’t it be nice to have a charging chime on your existing MacBook Air or MacBook Pro? The good news is that it’s easy to do, as Apple has included the hidden “Power Chime” service (not to be confused with the Mac’s startup chime) in the latest version of OS X Yosemite for all portable Macs. Here’s how to set it up.

Enable the Power Chime in OS X Yosemite

First, make sure you’re running at least OS X 10.10.3 (you can check for OS X updates via the Mac App Store). Then disconnect your MacBook from its power connector and launch Terminal, located in Macintosh HD/Applications/Utilities (or simply search for “Terminal” via Spotlight). With Terminal open, copy and paste the following command and press Return to execute it:

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

Now reattach your Mac’s power connector and you’ll hear the familiar iOS-style chime when the Mac recognizes the power connection (i.e., when the battery indicator in the Menu Bar is overlaid with a lightning bolt, indicating that its charging).

The power chime will sound each time your Mac is reconnected to power, and will even chime while the lid is closed if you have a Mac that supports and is using the Power Nap feature.

Disable the Power Chime

If you decide that you don’t like the power chime, you can disable it with the following command in Terminal:

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

Note that the above command to disable the power chime also works on the new 12-inch MacBook, allowing owners of the new laptop to optionally kill the sound if they find they don’t like it.

Also note that, just like with iOS, the volume of the power chime will depend on your system volume. If your Mac’s volume is set very low when you connect your MagSafe or USB-C power cable, you’ll barely hear the sound, and if it’s muted you won’t hear anything at all.

Locate or Play the Power Chime Sound File

If you’d like to preview the power chime sound, or access the actual sound file for any reason, you can find it located at the following path:

/System/Library/CoreServices/PowerChime.app/Contents/Resources/connect_power.aif

If you don’t want to go rummaging through app bundles in your System folder, you can quickly preview the sound by using the Unix command line audio player, afplay. Just copy and paste the following command into Terminal, and press Return:

afplay /System/Library/CoreServices/PowerChime.app/Contents/Resources/connect_power.aif

How to Enable Common iOS Accessibility Options via iTunes

Read Next 

One thought on “How to Give Your Mac an iOS-Like Charging Sound”

Joey Pietrzak says:
Hey, I tried changing the .aiff file to a different one, but it won’t play… Any ideas?
TekRevue says:
Interesting, I hadn’t thought of customizing it that way. Don’t have a Mac in front of me at the moment, but possible explanations could be that OS X expects a file with a certain size or length, or that, because it resides in the System Library folder, the audio file need to be code signed. Let me play around with it this weekend and I’ll get back to you.
Joey Pietrzak says:
I actually figured it out! A lot of audio programs make .aiff files, apple expects .aif. A simple drop of the second ‘f’ fixes this as they are just a variation of the same file type. :)
TekRevue says:
Awesome!

Leave a Reply

Your email address will not be published. Required fields are marked *


Jim Tanous

Apr 22, 2015

676 Articles Published

More