darkhz / bluetuith

A TUI bluetooth manager for Linux.
MIT License
850 stars 21 forks source link

Connected headphones don't show as connected #60

Open WhyNotHugo opened 2 months ago

WhyNotHugo commented 2 months ago

When I connect to my bluetooth headphone using bluetuith, they don't show up as connected. The UI shows:

MX Master 3 B (Unknown)             (Connected, Battery 50%, Trusted, Bonded) 
OpenRun Pro by Shokz (Headphones)                           (Trusted, Bonded) 

(the first device is a mouse, the second is headphones).

bluetoothctl also doesn't list the headphones:

> bluetoothctl devices Connected
Device D1:C5:F9:DC:D5:B7 MX Master 3 B

If I open pavucontrol, the headphones are listed as an available audio output, and audio playback actually does work.

I finally used d-feet to check the device's status (bus name org.bluez, object path /org/bluez/hci0/dev_XX_XX_XX_XX_XX_XX). The Connected property shows False. If I execute the Disconnect method, the headphones do disconnect, and if I execute the Connect method, they reconnect properly and do register as connected.

I can reproduce this with another pair of headphones too.

Any ideas what might be wrong?

darkhz commented 2 months ago

Please post the logs, especially during scanning, connection and disconnection of both the devices. You can get it from journalctl.

When your headphones are active (i.e music is being streamed), does the mouse work as well?

Also, this could be related to bluez, do ask in the Arch or similar forums.

WhyNotHugo commented 2 months ago

I haven't found anything useful in the logs yet. When I did have to time debug this properly I couldn't reproduce the issue. When I was busy with urgent tasks, I could reproduce it.

I'll reply properly when I have time to generate more useful logs AND can reproduce the issue at the same time.