Twelve inch MacBook Silver closeup 001

When you plug in your iPhone, iPod touch or iPad into a power outlet, a brief auditory confirmation is played to indicate that a cable is attached and the device is getting power.

Wouldn’t it be cool if your Mac notebook could this?

You’re in the luck: enabling the iOS power chime sound effect on the Mac involves executing a simple Terminal command, which enables the effect on any Mac model, even if it’s sleeping or the screen is locked. Proud owners of Apple’s new twelve-inch MacBook needn’t even finish reading this article because their machine came with the power-charging chime enabled by default.

Thanks to OS X Daily, our favorite source of useful tips and tricks for the Mac, all you’re required to do is launch Terminal in OS X and execute a single command.

From that point onward, your MacBook, MacBook Pro or MacBook Air will provide an audio feedback when it’s plugged into power. As mentioned before, this auditory confirmation comes in the form of the same power-charging sound you hear after connecting an iPhone, iPod touch or iPad into a power outlet.

How to enable power chime:

Step 1: Disconnect your Mac from power.

Step 2: Launch Terminal using Spotlight, or open the application manually (it’s inside your Mac’s Applications folder).

Step 3: Paste the following line into Terminal and hit Enter:

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

Step 4: Re-connect your Mac to the MagSafe power source. If the battery needs charging and there’s power, the familiar chime you’re used to hearing on your iOS devices should trigger.

How to disable power chime:

Just paste the following line into the Terminal window:

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

Hit Enter and you’re good.

The command kills the running process which takes care of playing the chime while disabling the feature through the defaults command string.

How to play power chime manually:

Paste this into the Terminal window and hit Enter:

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

You should head the chime immediately after hitting Enter.

For those interested in technicalities, the Terminal command described in this article tells OS X to always play the power chime, regardless of the model of your Mac. It also launches the tiny PowerChime application which must be running in the background in order for the power chime to trigger upon connecting the device to power.

But even this little feature couldn’t have gone without the attention to detail Apple’s always been associated with.

As OS X Daily explains, if you keep an eye on the battery icon in your Mac’s menu bar, you’ll realize OS X triggers the power chime at the exact same time as the charging bolt appears on the battery icon.

mac-charging-indicator-menu-bar

“Note the battery charging indicator will only display onscreen if there is less than 100 percent power available with the Mac battery and the Mac is either in sleep mode or the screen is locked,” OS X Daily said.

Again, the new MacBook ships with the power chime enabled out of the box, providing an auditory confirmation that the charging cable is attached to its USB-C port and the computer is charging.

And for those wondering, “The sound effect will even trigger if the MacBook is sleeping too, though that aspect appears limited to newer hardware with the ability to use PowerNap,” as stated by OS X Daily.

Signing off, I’ve been pondering why only the new MacBook enables the power chime by default and came to the conclusion it’s because of the USB-C charging cable, which lacks the MagSafe adapter’s handy LED charging indicator.

If you’ve found this tip useful, sound off in the comments (pun fully intended).

Source: OS X Daily

  • sdhn

    Can this work on my iMac when i unplug and replug the power cable?! 😀

    • Lol unfortunately you only get the power on chime instead.

      • Micaiah Martin

        Which is a much cooler sound!
        *sits and plugs in mac and then unplugs it just to hear that sound*

  • Guy

    Post says disconnect then disconnect… Errr … You not got a proofreader ???? Huh

    • Fixed, thanks for the heads-up!

      • Guy

        No probs at all.

    • Maxim∑

      You aren’t* either.

  • Pokeh321

    Might could be the reason only the new MacBook has it is because it uses a USB C vs. the MagSafe which has a visual light indicator to show whether the MacBook is receiving power.

  • Keag

    Just a heads up for other MacBook users, you have to be updated to the most recent 10.10.3 in order for this to work. Maybe you wanna update that in the article?

    • Thomas Braun

      Yeah that is because the new MacBook which has the chime in the OS comes on 10.10.3 so all previous versions never ran on that so they never had chime

  • Joshua The-Legend Wiebe

    Fix: Wouldn’t it be cool if your Mac notebook could DO this?

    • Micaiah Martin

      Hot corners still work on mine after I enable this, are you sure you used the same command?

      • Chinch07

        Hot corners work fine on mine as well…

      • Noldorian

        Hot Corners still work fine for me too.

      • CasonAsherTech

        My Hot Corners were disabled

  • MrDDify

    What’s the coffee cup icon for? Looks awesome!

    • Ryan

      It’s an app called KeepingYouAwake that prevents your computer from sleeping. It’s a clone of Caffeine.

  • This tweak disabled all the the other sound effects, even after restart. (example, no sound when i send message through telegram, no email chimes) – After I disabled it, all sound effects back to normal.

    • MrDDify

      Same problem here! But even after disabling the sound effect my other sound effects didn’t come back

      • Andrew

        Is this still an issue?

      • MrDDify

        With me it is.

  • Christopher

    Good function for me, as my magsafe indicator led is faulty.

  • Amit Bhogal

    Anybody know if this works on Mavericks? So far no luck…