Comments (11)
With JBL flip 5 connected, in terminal
run bluetoothctl info XX:XX:XX:XX:XX:XX
Where XX:XX:XX:XX:XX:XX is JBL flip 5 mac address.
This is what I get for my bluetooth headphone.
Name: Cleer ARC II
Alias: Cleer ARC II
Class: 0x00244404 (2376708)
Icon: audio-headset
Paired: yes
Bonded: yes
Trusted: yes
Blocked: no
Connected: yes
WakeAllowed: yes
LegacyPairing: no
UUID: Serial Port (00001101-0000-1000-8000-00805f9b34fb)
UUID: Headset (00001108-0000-1000-8000-00805f9b34fb)
UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
UUID: Advanced Audio Distribu.. (0000110d-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: Handsfree (0000111e-0000-1000-8000-00805f9b34fb)
UUID: Human Interface Device... (00001124-0000-1000-8000-00805f9b34fb)
UUID: Vendor specific (0000eb04-d102-11e1-9b23-00025b00a5a5)
UUID: Vendor specific (0000eb05-d102-11e1-9b23-00025b00a5a5)
UUID: Vendor specific (0000eb06-d102-11e1-9b23-00025b00a5a5)
UUID: Vendor specific (0000eb07-d102-11e1-9b23-00025b00a5a5)
UUID: Vendor specific (0000eb08-d102-11e1-9b23-00025b00a5a5)
UUID: Vendor specific (8a482a08-5507-42ac-b673-a88df48b3fc7)
Battery Percentage: 0x46 (70)
Please report back values pf properties Battery Percentage:
and Icon:
from bluetooth-battery-meter.
With JBL flip 5 connected, in terminal run
bluetoothctl info XX:XX:XX:XX:XX:XX
Where XX:XX:XX:XX:XX:XX is JBL flip 5 mac address.This is what I get for my bluetooth headphone.
Name: Cleer ARC II Alias: Cleer ARC II Class: 0x00244404 (2376708) Icon: audio-headset Paired: yes Bonded: yes Trusted: yes Blocked: no Connected: yes WakeAllowed: yes LegacyPairing: no UUID: Serial Port (00001101-0000-1000-8000-00805f9b34fb) UUID: Headset (00001108-0000-1000-8000-00805f9b34fb) UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb) UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb) UUID: Advanced Audio Distribu.. (0000110d-0000-1000-8000-00805f9b34fb) UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb) UUID: Handsfree (0000111e-0000-1000-8000-00805f9b34fb) UUID: Human Interface Device... (00001124-0000-1000-8000-00805f9b34fb) UUID: Vendor specific (0000eb04-d102-11e1-9b23-00025b00a5a5) UUID: Vendor specific (0000eb05-d102-11e1-9b23-00025b00a5a5) UUID: Vendor specific (0000eb06-d102-11e1-9b23-00025b00a5a5) UUID: Vendor specific (0000eb07-d102-11e1-9b23-00025b00a5a5) UUID: Vendor specific (0000eb08-d102-11e1-9b23-00025b00a5a5) UUID: Vendor specific (8a482a08-5507-42ac-b673-a88df48b3fc7) Battery Percentage: 0x46 (70)
Please report back values pf properties
Battery Percentage:
andIcon:
Unfortunately, extension doesnt work at all
`Name: JBL Flip 5
- Alias: JBL Flip 5
- Class: 0x00240414 (2360340)
- Icon: audio-card
- Paired: yes
- Bonded: yes
- Trusted: yes
- Blocked: no
- Connected: yes
- LegacyPairing: no
- UUID: Serial Port (00001101-0000-1000-8000-00805f9b34fb)
- UUID: Headset (00001108-0000-1000-8000-00805f9b34fb)
- UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
- UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
- UUID: Advanced Audio Distribu.. (0000110d-0000-1000-8000-00805f9b34fb)
- UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
- UUID: Handsfree (0000111e-0000-1000-8000-00805f9b34fb)`
from bluetooth-battery-meter.
As you can see there is no Battery information reported by bluetoothctl for your device.
The extension will work only if Bluetoothctl reports Battery Information for the device.
It means your Bluetooth Device is not compatible with Bluez or Device itself is not capable of report Battery information.
Raise an issue in Bluez.
https://github.com/bluez/bluez/issues
Provide full information to them. OS details, Bluez library version and full details of Bluetooth Device when raising an issue there.
from bluetooth-battery-meter.
I seem to be experiencing a bit of a contradiction here. This extension works fine for my PS4 controller but not my wireless speaker in spite of the fact that bluetoothctl status
shows Battery Percentage for the speaker but not the controller.
Ps4 controller. (no Battery Percentage but works)
Device E8:47:3A:0B:FE:8A (public)
Name: Wireless Controller
Alias: Wireless Controller
Class: 0x00002508 (9480)
Icon: input-gaming
Paired: yes
Bonded: yes
Trusted: yes
Blocked: no
Connected: yes
WakeAllowed: yes
LegacyPairing: no
UUID: Human Interface Device... (00001124-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
Modalias: usb:v054Cp09CCd0100
Bose wireless speakers. (Battery Percentage but does not work)
Device C8:7B:23:1C:88:5D (public)
Name: Wheat Toast
Alias: Wheat Toast
Class: 0x00240414 (2360340)
Icon: audio-card
Paired: yes
Bonded: yes
Trusted: yes
Blocked: no
Connected: yes
LegacyPairing: no
UUID: Serial Port (00001101-0000-1000-8000-00805f9b34fb)
UUID: Audio Source (0000110a-0000-1000-8000-00805f9b34fb)
UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
UUID: Advanced Audio Distribu.. (0000110d-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Cont.. (0000110f-0000-1000-8000-00805f9b34fb)
UUID: Handsfree (0000111e-0000-1000-8000-00805f9b34fb)
UUID: Phonebook Access Client (0000112e-0000-1000-8000-00805f9b34fb)
UUID: Phonebook Access (00001130-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
Modalias: bluetooth:v009Ep4022d0303
Battery Percentage: 0x14 (20)
Both devices show their battery information correctly in gnome power settings
Edit: My issue seems to be related to the class/icon type. forcing my device to be recognised as a headset by editing /var/lib/bluetooth/8C:F8:C5:ED:FC:19/C8:7B:23:1C:88:5D/info
fixed the issue. but this won't persist across reboots.
from bluetooth-battery-meter.
I seem to be experiencing a bit of a contradiction here. This extension works fine for my PS4 controller but not my wireless speaker in spite of the fact that
bluetoothctl status
shows Battery Percentage for the speaker but not the controller.Ps4 controller. (no Battery Percentage but works)
Device E8:47:3A:0B:FE:8A (public) Name: Wireless Controller Alias: Wireless Controller Class: 0x00002508 (9480) Icon: input-gaming Paired: yes Bonded: yes Trusted: yes Blocked: no Connected: yes WakeAllowed: yes LegacyPairing: no UUID: Human Interface Device... (00001124-0000-1000-8000-00805f9b34fb) UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb) Modalias: usb:v054Cp09CCd0100
Bose wireless speakers. (Battery Percentage but does not work)
Device C8:7B:23:1C:88:5D (public) Name: Wheat Toast Alias: Wheat Toast Class: 0x00240414 (2360340) Icon: audio-card Paired: yes Bonded: yes Trusted: yes Blocked: no Connected: yes LegacyPairing: no UUID: Serial Port (00001101-0000-1000-8000-00805f9b34fb) UUID: Audio Source (0000110a-0000-1000-8000-00805f9b34fb) UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb) UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb) UUID: Advanced Audio Distribu.. (0000110d-0000-1000-8000-00805f9b34fb) UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb) UUID: A/V Remote Control Cont.. (0000110f-0000-1000-8000-00805f9b34fb) UUID: Handsfree (0000111e-0000-1000-8000-00805f9b34fb) UUID: Phonebook Access Client (0000112e-0000-1000-8000-00805f9b34fb) UUID: Phonebook Access (00001130-0000-1000-8000-00805f9b34fb) UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb) Modalias: bluetooth:v009Ep4022d0303 Battery Percentage: 0x14 (20)
Both devices show their battery information correctly in gnome power settings
Edit: My issue seems to be related to the class/icon type. forcing my device to be recognised as a headset by editing
/var/lib/bluetooth/8C:F8:C5:ED:FC:19/C8:7B:23:1C:88:5D/info
fixed the issue. but this won't persist across reboots.
Apologise for the late reply, i was quite busy.
Not sure why audio-card is not reported as audio-speakers by gnome-bluetooth. But I do not have an bluetooth-speaker to test this.
Could you download and test this branch for GNOME45 and above. Assuming you are on gnome45. Let me know if you are on an older Gnome version, i will provide a patch for Gnome 42-44 versions.
https://github.com/maniacx/Bluetooth-Battery-Meter/tree/test
from bluetooth-battery-meter.
Hi, thanks for your response. The test branch didn't change anything for me. I am on gnome 46 though. The issue is fixed for me across reboots after changing the class=
part of the /var/lib/bluetooth/8C:F8:C5:ED:FC:19/C8:7B:23:1C:88:5D/info
file.
in the supported-device-type-and-icon section in the readme it does not list audio-card as a supported icon type so I just assumed it wasn't supported.
from bluetooth-battery-meter.
-
gnome-bluetooth module should automatically convert/override icon 'audio-card' reported by bluez to the appropriate icon according to bluetooth device in your case 'audio-speakers'. These information is then used by gnome-shell and this extension.
https://gitlab.gnome.org/GNOME/gnome-bluetooth/-/blame/master/lib/bluetooth-client.c#L189
https://gitlab.gnome.org/GNOME/gnome-bluetooth/-/blob/master/lib/bluetooth-enums.h#L63 -
But in your case this is not happening. So I though I may be wrong , may be gnome-shell does get icon tye as audio-card and decided to add it in the test branch. I have added audio-card as supported icon, which will then use icon type which will use audio-speakers. But that also seems like it didnt work. So I am curious of what happening, could you do the following:
- I have updated the test branch added logs. Please disable this extension from extension / extension manager.
- Download the updated test branch and install it.
- Log out and re login (extension needs to restart Gnome-shell to take effect of newly installed ) or better reboot (so that the changes your have made for /var/lib/bluetooth/8C:F8:C5:ED:FC:19/C8:7B:23:1C:88:5D/info get revert back to default.
for me across reboots after changing the class= part of the >/var/lib/bluetooth/8C:F8:C5:ED:FC:19/C8:7B:23:1C:88:5D/info file.
-
With bose speaker connected take a screen shot of the Gnome bluetooth menu with extension disabled and upload it your reply. I want to check which icon is used by gnome-shell.
-
Open terminal/console and type the below command read logs to before enabling extension
journalctl -f -o cat /usr/bin/gnome-shell
- Keep only bose speaker connected and rest of bluetooth device disconnected.
- Enable the extension.
Should see logs in the terminal window. With icon.type and device.type reported for bose speaker by gnome-bluetooth.
post a screenshot of terminal or copy paste the content in your reply with reported dev.icon and dev.type
from bluetooth-battery-meter.
Sorry about the logs. I forgot to push the commit.
The latest update should show logs.
https://github.com/maniacx/Bluetooth-Battery-Meter/tree/test
from bluetooth-battery-meter.
just seems to be the generic bluetooth icon
and the messages:
xxxx Bluetooth Battery Meter xxxx dev.icon = bluetooth
xxxx Bluetooth Battery Meter xxxx dev.type = 0
from bluetooth-battery-meter.
I am assuming in that the Gnome Bluetooth settings
also have the same generic bluetooth icon and the type detected is incorrect.
From an extension point, I cannot do anything as the changes of icon should be done by gnoem-bluetooth module, as bluez reports it as audio-card.
But I would request you, you to create an issue on Gnome-bluetooth website. This would help improve many user who faces the same issue that you are facing with bluetooth speakers, Even though from a Gnome-destkop perspective it is just minor issue of the wrong icon displayed.
https://gitlab.gnome.org/GNOME/gnome-bluetooth/-/issues
If they find that the bug is with Gnome-bluetooth they might help with it or redirect to bluez.
If you do not have an account with gnome-gitlab (It is different from Gitlab AFAIK), you can just login with Github credentionals.
Post the detail of your OS, bluez and Gnome bluetooth.
Distro
lsb_release -a
Gnome-shell
gnome-shell --version
Kernel version
uname -a
bluez version
bluetoothctl -v
gnome-bluetooth version (For Fedora, may use different command if on other distro)
rpm -q gnome-bluetooth
The post your output for the bluetoothctl info
for bose
Bose wireless speakers. (Battery Percentage but does not work)
Device C8:7B:23:1C:88:5D (public)
Name: Wheat Toast
Alias: Wheat Toast
Class: 0x00240414 (2360340)
Icon: audio-card
Paired: yes
Bonded: yes
Trusted: yes
Blocked: no
Connected: yes
LegacyPairing: no
UUID: Serial Port (00001101-0000-1000-8000-00805f9b34fb)
UUID: Audio Source (0000110a-0000-1000-8000-00805f9b34fb)
UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
UUID: Advanced Audio Distribu.. (0000110d-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Cont.. (0000110f-0000-1000-8000-00805f9b34fb)
UUID: Handsfree (0000111e-0000-1000-8000-00805f9b34fb)
UUID: Phonebook Access Client (0000112e-0000-1000-8000-00805f9b34fb)
UUID: Phonebook Access (00001130-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
Modalias: bluetooth:v009Ep4022d0303
Battery Percentage: 0x14 (20)
Mention something similar
My bluetooth Bose (model details) speaker, doesnt show the correct icon.
Although my bluez reports bose speaker as audio-card, but the icon showed Gnome settings and Gnome-shell is still generic bluetooth icon and not icon for audio-speaker.
If you need any more information kindly let me know. Attaching picture of Gnome-shell bluetooth menu and Gnome Bluetooth Settings page.
Attach picture of your GNOME bluetooth settings and gnome-shell bluetooth menu. Highlight the icons for bose
from bluetooth-battery-meter.
Thanks very much for the detailed guide, I will make sure to do that.
from bluetooth-battery-meter.
Related Issues (18)
- Add ability to ready Sony/Samsung battery levels HOT 1
- Add ability to read Apple and Sony/Samsung battery levels HOT 37
- 100% battery percent text not displayed properly HOT 3
- Extension crashes after unlocking HOT 5
- Testing GNOME 43 HOT 2
- Testing GNOME 42 HOT 3
- Testing GNOME 44 HOT 2
- the battery percentage is not aligned with the battery icon in the quick settings HOT 8
- multiple battery levels HOT 19
- Request support for Windows HOT 1
- Had to also enable KernelExperimental in main.conf HOT 3
- [Suggestion] UPower backend? HOT 10
- bug: Extension sometimes does not show Bluetooth connected icon HOT 6
- Add the battery percentage on the system tray HOT 3
- Not showing battery percentage HOT 10
- Duplicated icons in QS HOT 6
- Battery percentage persists after disabling Bluetooth HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bluetooth-battery-meter.