You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

关于Keychron K3键盘在MacBook Pro上获取电池状态的技术问询

关于Keychron K3键盘在MacBook Pro上获取电池状态的技术问询

Hey there, I feel your pain—nothing’s worse than your keyboard dying mid-task because you didn’t get a heads-up on the battery level. The Keychron K3 is a solid keyboard, but the lack of a native macOS Bluetooth battery indicator is definitely a bummer. Let’s go through your options for fixing this:

现成工具方案

  • 第三方菜单栏小工具:There are lightweight menu bar apps built specifically for macOS that track battery levels of all connected Bluetooth devices. These apps hook into macOS’s Bluetooth system APIs to pull the battery data your K3 transmits, displaying it right in your top menu bar for quick, at-a-glance checks. Most run quietly in the background and don’t hog system resources.
  • Keychron官方助手工具:Have you tried the Keychron Assistant app? It’s primarily for firmware updates, but it also includes a battery status display for supported models like the K3. While it doesn’t stay in your menu bar full-time, it’s a reliable, official way to check your battery whenever you need to.

DIY脚本/命令行方案

If you prefer a hands-on approach, you can use macOS’s built-in command-line tools to fetch the battery data directly. Here’s how to do it:

  1. Find your keyboard’s Bluetooth address: Open System Settings > Bluetooth, right-click on your Keychron K3, and select "Copy Address" (it’ll look like a string of letters and numbers separated by hyphens).
  2. Run the terminal command: Open Terminal and paste this command, replacing XX-XX-XX-XX-XX-XX with the address you copied:
    ioreg -c AppleBluetoothHIDKeyboard | grep -A 10 -B 2 "XX-XX-XX-XX-XX-XX" | grep "BatteryPercent"
    
    This will output your keyboard’s current battery percentage directly in the terminal.
  3. Make it more convenient: You can turn this into a simple shell script, or use Automator to create a menu bar item that runs the command and displays the percentage with a single click. For example, in Automator, create a "Run Shell Script" action with the command above, then save it as an application and add it to your menu bar via System Settings.

A quick heads-up: The exact command might need minor tweaks depending on your macOS version, but the core idea uses ioreg to access macOS’s I/O registry, where Bluetooth device battery data is stored.

Quick workaround (for quick checks)

As you probably know, holding down Fn + S + B on the K3 for 3 seconds will trigger the keyboard’s LED indicators to show battery level: 3 flashes mean high battery, 2 for medium, 1 for low. It’s not ideal for continuous monitoring, but it’s handy for a quick check without opening any apps.


备注:内容来源于stack exchange,提问作者Himanshu Soni

火山引擎 最新活动