蓝牙无法正常工作 ubuntu 18.04 LTS

kk9*_*6kk 12 bluetooth 18.04

这个问题似乎很常见,但我尝试了之前问题中提出的所有解决方案,但没有成功。我的蓝牙只是不断搜索设备而无法检测到它们。

输出rfkill list

0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
Run Code Online (Sandbox Code Playgroud)

输出dmesg | grep Blue

[    1.725292] usb 2-4: Product: Bluetooth Radio 
[   22.987302] Bluetooth: Core ver 2.22
[   22.987324] Bluetooth: HCI device and connection manager initialized
[   22.987326] Bluetooth: HCI socket layer initialized
[   22.987328] Bluetooth: L2CAP socket layer initialized
[   22.987331] Bluetooth: SCO socket layer initialized
[   24.192938] Bluetooth: hci0: rtl: examining hci_ver=06 hci_rev=000b lmp_ver=06 lmp_subver=8723
[   24.192940] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_config.bin
[   24.262074] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_fw.bin
[   24.279971] Bluetooth: hci0: rom_version status=0 version=1
[   24.279990] Bluetooth: hci0: cfg_sz 0, total size 22496
[   31.827382] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   31.827384] Bluetooth: BNEP filters: protocol multicast
[   31.827387] Bluetooth: BNEP socket layer initialized
[   69.606019] Bluetooth: RFCOMM TTY layer initialized
[   69.606024] Bluetooth: RFCOMM socket layer initialized
[   69.606029] Bluetooth: RFCOMM ver 1.11
[  133.549264] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  149.425182] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  165.416224] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  195.195275] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  210.934271] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  227.034314] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  242.896317] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  259.043361] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  274.227449] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  289.383402] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  305.511470] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  321.387453] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  337.520479] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  353.398532] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  369.458540] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  385.298590] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  401.410629] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  417.274763] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  433.471653] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  449.380746] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  465.528845] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  481.409819] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  497.533809] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  513.404936] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  529.532964] Bluetooth: hci0: last event is not cmd complete (0x0f)
[  545.408026] Bluetooth: hci0: last event is not cmd complete (0x0f)
Run Code Online (Sandbox Code Playgroud)

输出lspci -knn | grep Net -A2; lsusb

0a:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723]
    Subsystem: Hewlett-Packard Company RTL8723BE PCIe Wireless Network Adapter [103c:2231]
    Kernel driver in use: rtl8723be
    Kernel modules: rtl8723be
Bus 001 Device 002: ID 8087:8001 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 0bda:b001 Realtek Semiconductor Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Run Code Online (Sandbox Code Playgroud)

在尝试了太多解决方案后,我擦除了整个磁盘并安装了新的 18.04 LTS 版本(我使用的是 HP 15 笔记本),但仍然存在同样的问题。

kle*_*ger 5

我有同样的问题,发现这个:

“一位名叫 Takashi Iwai 的优秀开发人员提出了一个解决方案,我将其整合到 4.15 内核中

sudo apt install git build-essential dkms
git clone https://github.com/jeremyb31/newbtfix-4.15.git
sudo dkms add ./newbtfix-4.15
sudo dkms install btusb/4.0
Run Code Online (Sandbox Code Playgroud)

重启”

在这里找到 ubuntu 18.04 LTS 蓝牙发现不起作用

我必须从 Synaptic 手动安装 git。我不明白它的作用,但它对我有用。

  • 那只能修复带有 0cf3:3004 Atheros 芯片组的机器 (2认同)

kk9*_*6kk 3

我运行以下命令部分修复了问题:

sudo apt-get install build-essential git
git clone https://github.com/lwfinger/rtlwifi_new/
cd rtlwifi_new
make
sudo make install
echo "options rtl8723be fwlps=0" | sudo tee /etc/modprobe.d/rtl8723be.conf
Run Code Online (Sandbox Code Playgroud)

之后你可能会遇到 wifi 连接速度慢的问题,我用以下命令修复了它:

sudo modprobe -r iwlwifi sudo modprobe iwlwifi 11n_disable=1
echo "options iwlwifi 11n_disable=1" | sudo tee /etc/modprobe.d/iwlwifi.conf
Run Code Online (Sandbox Code Playgroud)

重要提示:这并不能完全解决问题,我必须关闭 wifi,搜索并配对蓝牙设备,然后再次打开 wifi。我不知道为什么会发生这种情况,但谷歌搜索告诉我 ubuntu 驱动程序对于像我这样的 rtl8723b 适配器有问题