在 Ubuntu 24.04 上,尝试通过 USB TP-Link 蓝牙适配器连接我的 JBL (Flip 4) 扬声器和 JPL 耳机。
它发现了我的 Android 手机,但没有发现这些 JBL 设备 :(
有什么建议么)?
TIA,阿德里安。
在 Ubuntu 24.04 上,尝试通过 USB TP-Link 蓝牙适配器连接我的 JBL (Flip 4) 扬声器和 JPL 耳机。
它发现了我的 Android 手机,但没有发现这些 JBL 设备 :(
有什么建议么)?
TIA,阿德里安。
我有 Sennheiser pxc550-ii 蓝牙耳机,我想与我的 Ubuntu 20.04 桌面配对,并让 aptx-hd 和 aptx-ll 编解码器正常工作。值得注意的是,我已经安装了这个ppa。还值得注意的是,我可以很好地将 bt 与我的 bt 扬声器配对。
我试过使用默认的 bloothtooth 工具以及 blueman-manager。在两者中,我都可以在可用蓝牙设备列表中看到耳机,但两者都无法配对。
然后我转向遵循本指南,他们建议的命令的输出是:
第一个命令:
jam@jam-ncase:~$ lsmod | grep bluetooth
bluetooth 454656 49 btrtl,btintel,btbcm,bnep,btusb,rfcomm
ecdh_generic 16384 2 bluetooth
rfkill 28672 11 asus_wmi,bluetooth,cfg80211
crc16 16384 2 bluetooth,ext4
第二条命令:
jam@jam-ncase:~$ dmesg | grep Bluetooth
[ 2.285152] Bluetooth: Core ver 2.22
[ 2.285162] Bluetooth: HCI device and connection manager initialized
[ 2.285165] Bluetooth: HCI socket layer initialized
[ 2.285166] Bluetooth: L2CAP socket layer initialized
[ 2.285168] Bluetooth: SCO socket layer initialized
[ 2.302897] Bluetooth: hci0: read Intel version: 3707100180012d0d2a
[ 2.302898] Bluetooth: hci0: Intel device is already patched. patch num: 2a
[ 2.354229] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 2.354230] Bluetooth: BNEP filters: protocol multicast
[ 2.354232] Bluetooth: BNEP socket layer initialized
[ 6.314639] Bluetooth: RFCOMM TTY layer initialized
[ 6.314643] Bluetooth: RFCOMM socket layer initialized
[ 6.314646] Bluetooth: RFCOMM ver 1.11
第三条命令:
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2020-08-26 09:01:38 BST; 5min ago
Docs: man:bluetoothd(8)
Main PID: 6075 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 19076)
Memory: 1.9M
CGroup: /system.slice/bluetooth.service
└─6075 /usr/lib/bluetooth/bluetoothd
Aug 26 09:01:38 jam-ncase bluetoothd[6075]: Bluetooth management interface 1.16 initialized
Aug 26 09:01:38 jam-ncase bluetoothd[6075]: Endpoint registered: sender=:1.47 path=/MediaEndpoint/A2DPSource/VENDOR/LDAC
Aug 26 09:01:38 jam-ncase bluetoothd[6075]: Endpoint registered: sender=:1.47 path=/MediaEndpoint/A2DPSource/VENDOR/APTXHD
Aug 26 09:01:38 jam-ncase bluetoothd[6075]: Endpoint registered: sender=:1.47 path=/MediaEndpoint/A2DPSource/VENDOR/APTX
Aug 26 09:01:38 jam-ncase bluetoothd[6075]: Endpoint registered: sender=:1.47 path=/MediaEndpoint/A2DPSource/AAC
Aug 26 09:01:38 jam-ncase bluetoothd[6075]: Endpoint registered: sender=:1.47 path=/MediaEndpoint/A2DPSource/SBC
Aug 26 09:01:38 jam-ncase bluetoothd[6075]: Endpoint registered: sender=:1.47 path=/MediaEndpoint/A2DPSink/VENDOR/APTXHD
Aug 26 09:01:38 jam-ncase bluetoothd[6075]: Endpoint registered: sender=:1.47 path=/MediaEndpoint/A2DPSink/VENDOR/APTX
Aug 26 09:01:38 jam-ncase bluetoothd[6075]: Endpoint registered: sender=:1.47 path=/MediaEndpoint/A2DPSink/AAC
Aug 26 09:01:38 jam-ncase bluetoothd[6075]: Endpoint registered: sender=:1.47 path=/MediaEndpoint/A2DPSink/SBC
第四:
jam@jam-ncase:~$ rfkill list
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
我也注意到了这个错误信息:
jam@jam-ncase:~$ pactl load-module module-bluetooth-discover
Failure: Module initialisation failed
我尝试配对/连接时的终端输出可以在这里找到。从该文件中突出的一行是这一行:
> HCI Event: Disconnect Complete (0x05) plen 4 #56 [hci0] 25.099314
Status: Success (0x00)
Handle: 256
Reason: Remote Device Terminated due to Power Off (0x15)
不过我的耳机肯定是开机的。有人可以建议我应该如何尝试解决这个问题吗?
蓝牙驱动程序似乎存在问题,无法检测/连接到任何周围的蓝牙设备。我在另一个分区上有 Windows,我可以在那里访问蓝牙。
从下面的输出日志中可以看出 - 似乎有问题 - :[13696.202909] bluetooth hci0: Direct firmware load for brcm/BCM43142A0-105b-e065.hcd failed with error -2 [13696.202917] Bluetooth: hci0: BCM: Patch brcm/BCM43142A0-105b-e065.hcd not found
我尝试了一些其他解决方案 - Ubuntu 20.04 蓝牙无法正常工作,并且还卸载、重新安装、升级 blueman 但没有运气。
如果有人帮助我解决这个问题,那将非常有帮助。如果需要,我很乐意粘贴更多日志:)
提前致谢。
$ dmesg | grep -i blue
[ 36.756490] Bluetooth: Core ver 2.22
[ 36.756510] Bluetooth: HCI device and connection manager initialized
[ 36.756512] Bluetooth: HCI socket layer initialized
[ 36.756514] Bluetooth: L2CAP socket layer initialized
[ 36.756517] Bluetooth: SCO socket layer initialized
[ 37.041919] Bluetooth: hci0: BCM: chip id 70
[ 37.042919] Bluetooth: hci0: BCM: features 0x06
[ 37.058878] Bluetooth: hci0: BCM43142A
[ 37.059844] Bluetooth: hci0: BCM43142A0 (001.001.011) build 0000
[ 37.154737] bluetooth hci0: Direct firmware load for brcm/BCM43142A0-105b-e065.hcd failed with error -2
[ 37.154742] Bluetooth: hci0: BCM: Patch brcm/BCM43142A0-105b-e065.hcd not found
[ 39.167934] Bluetooth: hci0: command 0x1003 tx timeout
[ 39.168847] Bluetooth: hci0: unexpected event for opcode 0x1003
[ 51.753777] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 51.753780] Bluetooth: BNEP filters: protocol multicast
[ 51.753786] Bluetooth: BNEP socket layer initialized
[ 255.348972] Bluetooth: RFCOMM TTY layer initialized
[ 255.348977] Bluetooth: RFCOMM socket layer initialized
[ 255.348982] Bluetooth: RFCOMM ver 1.11
[13224.979350] Bluetooth: hci0: command 0x1003 tx timeout
[13224.979909] Bluetooth: hci0: unexpected event for opcode 0x1003
[13686.947871] Bluetooth: hci0: urb 00000000b4601f89 failed to resubmit (2)
[13696.184935] Bluetooth: hci0: BCM: chip id 70
[13696.185909] Bluetooth: hci0: BCM: features 0x06
[13696.201894] Bluetooth: hci0: VrushankLaptop
[13696.202839] Bluetooth: hci0: BCM43142A0 (001.001.011) build 0000
[13696.202909] bluetooth hci0: Direct firmware load for brcm/BCM43142A0-105b-e065.hcd failed with error -2
[13696.202917] Bluetooth: hci0: BCM: Patch brcm/BCM43142A0-105b-e065.hcd not found
[13698.222770] Bluetooth: hci0: command 0x1003 tx timeout
[13698.223733] Bluetooth: hci0: unexpected event for opcode 0x1003
[13730.575449] Bluetooth: hci0: urb 000000004f9ecf8b failed to resubmit (2)
[13769.439697] Bluetooth: hci0: BCM: chip id 70
[13769.440721] Bluetooth: hci0: BCM: features 0x06
[13769.456776] Bluetooth: hci0: VrushankLaptop
[13769.457745] Bluetooth: hci0: BCM43142A0 (001.001.011) build 0000
[13769.457795] bluetooth hci0: Direct firmware load for brcm/BCM43142A0-105b-e065.hcd failed with error -2
[13769.457800] Bluetooth: hci0: BCM: Patch brcm/BCM43142A0-105b-e065.hcd not found
[13771.470002] Bluetooth: hci0: command 0x1003 tx timeout
[13771.470674] Bluetooth: hci0: unexpected event for opcode 0x1003
今天我在预装了 Windows 7 的戴尔 Latitude E6410i 上安装了 Ubuntu 18.04 x64 LTS。我使用蓝牙 4.2 和 A2DP V1.3、AVRCP V1.6、HFP V1.6 和 HSP V1.2 连接到我的新JBL Flip4 扬声器,并成功配对。
我想在登录时自动连接到扬声器;每次我登录到 Ubuntu 时它都应该连接,但没有。
经过研究,我在网上找到了一些建议(比如Autoconnect to a bluetooth speaker in Ubuntu 16.04rc.local
),但在我的系统中找不到。另外,我安装了bt-autoconnect 这没有帮助。
我应该如何着手解决这个问题?
在联想 Y530 上运行 Kubuntu 18.10。
就其本身而言,WiFi 连接和蓝牙扬声器工作正常。如果两者都运行,则会引入严重干扰。这首先导致 WiFi 连接下降到速度的 10% 以下(在某些情况下,上传完全失败),以及 BT 信号严重干扰/跳过。
我尝试设置options iwlwifi bt_coex_active=N
,/etc/modprobe.d/iwlwifi.conf
这完全禁用了我的 BT(编辑:见下文)。然后我将它设置为bt_coex_active=0
并删除了 Blueman(不确定它的删除是否重要),这解决了 WiFi 问题,但如果使用 WiFi,BT 信号仍然无法正常工作(仍然严重跳过)。
编辑:我现在尝试N
再次将其设置为,它与0
. 不知道为什么它以前不起作用。
在 Windows 上,一切正常。此外,如果我从手机连接到扬声器,一切都很好——这意味着它可能不是信号本身被卡住了(遗憾的是,我的路由器不支持 5GHz,所以我无法彻底检查)。我尝试更改 WiFi 频道,但没有任何效果。
可能是驱动问题,但使用 WiFi USB 适配器时也会出现同样的问题。可能是这样的,虽然这个适配器被声明为“正在使用”用于连接,但它并没有真正使用,而且 WiFi 仍在通过内置购物车进行 - 我不知道如何检查这一点。
这是这些问题通常要求的输出,请询问是否需要更多输出。谢谢!
$ uname -a
Linux mylenovo 4.18.0-13-generic #14-Ubuntu SMP Wed Dec 5 09:04:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
$ sudo lshw -class network
*-network
description: Wireless interface
product: QCA9377 802.11ac Wireless Network Adapter
vendor: Qualcomm Atheros
physical id: 0
bus info: pci@0000:07:00.0
logical name: wlp7s0
version: 31
serial: 00:f4:8d:ed:2b:99
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=ath10k_pci driverversion=4.18.0-13-generic firmware=WLAN.TF.1.0-00002-QCATFSWPZ-5 ip=192.168.5.19 latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:145 memory:a4200000-a43fffff
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:08:00.0
logical name: enp8s0
version: 15
serial: e8:6a:64:49:a5:e4
size: 10Mbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=no multicast=yes port=MII speed=10Mbit/s
resources: irq:17 ioport:3000(size=256) memory:a4504000-a4504fff memory:a4500000-a4503fff
$ lspci
00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 07)
00:02.0 VGA compatible controller: Intel Corporation Device 3e9b
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 07)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th Gen Core Processor Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Cannon Lake PCH Thermal Controller (rev 10)
00:14.0 USB controller: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller (rev 10)
00:14.2 RAM memory: Intel Corporation Cannon Lake PCH Shared SRAM (rev 10)
00:15.0 Serial bus controller [0c80]: Intel Corporation Device a368 (rev 10)
00:15.1 Serial bus controller [0c80]: Intel Corporation Device a369 (rev 10)
00:16.0 Communication controller: Intel Corporation Cannon Lake PCH HECI Controller (rev 10)
00:17.0 SATA controller: Intel Corporation Device a353 (rev 10)
00:1d.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port 9 (rev f0)
00:1d.4 PCI bridge: Intel Corporation Device a334 (rev f0)
00:1d.5 PCI bridge: Intel Corporation Device a335 (rev f0)
00:1e.0 Communication controller: Intel Corporation Device a328 (rev 10)
00:1f.0 ISA bridge: Intel Corporation Device a30d (rev 10)
00:1f.3 Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10)
00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH SPI Controller (rev 10)
01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)
06:00.0 Non-Volatile memory controller: Sandisk Corp Device 5002
07:00.0 Network controller: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter (rev 31)
08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
$ ethtool -i enp8s0
driver: r8169
version: 2.3LK-NAPI
firmware-version: rtl8168h-2_0.0.2 02/26/15
expansion-rom-version:
bus-info: 0000:08:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no
我首先在 Windows 中连接了蓝牙设备。后来我格式化了windows分区。现在,当我尝试在 Ubuntu 中连接蓝牙设备时,我无法连接。我知道我们需要在 Windows 中生成的密钥。但是我从我的机器上删除了窗口。我该如何解决这个问题?
结果dmesg |grep -i blue
是
[ 12.869438] Bluetooth: Core ver 2.20
[ 12.869456] Bluetooth: HCI device and connection manager initialized
[ 12.869459] Bluetooth: HCI socket layer initialized
[ 12.869462] Bluetooth: L2CAP socket layer initialized
[ 12.869468] Bluetooth: SCO socket layer initialized
[ 12.896508] bluetooth hci0: Direct firmware load for brcm/BCM43142A0-0a5c-216d.hcd failed with error -2
[ 12.896513] Bluetooth: hci0: BCM: patch brcm/BCM43142A0-0a5c-216d.hcd not found
[ 14.437557] Bluetooth: RFCOMM TTY layer initialized
[ 14.437563] Bluetooth: RFCOMM socket layer initialized
[ 14.437568] Bluetooth: RFCOMM ver 1.11
[ 14.484529] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 14.484531] Bluetooth: BNEP filters: protocol multicast
[ 14.484534] Bluetooth: BNEP socket layer initialized
[ 14.901392] Bluetooth: hci0 command 0x1003 tx timeout
[ 765.511199] Modules linked in: bnep rfcomm nls_iso8859_1 uvcvideo videobuf2_vmalloc btusb videobuf2_memops videobuf2_core bluetooth v4l2_common videodev media wl(POE) snd_hda_codec_hdmi hp_wmi amdkfd sparse_keymap amd_iommu_v2 radeon intel_rapl iosf_mbi x86_pkg_temp_thermal intel_powerclamp coretemp kvm crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd joydev serio_raw snd_soc_rt286 cfg80211 snd_soc_core snd_compress i915 snd_pcm_dmaengine snd_hda_codec_realtek lpc_ich snd_hda_codec_generic ttm drm_kms_helper mei_me shpchp mei snd_hda_intel snd_hda_controller drm processor_thermal_device snd_hda_codec snd_hwdep i2c_algo_bit wmi snd_pcm snd_seq_midi snd_seq_midi_event snd_rawmidi int3403_thermal snd_seq snd_seq_device snd_timer video snd i2c_hid hid dw_dmac soundcore dw_dmac_core snd_soc_sst_acpi i2c_designware_platform i2c_designware_core hp_wireless spi_pxa2xx_platform int3402_thermal 8250_dw int3400_thermal acpi_thermal_rel mac_hid acpi_pad parport_pc ppdev lp parport psmouse ahci r8169 libahci mii sdhci_acpi sdhci
我添加了brcm/BCM43142A0-0a5c-216d.hcd
文件并重新启动。我可以连接到我的蓝牙扬声器,但无法播放音频。我在声音设置输出中找不到我的扬声器。
blueman
并重新启动,它工作。
我不知道为什么,但是在蓝牙设备上播放时会发出声音。
由于我已经升级了 Ubuntu 18.04(以及之后升级到 18.10),我遇到了蓝牙连接问题。例如,我的蓝牙扬声器播放的音乐严重滞后。经过调查dmesg
,我遇到了很多这些错误:
Bluetooth: hci0: last event is not cmd complete (0x0f)
我尝试bluez
通过官方 PPA 更新(5.48 -> 5.50),但这没有成功。
输出自lsusb | grep Blue
Bus 006 Device 003: ID 0930:0508 Toshiba Corp. Integrated Bluetooth HCI
奇怪的是,执行时我有 2 个蓝牙设备列表rfkill list
0: Toshiba Bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
2: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
的输出dmesg | egrep -i 'blue|firm'
可能表明固件存在一些问题:
[ 0.069143] acpi PNP0A08:00: [Firmware Info]: MMCONFIG for domain 0000 [bus 00-3f] only partially covers this bridge
[ 18.813225] toshiba_bluetooth: Toshiba ACPI Bluetooth device driver
[ 19.651213] iwl4965 0000:01:00.0: loaded firmware version 228.61.2.24
[ 55.834864] iwl4965 0000:01:00.0: Enabling power save might cause firmware crashes
[ 1204.278716] Bluetooth: Core ver 2.22
[ 1204.278758] Bluetooth: HCI device and connection manager initialized
[ 1204.278764] Bluetooth: HCI socket layer initialized
[ 1204.278771] Bluetooth: L2CAP socket layer initialized
[ 1204.278783] Bluetooth: SCO socket layer initialized
[ 1204.664153] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 1204.664155] Bluetooth: BNEP filters: protocol multicast
[ 1204.664162] Bluetooth: BNEP socket layer initialized
[ 1204.769152] Bluetooth: RFCOMM TTY layer initialized
[ 1204.769161] Bluetooth: RFCOMM socket layer initialized
[ 1204.769172] Bluetooth: RFCOMM ver 1.11
我的内核版本:
4.18.0-10-generic
请问我该如何解决?