Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Testing - Bookworm] Bluetooth stopped working after upgrade [solved]

- - ALL UNSTABLE / TESTING THREADS SHOULD BE POSTED HERE - -
This sub-forum is the dedicated area for the ongoing Unstable/Testing releases of Debian. Advanced, or Experienced User support only. Use the software, give, and take advice with caution.
Post Reply
Message
Author
User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2042
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 151 times
Been thanked: 212 times

[Testing - Bookworm] Bluetooth stopped working after upgrade [solved]

#1 Post by Hallvor »

So I tested Bookworm on a spare computer and had immediate problems with Bluetooth.

System info:
Operating System: Debian GNU/Linux 12
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.0-7-amd64 (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz
Memory: 7.4 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 4400
Manufacturer: LENOVO
Product Name: 20ARA1DJMN
System Version: ThinkPad T440s

Behavior: Bluetooth can't see or connect to my audio devices. (pulseaudio-module-bluetooth is installed, and everything worked flawlessly in Bullseye.)

Notice how it complains about Sap driver failure.

Code: Select all

l 27 21:13:45 debian kernel: Bluetooth: hci0: Legacy ROM 2.5 revision 8.0 build 2 week 3 2013
april 27 21:13:45 debian kernel: bluetooth hci0: firmware: direct-loading firmware intel/ibt-hw-37.7.10-fw-1.80.2.3.d.bseq
april 27 21:13:45 debian kernel: Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.7.10-fw-1.80.2.3.d.bseq
april 27 21:13:45 debian kernel: Bluetooth: hci0: Intel BT fw patch 0x57 completed & activated
april 27 21:13:45 debian bluetoothd[1392]: profiles/sap/server.c:sap_server_register() Sap driver initialization failed.
april 27 21:13:45 debian bluetoothd[1392]: sap-server: Operation not permitted (1)
april 27 21:13:45 debian kernel: Bluetooth: MGMT ver 1.22
april 27 21:13:45 debian plasmashell[1793]: QQmlExpression: Expression file:///usr/share/plasma/plasmoids/org.kde.plasma.private.systemtray/contents/ui/ExpandedRepresentation.qml:181:21 depends on non-NOTIFYab>
april 27 21:13:45 debian plasmashell[1793]:     QAction::priority
april 27 21:13:45 debian plasmashell[1793]:     QAction::priority
april 27 21:13:45 debian plasmashell[1793]:     QAction::priority
april 27 21:13:45 debian plasmashell[1793]: QQmlExpression: Expression file:///usr/share/plasma/plasmoids/org.kde.plasma.private.systemtray/contents/ui/ExpandedRepresentation.qml:181:21 depends on non-NOTIFYab>
april 27 21:13:45 debian plasmashell[1793]:     QAction::priority
april 27 21:13:45 debian plasmashell[1793]:     QAction::priority
april 27 21:13:45 debian plasmashell[1793]:     QAction::priority
april 27 21:13:45 debian plasmashell[1793]: file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/plasma/core/private/DefaultToolTip.qml:69:13: QML Label: Binding loop detected for property "verticalAlignment"
april 27 21:13:45 debian systemd[1]: Reached target bluetooth.target - Bluetooth Support.
april 27 21:13:45 debian systemd[1614]: Reached target bluetooth.target - Bluetooth.
april 27 21:13:54 debian bluetoothd[1392]: src/service.c:btd_service_connect() a2dp-sink profile connect failed for F8:5C:7D:D2:8D:AA: Protocol not available
april 27 21:13:54 debian plasmashell[1793]: kf.bluezqt: PendingCall Error: "br-connection-profile-unavailable"
And some more data. "a2dp-sink profile connect failed" and "protocol not available".

Code: Select all

systemctl status bluetooth
● bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; preset: enabled)
     Active: active (running) since Thu 2023-04-27 21:24:04 CEST; 13min ago
       Docs: man:bluetoothd(8)
   Main PID: 6629 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 9093)
     Memory: 940.0K
        CPU: 63ms
     CGroup: /system.slice/bluetooth.service
             └─6629 /usr/libexec/bluetooth/bluetoothd

april 27 21:24:04 debian bluetoothd[6629]: profiles/audio/mcp.c:mcp_init() D-Bus experimental not enabled
april 27 21:24:04 debian bluetoothd[6629]: src/plugin.c:plugin_init() Failed to init mcp plugin
april 27 21:24:04 debian bluetoothd[6629]: profiles/audio/bap.c:bap_init() D-Bus experimental not enabled
april 27 21:24:04 debian bluetoothd[6629]: src/plugin.c:plugin_init() Failed to init bap plugin
april 27 21:24:04 debian bluetoothd[6629]: Bluetooth management interface 1.22 initialized
april 27 21:24:04 debian bluetoothd[6629]: profiles/sap/server.c:sap_server_register() Sap driver initialization failed.
april 27 21:24:04 debian bluetoothd[6629]: sap-server: Operation not permitted (1)
april 27 21:24:04 debian bluetoothd[6629]: src/adv_monitor.c:btd_adv_monitor_power_down() Unexpected NULL btd_adv_monitor_manager object upon power down
april 27 21:24:16 debian bluetoothd[6629]: src/service.c:btd_service_connect() a2dp-sink profile connect failed for F8:9C:4A:D1:8D:AA: Protocol not available
april 27 21:24:27 debian bluetoothd[6629]: src/service.c:btd_service_connect() a2dp-sink profile connect failed for F8:9C:4F:D1:8D:AA: Protocol not available
Ideas?
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

Aki
Global Moderator
Global Moderator
Posts: 2960
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 73 times
Been thanked: 405 times

Re: [Testing - Bookworm] Bluetooth stopped working after upgrade

#2 Post by Aki »

Hello,
According to [1] :
a2dp-sink profile connect failed [...]: Protocol not available

This error can appear when using PipeWire as your audio server and attempting to pair a device via Bluetooth, without first uninstalling the pulseaudio-module-bluetooth package.

If you're using PulseAudio, PulseAudio may not be properly connecting to the device. It might be because it was already playing. Stopping anything playing on PulseAudio, restarting PulseAudio, and reconnecting to the device may fix the problem.

In addition, you need the following settings in /etc/pulse/default.pa or /etc/pulse/default.pa.d/bluez5.pa:

load-module module-bluez5-device
load-module module-bluez5-discover

Then restart pulseaudio.
Unfortunately, I cannot test it, but I hope that can help.

---
[1] https://wiki.debian.org/BluetoothUser/a ... _available
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2042
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 151 times
Been thanked: 212 times

Re: [Testing - Bookworm] Bluetooth stopped working after upgrade

#3 Post by Hallvor »

Fixed.

I removed pulseaudio-module-bluetooth, reinstalled pipewire, added pulseaudio-module-bluetooth again and restarted pulseaudio and bluetooth.

Thanks, Aki!
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

Aki
Global Moderator
Global Moderator
Posts: 2960
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 73 times
Been thanked: 405 times

Re: [Testing - Bookworm] Bluetooth stopped working after upgrade [solved]

#4 Post by Aki »

Happy that you sorted it out. :-)
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

normalblaster
Posts: 2
Joined: 2023-06-19 09:56

Re: [Testing - Bookworm] Bluetooth stopped working after upgrade [solved]

#5 Post by normalblaster »

Hello,

I am having the same issue in that all my bluetooth audio devices no longer connect now I'm using bookworm [12]. I get the same message for each device when using bluetoothctl:

[bluetooth]# connect EC:81:93:AA:26:2C
Attempting to connect to EC:81:93:AA:26:2C
Failed to connect: org.bluez.Error.Failed br-connection-profile-unavailable

I have been through removal of pulseaudio-module-bluetooth, re-installation of pipewire and re-installation of pulseaudio-module-bluetooth. I have also added the load-module config in the /etc/pulse/default.pa file. Sadly this has not fixed the issue.

I've tried:
~$ pulseaudio --check
~$

which returns nothing so I assume all is well with pulseaudio.

Is there something else I need to check? Perhaps there will be a clue in dmesg but I don't know what to look for.

Many thanks for reading

John T.

normalblaster
Posts: 2
Joined: 2023-06-19 09:56

Re: [Testing - Bookworm] Bluetooth stopped working after upgrade [solved]

#6 Post by normalblaster »

Hi All,

I've fixed the issue for me. I found the clue here:

https://wiki.debian.org/PipeWire

In the section which reads:

For Debian 12 and newer, pipewire-audio-client-libraries is replaced by pipewire-alsa and pipewire-jack. It is recommended to install the metapackage pipewire-audio which depends on wireplumber (the recommended session manager), pipewire-pulse (to replace PulseAudio), pipewire-alsa (ALSA) and libspa-0.2-bluetooth (for Bluetooth support). Moreover, installing this metapackage will remove pulseaudio to prevent any conflicts between both sound server.

I was missing libspa-0.2-bluetooth. After I installed this:

$ su -
Password:
# apt-get install libspa-0.2-bluetooth

all started working. Two of my three bluetooth audio devices now connect and play from my xfce desktop. I still have one that connects but won't play at the moment but I'm going to leave that for another day.

Note: I did not remove pulseaudio-module-bluetooth.

Thanks to everyone on this thread and I hope this fixes the issue for anyone else. I'm happy to try and answer any further questions.

John T.

mazda1
Posts: 47
Joined: 2023-04-09 21:29
Has thanked: 5 times

Re: [Testing - Bookworm] Bluetooth stopped working after upgrade [solved]

#7 Post by mazda1 »

normalblaster wrote: 2023-06-20 12:07 I was missing libspa-0.2-bluetooth. After I installed this:

$ su -
Password:
# apt-get install libspa-0.2-bluetooth

all started working. Two of my three bluetooth audio devices now connect and play from my xfce desktop. I still have one that connects but won't play at the moment but I'm going to leave that for another day.

Note: I did not remove pulseaudio-module-bluetooth.
Hello ,

after upgrading from Debian 11 / Xfce to Debian 12 everything but bluetooth was working fine . I got this message : br connection profile unavalaible so I've just followed your steps and now everything's fine .
Thanks to everyone for sharing

Post Reply