macbook air_每次插入MacBook Pro或Air时如何听到提示音

macbook air

macbook air

macbook-charger-fun

The new MacBook, first released in 2015, makes a chime sound every time you plug the MacBook in, just like the iPhone and iPad. But the MacBook Pro and Air don’t–unless you enable this hidden feature.

新款MacBook于2015年首次发布,每次插入MacBook时都会发出铃声,就像iPhone和iPad一样。 但是MacBook Pro和Air不会,除非您启用了此隐藏功能。

While this feature is only enabled by default on the MacBook, PowerChime.app–which causes the sound–is present in macOS on any Mac. All you need to do is run a single command to enable it. If you’ve got a fraying charger, or live in a house with some loose plugs, hearing that your charger is working can be a godsend. (Thanks to GitHub user herbischoff for discovering and sharing this trick.)

虽然仅在MacBook上默认启用了此功能,但在任何Mac上的macOS中都存在PowerChime.app(会发出声音)。 您需要做的就是运行一个命令来启用它。 如果您的充电器破旧不堪,或者住在插头松动的房屋中,听说您的充电器正在工作可能是天赐之物。 (感谢GitHub用户herbischoff发现并分享了这一技巧。)

powerchime-app-hidden-mac

如何在MacBook Pro或Air上启用PowerChime (How to Enable PowerChime on Your MacBook Pro or Air)

To enable PowerChime.app, you need to open the Terminal. Head to Applications > Utilities or search Spotlight for “Terminal”.

要启用PowerChime.app,您需要打开终端。 转到“应用程序”>“实用程序”,或在Spotlight中搜索“终端”。

Then, paste this command and hit Enter:

然后,粘贴此命令并按Enter:

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

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

powerchime-enable-start

Commands can seem like magic spells, but they’re not that complicated. Here’s how this particular one breaks down:

命令看似魔术,但并不复杂。 以下是这种特殊情况的分解方式:

  • defaults is a program on your Mac that changes settings.

    defaults是Mac上更改设置的程序。

  • The word write is you telling defaults that you want to change something.

    write ”一词表示您要更改defaults

  • com.apple.PowerChime ChimeOnAllHardware -bool true refers to the specific settings you want to change.

    com.apple.PowerChime ChimeOnAllHardware -bool true您要更改的特定设置。

  • The ; ends the first command and starts a second one

    ; 结束第一个命令并开始第二个命令

  • open tells your Mac to open a program

    open告诉Mac打开程序

  • /System/Library/CoreServices/PowerChime.app is the PowerChime application itself.

    /System/Library/CoreServices/PowerChime.app是PowerChime应用程序本身。

After running the command, you will hear a sound every time you plug in your MacBook Pro or Air. Neat, right?

运行该命令后,每次插入MacBook Pro或Air时,您都会听到声音。 整洁吧?

在MacBook Pro或Air上禁用Power Chime (Disable Power Chime on Your MacBook Pro or Air)

If you decide you don’t like this, here’s the command to reverse what you just did:

如果您决定不喜欢这种方法,请使用以下命令来撤销您刚刚做的事情:

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

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

The first command is largely the same as before, just with the word false instead of true. The second command, which comes after ;, shuts down PowerChime.app instead of launching it.

第一个命令与以前基本相同,只是单词false而不是true 。 第二个命令,后面是; ,请关闭PowerChime.app而不是将其启动。

为什么这甚至存在? (Why Does This Even Exist?)

So, why does is this hidden setting even offered? As stated before, it’s because of the 2015 MacBook.

那么,为什么还要提供这种隐藏设置呢? 如前所述,这是由于2015年的MacBook。

That MacBook uses USB Type-C to charge, instead of the Magsafe charger used by the MacBook Pro and Air lines. The Magsafe charger is one of Apple’s best creations, and includes a visible light that lets you know when you’re plugged in. The USB Type-C charger that comes with the MacBook doesn’t offer that, so users needed some other way to quickly confirm the device was actually charging. This sound is it.

那个MacBook使用USB Type-C充电,而不是MacBook Pro和Air系列使用的Magsafe充电器。 Magsafe充电器是Apple最好的产品之一,并且包括可见光,可让您知道何时插入电源。MacBook随附的USB Type-C充电器不提供此功能,因此用户需要其他方式快速确认设备实际正在充电。 就是这个声音。

We’re not sure why the new MacBook doesn’t just use the Magsafe, but it’s cool that the sound also works on other devices.

我们不确定为什么新款MacBook不仅仅使用Magsafe,而且声音在其他设备上也很酷是很酷的。

Photo credit: MarLeah Cole/Flickr

图片来源: MarLeah Cole / Flickr

翻译自: https://www.howtogeek.com/274191/how-to-hear-a-chime-every-time-you-plug-in-your-macbook-pro-or-air/

macbook air

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值