蓝牙无法工作(没有可用的适配器) Arch Linux KDE

蓝牙无法工作(没有可用的适配器) Arch Linux KDE

dmesg | grep 蓝色

[   25.483325] bluetooth hci0: Direct firmware load for brcm/BCM20702A1-0b05-180a.hcd failed with error -2

这是我在 Arch 网站上看到的唯一紧密匹配的固件,但它看起来并不正确:

Arch Linux - bluez-firmware 1.2-8(任何)https://www.archlinux.org/packages/extra/any/bluez-firmware/ 说明:Broadcom BCM203x 和 STLC2300 蓝牙芯片的固件

更多信息:

lsmod | grep btusb

btusb                  40960  0
btrtl                  16384  1 btusb
btbcm                  16384  1 btusb
btintel                16384  1 btusb
bluetooth             495616  5 btrtl,btintel,btbcm,btusb
usbcore               212992  8 usbhid,usb_storage,ehci_hcd,xhci_pci,btusb,uas,xhci_hcd,ehci_pci

吃豆子-Qs 蓝色*

local/bluedevil 1:5.11.5-1 (plasma)
    Integrate the Bluetooth technology within KDE workspace and applications
local/bluez 5.48-1
    Daemons for the bluetooth protocol stack
local/bluez-libs 5.48-1
    Deprecated libraries for the bluetooth protocol stack
local/bluez-qt 5.42.0-1 (kf5)
    Qt wrapper for Bluez 5 DBus API
local/bluez-utils 5.48-1
    Development and debugging utilities for the bluetooth protocol stack                                
local/libbluray 1.0.1-1                                                                                 
    Library to access Blu-Ray disks for video playback                                                  
local/sbc 1.3-1                                                                                         
    Bluetooth Subband Codec (SBC) library 

ls -la /lib/固件/brcm

total 14396
drwxr-xr-x 1 root root   1340 Dec  9 21:15 .
drwxr-xr-x 1 root root   8630 Dec  9 21:15 ..
-rw-r--r-- 1 root root 269595 Dec  6 20:24 bcm4329-fullmac-4.bin
-rw-r--r-- 1 root root  96224 Dec  6 20:24 bcm43xx-0.fw
-rw-r--r-- 1 root root    180 Dec  6 20:24 bcm43xx_hdr-0.fw
-rw-r--r-- 1 root root 397312 Dec  6 20:24 brcmfmac43143.bin
-rw-r--r-- 1 root root 385067 Dec  6 20:24 brcmfmac43143-sdio.bin
-rw-r--r-- 1 root root 348160 Dec  6 20:24 brcmfmac43236b.bin
-rw-r--r-- 1 root root 455745 Dec  6 20:24 brcmfmac43241b0-sdio.bin
-rw-r--r-- 1 root root 403855 Dec  6 20:24 brcmfmac43241b4-sdio.bin
-rw-r--r-- 1 root root 408682 Dec  6 20:24 brcmfmac43241b5-sdio.bin
-rw-r--r-- 1 root root 479232 Dec  6 20:24 brcmfmac43242a.bin
-rw-r--r-- 1 root root 253748 Dec  6 20:24 brcmfmac4329-sdio.bin
-rw-r--r-- 1 root root 222126 Dec  6 20:24 brcmfmac4330-sdio.bin
-rw-r--r-- 1 root root 402210 Dec  6 20:24 brcmfmac43340-sdio.bin
-rw-r--r-- 1 root root 451566 Dec  6 20:24 brcmfmac4334-sdio.bin
-rw-r--r-- 1 root root 569291 Dec  6 20:24 brcmfmac4335-sdio.bin
-rw-r--r-- 1 root root 219557 Dec  6 20:24 brcmfmac43362-sdio.bin
-rw-r--r-- 1 root root 562183 Dec  6 20:24 brcmfmac4339-sdio.bin
-rw-r--r-- 1 root root 382455 Dec  6 20:24 brcmfmac43430a0-sdio.bin
-rw-r--r-- 1 root root 369577 Dec  6 20:24 brcmfmac43430-sdio.bin
-rw-r--r-- 1 root root 488193 Dec  6 20:24 brcmfmac43455-sdio.bin
-rw-r--r-- 1 root root 623304 Dec  6 20:24 brcmfmac4350c2-pcie.bin
-rw-r--r-- 1 root root 626140 Dec  6 20:24 brcmfmac4350-pcie.bin
-rw-r--r-- 1 root root 626589 Dec  6 20:24 brcmfmac4354-sdio.bin
-rw-r--r-- 1 root root 557056 Dec  6 20:24 brcmfmac43569.bin
-rw-r--r-- 1 root root 661999 Dec  6 20:24 brcmfmac4356-pcie.bin
-rw-r--r-- 1 root root 526383 Dec  6 20:24 brcmfmac4356-sdio.bin
-rw-r--r-- 1 root root 550333 Dec  6 20:24 brcmfmac43570-pcie.bin
-rw-r--r-- 1 root root 633817 Dec  6 20:24 brcmfmac4358-pcie.bin
-rw-r--r-- 1 root root 595472 Dec  6 20:24 brcmfmac43602-pcie.ap.bin
-rw-r--r-- 1 root root 635449 Dec  6 20:24 brcmfmac43602-pcie.bin
-rw-r--r-- 1 root root 989401 Dec  6 20:24 brcmfmac4366b-pcie.bin
-rw-r--r-- 1 root root 623448 Dec  6 20:24 brcmfmac4371-pcie.bin

列出的解决方案这里听起来好像可能有用,但事实并非如此。尝试后,固件列在上述目录中:

-rw-r----- 1 root root  35127 Feb  5 01:26 BCM20702A1-13d3-3404.hcd

更新:我在 Arch AUR 中找到了 bcm20702a1 固件这里。删除上面手动安装的文件后,我安装了 AUR 包(没有错误)。重启后问题依然没有解决。

上面的目录现在包含所有这些文件:

-rw-r--r-- 1 root root  35063 Feb  5 01:39 BCM20702A1-0489-e032.hcd
-rw-r--r-- 1 root root  34904 Feb  5 01:39 BCM20702A1-0489-e042.hcd
-rw-r--r-- 1 root root  35063 Feb  5 01:39 BCM20702A1-0489-e046.hcd
-rw-r--r-- 1 root root  29101 Feb  5 01:39 BCM20702A1-0489-e047.hcd
-rw-r--r-- 1 root root  35063 Feb  5 01:39 BCM20702A1-0489-e04f.hcd
-rw-r--r-- 1 root root  35029 Feb  5 01:39 BCM20702A1-0489-e052.hcd
-rw-r--r-- 1 root root  35063 Feb  5 01:39 BCM20702A1-0489-e059.hcd
-rw-r--r-- 1 root root  35175 Feb  5 01:39 BCM20702A1-0489-e07a.hcd
-rw-r--r-- 1 root root  35063 Feb  5 01:39 BCM20702A1-0489-e087.hcd
-rw-r--r-- 1 root root  34904 Feb  5 01:39 BCM20702A1-04ca-2003.hcd
-rw-r--r-- 1 root root  35063 Feb  5 01:39 BCM20702A1-04ca-2004.hcd
-rw-r--r-- 1 root root  35108 Feb  5 01:39 BCM20702A1-04ca-2005.hcd
-rw-r--r-- 1 root root  35127 Feb  5 01:39 BCM20702A1-04ca-200a.hcd
-rw-r--r-- 1 root root  35127 Feb  5 01:39 BCM20702A1-04ca-200b.hcd
-rw-r--r-- 1 root root  35127 Feb  5 01:39 BCM20702A1-04ca-200c.hcd
-rw-r--r-- 1 root root  35063 Feb  5 01:39 BCM20702A1-04ca-200e.hcd
-rw-r--r-- 1 root root  35128 Feb  5 01:39 BCM20702A1-04ca-200f.hcd
-rw-r--r-- 1 root root  35000 Feb  5 01:39 BCM20702A1-050d-065a.hcd
-rw-r--r-- 1 root root  35027 Feb  5 01:39 BCM20702A1-0930-021e.hcd
-rw-r--r-- 1 root root  35220 Feb  5 01:39 BCM20702A1-0930-0221.hcd
-rw-r--r-- 1 root root  35175 Feb  5 01:39 BCM20702A1-0930-0223.hcd
-rw-r--r-- 1 root root  35061 Feb  5 01:39 BCM20702A1-0a5c-2169.hcd
-rw-r--r-- 1 root root  35186 Feb  5 01:39 BCM20702A1-0a5c-216b.hcd
-rw-r--r-- 1 root root  35080 Feb  5 01:39 BCM20702A1-0a5c-216f.hcd
-rw-r--r-- 1 root root  35127 Feb  5 01:39 BCM20702A1-0a5c-21de.hcd
-rw-r--r-- 1 root root  34997 Feb  5 01:39 BCM20702A1-0a5c-21e1.hcd
-rw-r--r-- 1 root root  35156 Feb  5 01:39 BCM20702A1-0a5c-21e3.hcd
-rw-r--r-- 1 root root  35042 Feb  5 01:39 BCM20702A1-0a5c-21e6.hcd
-rw-r--r-- 1 root root  35075 Feb  5 01:39 BCM20702A1-0a5c-21e8.hcd
-rw-r--r-- 1 root root  34934 Feb  5 01:39 BCM20702A1-0a5c-21ec.hcd
-rw-r--r-- 1 root root  35201 Feb  5 01:39 BCM20702A1-0a5c-21f1.hcd
-rw-r--r-- 1 root root  35201 Feb  5 01:39 BCM20702A1-0a5c-21f3.hcd
-rw-r--r-- 1 root root  35156 Feb  5 01:39 BCM20702A1-0a5c-21f4.hcd
-rw-r--r-- 1 root root  35218 Feb  5 01:39 BCM20702A1-0a5c-21fb.hcd
-rw-r--r-- 1 root root  35082 Feb  5 01:39 BCM20702A1-0a5c-21fd.hcd
-rw-r--r-- 1 root root  35156 Feb  5 01:39 BCM20702A1-0a5c-640b.hcd
-rw-r--r-- 1 root root  35063 Feb  5 01:39 BCM20702A1-0b05-17b5.hcd                                     
-rw-r--r-- 1 root root  35000 Feb  5 01:39 BCM20702A1-0b05-17cb.hcd                                     
-rw-r--r-- 1 root root  35127 Feb  5 01:39 BCM20702A1-0b05-17cf.hcd                                     
-rw-r--r-- 1 root root  35077 Feb  5 01:39 BCM20702A1-0b05-180a.hcd                                     
-rw-r--r-- 1 root root  35063 Feb  5 01:39 BCM20702A1-105b-e066.hcd                                     
-rw-r--r-- 1 root root  34906 Feb  5 01:39 BCM20702A1-13d3-3384.hcd
-rw-r--r-- 1 root root  35108 Feb  5 01:39 BCM20702A1-13d3-3392.hcd
-rw-r--r-- 1 root root  35127 Feb  5 01:39 BCM20702A1-13d3-3404.hcd
-rw-r--r-- 1 root root  35148 Feb  5 01:39 BCM20702A1-13d3-3411.hcd
-rw-r--r-- 1 root root  35082 Feb  5 01:39 BCM20702A1-13d3-3413.hcd
-rw-r--r-- 1 root root  35082 Feb  5 01:39 BCM20702A1-13d3-3418.hcd
-rw-r--r-- 1 root root  35122 Feb  5 01:39 BCM20702A1-13d3-3435.hcd
-rw-r--r-- 1 root root  35122 Feb  5 01:39 BCM20702A1-13d3-3456.hcd
-rw-r--r-- 1 root root  34954 Feb  5 01:39 BCM20702A1-145f-01a3.hcd
-rw-r--r-- 1 root root  35125 Feb  5 01:39 BCM20702A1-413c-8143.hcd
-rw-r--r-- 1 root root  35055 Feb  5 01:39 BCM20702A1-413c-8197.hcd

请注意,BCM20702A1-0b05-180a.hcd 与我的错误消息中列出的硬件完全匹配,因此人们希望这已经解决了问题。它没。然而,日志看起来更好,所以也许这是迈向解决方案的一步:

dmesg | grep -i 蓝色

[   11.263011] Bluetooth: Core ver 2.22
[   11.263032] Bluetooth: HCI device and connection manager initialized
[   11.263035] Bluetooth: HCI socket layer initialized
[   11.263037] Bluetooth: L2CAP socket layer initialized
[   11.263041] Bluetooth: SCO socket layer initialized
[   11.411884] Bluetooth: hci0: BCM: chip id 63
[   11.412884] Bluetooth: hci0: BCM: features 0x07
[   11.428908] Bluetooth: hci0: BCM20702A
[   11.429897] Bluetooth: hci0: BCM20702A1 (001.002.014) build 0000
[   12.190957] Bluetooth: hci0: BCM20702A1 (001.002.014) build 1714
[   12.206954] Bluetooth: hci0: Bluetooth USB module

更新 2:在最后一步之后,一个更简单的步骤解决了问题:

systemctl start bluetooth.service 
systemctl enable bluetooth.service

我会根据这个写一个答案。

答案1

对我的问题的两次更新最终确实产生了解决方案。然而,作为一个更合适的答案,我相信这个确切错误的解决方案可以像以下步骤一样简洁:

pacaur -S bcm20702a1-firmware
sudo modprobe -R btusb
sudo modprobe btusb
systemctl start bluetooth.service 
systemctl enable bluetooth.service

我确实遇到了一个额外的问题:蓝牙文件传输失败 - a2dp-源配置文件连接失败:协议不可用

设备无法连接,日志中出现错误

如果您在尝试连接到设备时在 Journalctl 输出中看到类似以下的消息:

a2dp-source profile connect failed for 9C:64:40:22:E1:3F: Protocol not available

尝试安装pulseaudio-bluetooth并重新启动pulseaudio。即使仅使用文件传输,也会出现此错误。

相关内容