我有一个USB蓝牙装置。我选择了这一个,因为有多个网站建议,它会开箱即用。但它根本不起作用。那么我如何调试这个问题呢?
当我打开设置时,蓝牙将被禁用。我可以点击切换按钮,这是改变,但没有任何影响。关闭设置并再次重新打开后,切换回到off。
在运行lsusb时,我可以看到设备:
Bus 002 Device 003: ID 0a5c:5801 Broadcom Corp. BCM5880 Secure Applications Processor with fingerprint swipe sensor
Bus 002 Device 002: ID 8087:8000 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0c45:64d0 Microdia Integrated Webcam
Bus 001 Device 002: ID 8087:8008 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 006: ID 0a5c:21e8 Broadcom Corp. BCM20702A0 Bluetooth 4.0 <-- here it is!
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub但是当我运行hciconfig --all时,我没有得到任何结果。
systemctl status bluetooth.service:
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2021-03-04 13:15:20 CET; 29min ago
Docs: man:bluetoothd(8)
Main PID: 241569 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 19028)
Memory: 976.0K
CGroup: /system.slice/bluetooth.service
└─241569 /usr/lib/bluetooth/bluetoothd
Mär 04 13:15:20 scala bluetoothd[241569]: src/main.c:parse_controller_config() Key file does not have group “Controller”
Mär 04 13:15:20 scala bluetoothd[241569]: src/main.c:parse_controller_config() Key file does not have group “Controller”
Mär 04 13:15:20 scala bluetoothd[241569]: src/main.c:parse_controller_config() Key file does not have group “Controller”
Mär 04 13:15:20 scala bluetoothd[241569]: src/main.c:parse_controller_config() Key file does not have group “Controller”
Mär 04 13:15:20 scala bluetoothd[241569]: src/main.c:parse_controller_config() Key file does not have group “Controller”
Mär 04 13:15:20 scala bluetoothd[241569]: src/main.c:parse_controller_config() Key file does not have group “Controller”
Mär 04 13:15:20 scala bluetoothd[241569]: src/main.c:parse_controller_config() Key file does not have group “Controller”
Mär 04 13:15:20 scala systemd[1]: Started Bluetooth service.
Mär 04 13:15:20 scala bluetoothd[241569]: Starting SDP server
Mär 04 13:15:20 scala bluetoothd[241569]: Bluetooth management interface 1.17 initializedsudo dmesg | egrep -i 'blue|firm':
[ 0.119119] Spectre V2 : Enabling Restricted Speculation for firmware calls
[ 0.145598] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[ 66.769407] Bluetooth: Core ver 2.22
[ 66.769432] Bluetooth: HCI device and connection manager initialized
[ 66.769437] Bluetooth: HCI socket layer initialized
[ 66.769439] Bluetooth: L2CAP socket layer initialized
[ 66.769441] Bluetooth: SCO socket layer initialized
[ 248.927546] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 248.927547] Bluetooth: BNEP filters: protocol multicast
[ 248.927550] Bluetooth: BNEP socket layer initializedrfkill list:
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
2: brcmwl-0: Wireless LAN
Soft blocked: no
Hard blocked: no
3: dell-wifi: Wireless LAN
Soft blocked: no
Hard blocked: no
4: dell-bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no附加信息:我已经在BIOS中禁用了车载戴尔蓝牙。
这就是我在syslog中看到的在插入dongle之后看到的情况:
Mar 4 13:37:47 scala kernel: [ 4814.594335] usb 3-2: new full-speed USB device number 7 using xhci_hcd
Mar 4 13:37:47 scala kernel: [ 4814.745408] usb 3-2: New USB device found, idVendor=0a5c, idProduct=21e8, bcdDevice= 1.12
Mar 4 13:37:47 scala kernel: [ 4814.745410] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Mar 4 13:37:47 scala kernel: [ 4814.745411] usb 3-2: Product: BCM20702A0
Mar 4 13:37:47 scala kernel: [ 4814.745412] usb 3-2: Manufacturer: Broadcom Corp
Mar 4 13:37:47 scala kernel: [ 4814.745412] usb 3-2: SerialNumber: 5CF3709F4FCE
Mar 4 13:37:47 scala mtp-probe: checking bus 3, device 7: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2"
Mar 4 13:37:47 scala mtp-probe: bus: 3, device: 7 was not an MTP device
Mar 4 13:37:47 scala mtp-probe: checking bus 3, device 7: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2"
Mar 4 13:37:47 scala mtp-probe: bus: 3, device: 7 was not an MTP device
Mar 4 13:37:52 scala pcscd[330950]: 66748427 commands.c:1120:CmdPowerOff Card absent or mute
Mar 4 13:37:52 scala systemd[1]: pcscd.service: Succeeded.下一件要检查的是什么?
发布于 2021-03-04 13:11:06
列表中的“下一步”将是查看蓝牙设备上是否存在“软块”。通过终点站运行这个:
rfkill list bluetooth你可能会看到这样的事情:
2: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no如果您看到蓝牙设备被软阻塞,您可能可以使用以下命令解决问题:
sudo rfkill unblock bluetooth此外,您可能需要重新启动蓝牙服务之后:
sudo service bluetooth restart只要你不介意时不时地尝试一些可疑的东西,你就可以尝试在设备上使用“替代固件”:
/lib/firmware/brcm目录中,其名称遵循{device model}-{manufacturer id}-{device id}.hcd格式: sudo https://s3.amazonaws.com/plugable/bin/fw-0a5c_21e8.hcd -O /lib/固件/brcm/brcm 20702A0-0a5c-21e8.hcd这个解决方案来自德国Linux论坛,环顾四周看看这个解决方案有多有效,它似乎适用于很多人。
希望这能让你不用再麻烦地使用你的蓝牙设备。
https://askubuntu.com/questions/1321055
复制相似问题