These additional A2DP profiles are provided by the patched pulseaudio- modules-bt available here: https://github.com/EHfive/pulseaudio-modules- bt
Regular pulseaudio-module-bluetooth from Groovy has only SBC codec for A2DP profile (so there's no need to differentiate). However, even when I use the package from Groovy repositories, the same error happens, but the message is as listed in the description pulseaudio: Refused to switch profile to a2dp_sink: Not connected But instead, with the patched version it has more codecs, so there are more profiles like a2dp_sink_ldac or a2dp_sink_sbc. The bluetooth headphones that I am using are Sony WH-1000XM4. These are supposed to support SBC and LDAC. Especially considering that LDAC is Sony's "invention". Side Note: libldac is build using source code from Android: https://android.googlesource.com/platform/external/libldac/ There is a PPA that provides binaries (libldac and patched pulseaudio- modules-bt): https://launchpad.net/~berglh/+archive/ubuntu/pulseaudio- a2dp I think it would be nice to have these in Ubuntu repositories as well... -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1891648 Title: Cannot switch to A2DP profile w/o restarting bluetooth.service [pulseaudio: Refused to switch profile to a2dp_sink: Not connected] Status in linux package in Ubuntu: Confirmed Bug description: When connecting to any Bluetooth device, PulseAudio fails to change its profile to A2DP (and leaves it in HSP/HFP). The following is appended to /var/log/syslog when trying to change profile in pavucontrol: Aug 14 14:59:02 k-laptop pulseaudio[18882]: Refused to switch profile to a2dp_sink: Not connected I'm currently using patched pulseaudio-modules-bt from here: https://github.com/EHfive/pulseaudio-modules-bt. But the problem persists with both packages. The working workaround I found is: sudo systemctl restart bluetooth.service bluetoothctl # list device MACs devices # use a MAC from the list above connect <MAC> After doing this, it is possible to switch to A2DP profile in pavucontrol. But such restart is required each time device is connected. I'm using Kubuntu 20.10 (development branch) pulseaudio: 1:13.99.1-1ubuntu8 pulseaudio-modules-bluetooth: 1:13.99.1-1ubuntu8-9git+20200812~dfeee4f but also reproducible with 1:13.99.1-1ubuntu8 ProblemType: Bug DistroRelease: Ubuntu 20.10 Package: pulseaudio 1:13.99.1-1ubuntu8 ProcVersionSignature: Ubuntu 5.4.0-43.47-generic 5.4.55 Uname: Linux 5.4.0-43-generic x86_64 NonfreeKernelModules: nvidia_modeset nvidia ApportVersion: 2.20.11-0ubuntu44 Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC0: kyrboh 19544 F.... pulseaudio /dev/snd/pcmC0D0c: kyrboh 19544 F...m pulseaudio /dev/snd/pcmC0D0p: kyrboh 19544 F...m pulseaudio CasperMD5CheckResult: skip CurrentDesktop: KDE Date: Fri Aug 14 15:06:43 2020 InstallationDate: Installed on 2020-08-07 (6 days ago) InstallationMedia: Kubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731) SourcePackage: pulseaudio UpgradeStatus: Upgraded to groovy on 2020-08-10 (3 days ago) dmi.bios.date: 05/22/2020 dmi.bios.vendor: Dell Inc. dmi.bios.version: 1.19.2 dmi.board.name: 05FFDN dmi.board.vendor: Dell Inc. dmi.board.version: A00 dmi.chassis.type: 10 dmi.chassis.vendor: Dell Inc. dmi.modalias: dmi:bvnDellInc.:bvr1.19.2:bd05/22/2020:svnDellInc.:pnXPS159560:pvr:rvnDellInc.:rn05FFDN:rvrA00:cvnDellInc.:ct10:cvr: dmi.product.family: XPS dmi.product.name: XPS 15 9560 dmi.product.sku: 07BE dmi.sys.vendor: Dell Inc. --- ProblemType: Bug ApportVersion: 2.20.11-0ubuntu44 Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC0: kyrboh 1062 F.... pulseaudio /dev/snd/pcmC0D0c: kyrboh 1062 F...m pulseaudio /dev/snd/pcmC0D0p: kyrboh 1062 F...m pulseaudio CasperMD5CheckResult: skip CurrentDesktop: KDE DistroRelease: Ubuntu 20.10 InstallationDate: Installed on 2020-08-07 (12 days ago) InstallationMedia: Kubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731) MachineType: Dell Inc. XPS 15 9560 NonfreeKernelModules: nvidia_modeset nvidia Package: linux (not installed) ProcFB: 0 i915drmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-43-generic root=UUID=9aa54552-f644-480c-acac-bd2259bcc1df ro quiet splash vt.handoff=7 ProcVersionSignature: Ubuntu 5.4.0-43.47-generic 5.4.55 RelatedPackageVersions: linux-restricted-modules-5.4.0-43-generic N/A linux-backports-modules-5.4.0-43-generic N/A linux-firmware 1.189 Tags: wayland-session groovy Uname: Linux 5.4.0-43-generic x86_64 UpgradeStatus: Upgraded to groovy on 2020-08-10 (9 days ago) UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo _MarkForUpload: True dmi.bios.date: 05/22/2020 dmi.bios.vendor: Dell Inc. dmi.bios.version: 1.19.2 dmi.board.name: 05FFDN dmi.board.vendor: Dell Inc. dmi.board.version: A00 dmi.chassis.type: 10 dmi.chassis.vendor: Dell Inc. dmi.modalias: dmi:bvnDellInc.:bvr1.19.2:bd05/22/2020:svnDellInc.:pnXPS159560:pvr:rvnDellInc.:rn05FFDN:rvrA00:cvnDellInc.:ct10:cvr: dmi.product.family: XPS dmi.product.name: XPS 15 9560 dmi.product.sku: 07BE dmi.sys.vendor: Dell Inc. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1891648/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp

