-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Also show power level bluetooth headphones #141
Comments
There's also this which might be interesting: https://github.com/TheWeirdDev/Bluetooth_Headset_Battery_Level/ |
Due note that this requires to introduce the bluez dbus interface into this code base. Which is not present a this moment. It also makes it harder to know the correlation between Upower and bluez dbus interface, in order to prevent duplicate devices. I am wondering if we can not get this information from the already used Upower interface. If it is possible I would like to see the upower data maybe @peteruithoven @andirsun can help me out? If possible I would like to see the output of |
Sorry I didn't read the part of bluetooth devices doesn't get listed on upower interface. when using the device1 interface there is no easy way to get battery level (https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/device-api.txt) |
new version bluez 5.56 and higher, support battery provider |
@torikulhabib Do you know how to run the experimental interface un bluez bus ? |
after installing the latest version of bluez. what looks when you're running ./example-batrey-provider.py?? ? |
|
Bluetooth battery has been completely lost in Odin. I used to be able to see the battery percentage on the power indicator but not after the upgrade. |
Prerequisites
Feature
Is your feature request related to a problem? Please describe.
I love how the indicator shows me the power levels of my bluetooth devices.
But, it never includes my bluetooth headphones/headsets even when they are also connected:
Describe the solution you'd like
I'd love for these devices to also be included.
Existing work
Android is able to read out their power levels:
Describe alternatives you've considered
Additional context
Looking through the code it depends on dbus & Upower. Looking there I see that the bluetooth devices aren't listed.
Some devices like the MX Keys also seem to have a
org.bluez.battery1
interfaceWhile the headphones don't have that interface:
Relevant Stack overflow question with some interesting answers:
https://stackoverflow.com/a/52899481/1544200
https://github.com/wangrunz/BluetoothMonitor#battery-level-for-bluetooth-headsets-support-handsfree-profile
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: