Score:-1

Solving my Bluetooth in XFCE

ao flag

There are really plenty of hacks to get systems to do Bluetooth right, I would like to get mine to work too, or use a default that works if anybody would indulge me.

Let's paint the picture.

  • Gamer PC (Asus/NVidea/Intel)
  • Bluetooth keyboard and mouse (Logitech)
  • two screens with "mini" internal speakers (Eizo)
  • Bluetooth Flip 5 speaker (JBL)

Pulsadio works, even if I don't like it, and XFCE is standard in Ubuntu Studio, so I use it as is.

the dream You flip your PC on when you get home, start your favourite streaming service, press play, and hear music... reality you search for hours over many weeks to find a solution that you end up perfecting into a scripted hack

the Hack / Workaround

  • I use bluetoothctl as root
  • untrust and remove the speaker
  • Hard reboot the speaker
  • Start a discover
  • pair, connect and trust the speaker *
  • Stop the discover

listen to music, until I reboot

* this has to happen in a very fast succesion to work, twidly fingers required.

This leads me to believe that this JBL devices, has a slighly diffrent trick to it. I have a similar issue with my Sony Headset, but let's focus on the JBL speaker.

more information:

Ubuntu 21.10 impish

XFCE4 with the wisker menu

Device B8:F6:53:1E:0E:72 (public)
    Name: JBL Flip 5
    Alias: JBL Flip 5
    Class: 0x00240414
    Icon: audio-card
    Paired: yes
    Trusted: yes
    Blocked: no
    Connected: yes
    LegacyPairing: no
    UUID: Serial Port               (00001101-0000-1000-8000-00805f9b34fb)
    UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
    UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
    UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)

I switch the Speaker off, and get a Disconnect in Windows, all as expected.

I switch it back on and get a quick Connect/Disconnect in Windows. With bluetoothctrl I then try a connect with the same result

Attempting to connect to B8:F6:53:1E:0E:72
[CHG] Device B8:F6:53:1E:0E:72 Connected: yes
Failed to connect: org.bluez.Error.Failed
[CHG] Device B8:F6:53:1E:0E:72 Connected: no
[CHG] Device B8:F6:53:1E:0E:72 Connected: yes
[CHG] Device B8:F6:53:1E:0E:72 Connected: no

Repeat the Hack

During the Hack /var/log/syslog reports errors, but the devices connects and works again

Dec  1 21:13:26 Halucia bluetoothd[1027]: profiles/audio/avdtp.c:avdtp_connect_cb() connect to B8:F6:53:1E:0E:72: Permission denied (13)
Dec  1 21:14:06 Halucia bluetoothd[1027]: message repeated 3 times: [ profiles/audio/avdtp.c:avdtp_connect_cb() connect to B8:F6:53:1E:0E:72: Permission denied (13)]
Dec  1 21:16:05 Halucia bluetoothd[1027]: /org/bluez/hci0/dev_B8_F6_53_1E_0E_72/sep1/fd2: fd(41) ready
Dec  1 21:16:05 Halucia pulseaudio[2691]: org.freedesktop.DBus.Properties.Get /org/bluez/hci0/dev_B8_F6_53_1E_0E_72/sep1/fd2 Volume failed: org.freedesktop.DBus.Error.InvalidArgs: No such property 'Volume'
Dec  1 21:16:05 Halucia bluetoothd[1027]: profiles/audio/avctp.c:avctp_control_confirm() Control: Refusing unexpected connect
Dec  1 21:16:07 Halucia bluetoothd[1027]: profiles/audio/avctp.c:avctp_connect_cb() connect to B8:F6:53:1E:0E:72: Connection refused (111)

The Question

What do I need to do to get "Consumer Products" to connect and be able to reconnect to my PC, what am I missing ?

ao flag
after 2 weeks of doing this "hack" I have managed to get it to work with only pair, and connect. But you have to set the device in pairing mode. It seems it then gives the PC a new "key". The trust/remove/reboot is not really required.
Score:0
ao flag

After a update today it seems to be working, without me really doing much. THe Bluetoothctl command is howerver very usefull, but I guess this Question solved itself. The solution was time and a OS update ;)

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.