蓝牙耳机无法连接:org.bluez.Error.Failed br-connection-profile-unavailable

蓝牙耳机无法连接:org.bluez.Error.Failed br-connection-profile-unavailable

尝试将一些无线耳机连接到我的笔记本电脑。他们几天前工作然后停止了,我不明白为什么。在此之前,它会工作几天,然后停止,直到我重新启动或几个小时后再次尝试。现在已经快2周没有效果了。

$ neofetch 
OS: Arch Linux x86_64 
Host: 20BU000AUS ThinkPad T450 
Kernel: 5.17.7-zen1-2-zen 

# Installed 
bluez 5.64-2
bluez-firmware 1.2-9
bluez-hid2hci 5.64-2
bluez-libs 5.64-2
bluez-utils 5.64-2
hidapi 0.11.2-1
libldac 2.0.2.3-1
pulseaudio-bluetooth 15.0-4
sbc 1.5-2

$ bluetoothctl show
Powered: yes
Discoverable: no
Pairable: yes

$ bluetoothctl info 8D:40:4C:C6:73:A4 
Device 8D:40:4C:C6:73:A4 (public)
    Paired: yes
    Trusted: yes
    Blocked: no
    Connected: no
    LegacyPairing: no

$ bluetoothctl connect 8D:40:4C:C6:73:A4 
Attempting to connect to 8D:40:4C:C6:73:A4
Failed to connect: org.bluez.Error.Failed br-connection-profile-unavailable

$ journalctl -u bluetooth
bluetoothd[13782]: src/service.c:btd_service_connect() a2dp-sink profile connect failed for 8D:40:4C:C6:73:A4: Protocol not available

$ systemctl list-unit-files | grep blue
UNIT FILE                                  STATE           VENDOR PRESET
bluetooth-mesh.service                     enabled         disabled
bluetooth.service                          enabled         disabled
dbus-org.bluez.mesh.service                alias           -
dbus-org.bluez.service                     alias           -
bluetooth.target                           static          -

$ lsmod | grep bluetooth
bluetooth             925696  31 btrtl,btmtk,btintel,btbcm,bnep,btusb
crc16                  16384  1 bluetooth
rfkill                 36864  6 iwlmvm,bluetooth,thinkpad_acpi,cfg80211
ecdh_generic           16384  2 bluetooth

答案1

看起来OP在问题的评论中找到了解决方案,但对于其他看到这个问题的人来说,对我来说,它只需要一个systemctl --user enable pulseaudiosystemctl --user start pulseaudio修复它。

答案2

许多来源建议设置ControllerMode = bredrAutoEnable = true/etc/bluetooth/main.conf,它在我之前的安装中发挥了作用。

然而,在这种情况下,我必须注释掉该行ControllerMode = bredr才能解决“br-connection-profile-unavailable”错误。

(这两个都在 Arch 上,不确定是什么造成了差异)

答案3

我评论了AutoEnable = true=>#AutoEnable = true

答案4

尝试重置设备:

bluetoothctl untrust DEVICEID
bluetoothctl cancel-pairing DEVICEID
bluetoothctl remove DEVICEID
bluetoothctl scan on
bluetoothctl connect DEVICEID

相关内容