Bluetooth qui ne fonctionnne plus depuis passage à Debian 12

Tags: #<Tag:0x00007f509ffb27b8>

Bonjour depuis mon passage à Debian 12 (réinstallation complète) le bluetooth ne fonctionne plus. Voici ce que j’obtiens :

root@dell:~# systemctl status bluetooth
● bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; preset: enabled)
     Active: active (running) since Mon 2024-04-01 01:35:16 CEST; 6min ago
       Docs: man:bluetoothd(8)
   Main PID: 625 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 9299)
     Memory: 2.9M
        CPU: 91ms
     CGroup: /system.slice/bluetooth.service
             └─625 /usr/libexec/bluetooth/bluetoothd

avril 01 01:35:16 dell bluetoothd[625]: profiles/audio/mcp.c:mcp_init() D-Bus experimental not enabled
avril 01 01:35:16 dell bluetoothd[625]: src/plugin.c:plugin_init() Failed to init mcp plugin
avril 01 01:35:16 dell bluetoothd[625]: profiles/audio/bap.c:bap_init() D-Bus experimental not enabled
avril 01 01:35:16 dell bluetoothd[625]: src/plugin.c:plugin_init() Failed to init bap plugin
avril 01 01:35:16 dell bluetoothd[625]: Bluetooth management interface 1.22 initialized
avril 01 01:35:16 dell bluetoothd[625]: profiles/sap/server.c:sap_server_register() Sap driver initialization failed.
avril 01 01:35:16 dell bluetoothd[625]: sap-server: Operation not permitted (1)
avril 01 01:35:38 dell bluetoothd[625]: src/service.c:btd_service_connect() a2dp-sink profile connect failed for 24:15:10:30:D9:53: P>
avril 01 01:36:17 dell bluetoothd[625]: src/service.c:btd_service_connect() a2dp-sink profile connect failed for 24:15:10:30:D9:53: P>
avril 01 01:36:39 dell bluetoothd[625]: src/service.c:btd_service_connect() a2dp-sink profile connect failed for 24:15:10:30:D9:53: P>
root@dell:~# bluetoothctl list
Controller 20:16:D8:9A:CD:90 dell [default]

Je dirait au hasard :

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.

https://wiki.debian.org/BluetoothUser/a2dp#a2dp-sink_profile_connect_failed_.5B....5D:_Protocol_not_available

que donne lsusb |grep -i blu ; lspci |grep -i blu
essaies
sudo apt-get install bluetooth blueman bluez bluez-obexd bluez-firmware pulseaudio-module-bluetooth gnome-bluetooth-3-common gnome-bluetooth-sendto ubertooth

et
sudo modprobe btusb ; sudo systemctl enable bluetooth.service ; sudo systemctl start bluetooth.service

Eventuellement sudo systemctl -f start bluetooth.service

J’ai eu le même ennui, ça correspond au changement de manière de gérer Bluetooth entre les versions 11 et 12, qui passe de pulse-audio à pipewire-audio et qui n’est pas bien mis à jour lorsqu’on upgrade visiblement.
En suivant la discussion ici, j’ai réinstallé pipewire-audio.
Je cite, « Celui-ci va désinstaller les paquets pulse-audio et installer les paquets qui vont bien. »
Et effectivement, ça a bien marché pour moi…