灵感来自本文我尝试使用我的三星 U Flex 蓝牙耳机,但失败了。虽然耳机处于配对模式,并且 Ubuntu 安装是昨天的,并带有最新更新,但它未显示在可用设备列表中:
silviu@silviu-Inspiron-3537:~$ dmesg | grep -i bluetooth # Shows all Bluetooth driver info
[ 5.187807] Bluetooth: Core ver 2.22
[ 5.190266] Bluetooth: HCI device and connection manager initialized
[ 5.190272] Bluetooth: HCI socket layer initialized
[ 5.190274] Bluetooth: L2CAP socket layer initialized
[ 5.190280] Bluetooth: SCO socket layer initialized
[ 5.330031] Bluetooth: hci0: BCM: chip id 70
[ 5.331042] Bluetooth: hci0: BCM: features 0x06
[ 5.453051] Bluetooth: hci0: BCM43142A
[ 5.454037] Bluetooth: hci0: BCM43142A0 (001.001.011) build 0000
[ 5.455166] bluetooth hci0: Direct firmware load for brcm/BCM43142A0-0a5c-21d7.hcd failed with error -2
[ 5.455169] Bluetooth: hci0: BCM: Patch brcm/BCM43142A0-0a5c-21d7.hcd not found
[ 7.141810] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 7.141812] Bluetooth: BNEP filters: protocol multicast
[ 7.141815] Bluetooth: BNEP socket layer initialized
[ 7.474343] Bluetooth: hci0: command 0x1003 tx timeout
[ 7.476034] Bluetooth: hci0: unexpected event for opcode 0x1003
[ 124.727177] Bluetooth: RFCOMM TTY layer initialized
[ 124.727182] Bluetooth: RFCOMM socket layer initialized
[ 124.727187] Bluetooth: RFCOMM ver 1.11
[ 227.915239] Bluetooth: hci0: command 0x1003 tx timeout
[ 227.916078] Bluetooth: hci0: unexpected event for opcode 0x1003
silviu@silviu-Inspiron-3537:~$ dmesg | grep -i bluetooth | grep -i firmware # Shows Bluetooth firmware issues
[ 5.455166] bluetooth hci0: Direct firmware load for brcm/BCM43142A0-0a5c-21d7.hcd failed with error -2
silviu@silviu-Inspiron-3537:~$ lsusb
Bus 001 Device 006: ID 0bda:58c2 Realtek Semiconductor Corp.
Bus 001 Device 005: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 004: ID 0a5c:21d7 Broadcom Corp. BCM43142 Bluetooth 4.0
Bus 001 Device 003: ID 046d:c53f Logitech, Inc.
Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 004: ID 04e8:61f5 Samsung Electronics Co., Ltd Portable SSD T5
Bus 003 Device 003: ID 2109:0812 VIA Labs, Inc. VL812 Hub
Bus 003 Device 002: ID 2109:0812 VIA Labs, Inc. VL812 Hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 003: ID 2109:2812 VIA Labs, Inc. VL812 Hub
Bus 002 Device 002: ID 2109:2812 VIA Labs, Inc. VL812 Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
在bluetoothctl
命令中我得到:
[bluetooth]# scan on
Failed to start discovery: org.bluez.Error.NotReady
[bluetooth]# devices
Device 00:E0:4C:A1:71:30 SoundCore mini
(这是另一个我无法连接播放音乐的设备。)
(重启后,出现以下情况:
[bluetooth]# scan on
Discovery started
[CHG] Controller F8:2F:A8:DE:8E:4E Discovering: yes
但仍然没有找到设备(无论如何只有 SoundCore 可见)。)
然后
[bluetooth]# pair 00:E0:4C:A1:71:30
Attempting to pair with 00:E0:4C:A1:71:30
Failed to pair: org.bluez.Error.AuthenticationFailed
blueman 包无法使其工作,它不会在用户界面显示错误。
silviu@silviu-Inspiron-3537:~$ pactl list | grep -i bluetooth # Shows if Bluetooth modules are loaded
Nume: module-bluetooth-policy
module.description = "Policy module to make using bluetooth devices out-of-the-box easier"
Nume: module-bluetooth-discover
module.description = "Detect available Bluetooth daemon and load the corresponding discovery module"
module.description = "Detect available BlueZ 5 Bluetooth audio devices and load BlueZ 5 Bluetooth audio drivers"
请注意,正常音频(通过插孔)效果很好。
谢谢。
更新 1
驱动程序运行良好,我可以听到本地音乐播放器。重启一两次后,设备无法正常工作:
驱动程序已加载:
silviu@silviu-Inspiron-3537:/usr/lib/firmware/brcm$ dmesg | grep -i bluetooth
[ 3.639401] Bluetooth: Core ver 2.22
[ 3.639420] Bluetooth: HCI device and connection manager initialized
[ 3.639423] Bluetooth: HCI socket layer initialized
[ 3.639426] Bluetooth: L2CAP socket layer initialized
[ 3.639429] Bluetooth: SCO socket layer initialized
[ 3.809329] Bluetooth: hci0: BCM: chip id 70
[ 3.810479] Bluetooth: hci0: BCM: features 0x06
[ 3.826379] Bluetooth: hci0: DESKTOP-DUOEBVI
[ 3.830335] Bluetooth: hci0: BCM43142A0 (001.001.011) build 0341
[ 4.641338] Bluetooth: hci0: BCM43142A0 (001.001.011) build 0341
[ 4.657337] Bluetooth: hci0: BCM43142A0 Generic USB Class 2 NonUHE @ 20 MHz
[ 5.769890] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 5.769892] Bluetooth: BNEP filters: protocol multicast
[ 5.769896] Bluetooth: BNEP socket layer initialized
[ 19.887946] Bluetooth: RFCOMM TTY layer initialized
[ 19.887950] Bluetooth: RFCOMM socket layer initialized
[ 19.887955] Bluetooth: RFCOMM ver 1.11
找到设备:
silviu@silviu-Inspiron-3537:/usr/lib/firmware/brcm$ bluetoothctl
Agent registered
[bluetooth]# scan on
Discovery started
[CHG] Controller F8:2F:A8:DE:8E:4E Discovering: yes
[CHG] Device 2C:BA:BA:55:9B:1A RSSI: -59
[CHG] Device 2C:BA:BA:55:9B:1A Modalias is nil
[CHG] Device 2C:BA:BA:55:9B:1A RSSI: -73
[CHG] Device 2C:BA:BA:55:9B:1A RSSI: -51
[bluetooth]# devices
Device 2C:BA:BA:55:9B:1A Samsung U Flex (9B1A)
并且已经配对:
[bluetooth]# pair 2C:BA:BA:55:9B:1A
Attempting to pair with 2C:BA:BA:55:9B:1A
Failed to pair: org.bluez.Error.AlreadyExists
当使用最近连接菜单中的设备名称连接 blueman 时,它会抛出此通知:
连接失败。
资源暂时不可用。
与蓝牙服务相关的是,的输出sudo service bluetooth status
是:
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2020-03-24 15:49:57 EET; 1h 57min left
Docs: man:bluetoothd(8)
Main PID: 804 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 4915)
Memory: 2.4M
CGroup: /system.slice/bluetooth.service
└─804 /usr/lib/bluetooth/bluetoothd
mar 24 15:49:57 silviu-Inspiron-3537 systemd[1]: Starting Bluetooth service...
mar 24 15:49:57 silviu-Inspiron-3537 bluetoothd[804]: Bluetooth daemon 5.50
mar 24 15:49:57 silviu-Inspiron-3537 bluetoothd[804]: Starting SDP server
mar 24 15:49:57 silviu-Inspiron-3537 systemd[1]: Started Bluetooth service.
mar 24 15:49:57 silviu-Inspiron-3537 bluetoothd[804]: Bluetooth management interface 1.14 initialized
mar 24 15:50:11 silviu-Inspiron-3537 bluetoothd[804]: Endpoint registered: sender=:1.205 path=/MediaEndpoint/A2DPSink/sbc
mar 24 15:50:11 silviu-Inspiron-3537 bluetoothd[804]: Endpoint registered: sender=:1.205 path=/MediaEndpoint/A2DPSource/sbc
另外,我如何让 U Flex 设备与 Skype 配合使用?在第一次重启导致设备再次无法在 Ubuntu 上使用之前,我可以听到对方的声音,但我这边只有噪音。在 Facebook 上,两个方向都有噪音。
谢谢。