8

I can query the battery level of my bluetooth devices with ioreg with

ioreg -r -l -n devicename | grep  '"BatteryPercent"\ =' 

with the following devices

  • Keyboards: IOAppleBluetoothHIDDriver, AppleBluetoothHIDKeyboard
  • Mice: BNBMouseDevice, AppleHSBluetoothDevice
  • Trackpad: BNBTrackpadDevice

Any idea which is the object name for Apple AirPods?

  • 1
    This page at AskDifferent may provide some clues. – IconDaemon Jun 18 '18 at 11:41
  • @IconDaemon I saw the page but I cannot find any device with BatteryPercent in the list (ioreg -l) that could be an AirPod. – Matteo Jun 19 '18 at 7:29
  • It wasn’t the specific name, just there seemed to be different ways to query ioreg. – IconDaemon Jun 19 '18 at 9:31

You must log in to answer this question.

Browse other questions tagged .