Trigger a notification sound when connecting your MacBook charger

Sound-notification-charging-macbook-0

Something that has always caught my attention is why in iOS devices when connecting the charger a notification sound was played to know that it was charging and yet not on my MacBook, this is partly understandable since the MagSafe charger integrates a status LED that shows us if it is charging, but for some it sure would not be others integrate this sound.

However, the new owners of the MacBook that integrate USB Type C connection they already come with the notification sound activated by default so the article is rather aimed at everyone else with MagSafe.

Sound-notification-charging-macbook-1

Through the terminal and in a few steps we would have it ready to go.

  • Unplug the MacBook from the electrical outlet.
  • Run the terminal using Spotlight or open the application manually inside the Applications folder.
  • Copy and paste the following line in Terminal and hit Enter:
     defaults write com.apple.PowerChime ChimeOnAllHardware -bool true; open /System/Library/CoreServices/PowerChime.app &
  • Reconnect the Mac to the electrical outlet and the MagSafe. If the battery needs power and you connect the charger, then the notification should sound.

To disable it, all you have to do is do the following:

  • You just have to paste the following line in the terminal window:
     defaults write com.apple.PowerChime ChimeOnAllHardware -bool false; killall PowerChime
  • You just have to press enter and you will have it ready

As you can see it is something very simple to carry out and it is enough with two or three commands in the terminal, this although as I mentioned above it does not seem mandatory or highly recommended it is not too much to know perfectly for sure that the equipment has finished detecting the connection to load.


Leave a Comment

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

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.