Giter Club home page Giter Club logo

Comments (11)

maniacx avatar maniacx commented on August 11, 2024

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.

esrew avatar esrew commented on August 11, 2024

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:

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.

maniacx avatar maniacx commented on August 11, 2024

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.

TowelSniffer avatar TowelSniffer commented on August 11, 2024

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.

maniacx avatar maniacx commented on August 11, 2024

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.

@TowelSniffer

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.

TowelSniffer avatar TowelSniffer commented on August 11, 2024

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.

maniacx avatar maniacx commented on August 11, 2024

TowelSniffer

  1. I have updated the test branch added logs. Please disable this extension from extension / extension manager.
  2. Download the updated test branch and install it.
  3. 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.

  1. 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.
    Screenshot from 2024-04-15 09-58-34

  2. Open terminal/console and type the below command read logs to before enabling extension

journalctl -f -o cat /usr/bin/gnome-shell
  1. Keep only bose speaker connected and rest of bluetooth device disconnected.
  2. Enable the extension.


Should see logs in the terminal window. With icon.type and device.type reported for bose speaker by gnome-bluetooth.
Screenshot from 2024-04-15 10-11-50



post a screenshot of terminal or copy paste the content in your reply with reported dev.icon and dev.type

from bluetooth-battery-meter.

maniacx avatar maniacx commented on August 11, 2024

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.

TowelSniffer avatar TowelSniffer commented on August 11, 2024

just seems to be the generic bluetooth icon

image

and the messages:

xxxx Bluetooth Battery Meter xxxx dev.icon = bluetooth
xxxx Bluetooth Battery Meter xxxx dev.type = 0

from bluetooth-battery-meter.

maniacx avatar maniacx commented on August 11, 2024

Screenshot from 2024-04-19 08-56-10

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

Screenshot from 2024-04-15 09-58-34

from bluetooth-battery-meter.

TowelSniffer avatar TowelSniffer commented on August 11, 2024

Thanks very much for the detailed guide, I will make sure to do that.

from bluetooth-battery-meter.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.