I would like to know if it is possible to get the battery level of a connected Bluetooth device (for example, a headset) on Mac OSX.
I'm looking for a command line or a library that would offer this possibility.
Thanks.
I would like to know if it is possible to get the battery level of a connected Bluetooth device (for example, a headset) on Mac OSX.
I'm looking for a command line or a library that would offer this possibility.
Thanks.
There is no easy way to get this information without special application.
There is an app especially designed for this only purpose - called AKKU.
It worked with Bose and Sony's headphones (checked)
https://github.com/jariz/Akku/
Remember to download version 0.1.0-beta.10.
The app works after restart.
Just follow this guide: http://osxdaily.com/2014/05/18/how-to-check-bluetooth-keyboard-battery-levels-from-the-command-line-on-mac-os-x/
Basically:
You just need to know the name of the device and then use ioreg, like this:
ioreg -c <devicename> |grep '"BatteryPercent" ='
Additionally, you could retrieve broader battery information with:
ioreg -c BeatsBluetoothHeadset |grep Battery
Next time, just google ... Since a similar question was already answered https://apple.stackexchange.com/questions/215256/check-the-battery-level-of-connected-bluetooth-headphones-from-the-command-line
© 2022 - 2024 — McMap. All rights reserved.
ioreg
? For example, here are some uses for the OS X's Magic Mouse and Magic Keyboard. – Newhouse