这个问题似乎很常见,但我尝试了前面问题中提出的所有解决方案,但都没有成功。我的蓝牙只是一直在搜索设备,但无法检测到它们。
输出rfkill list
:
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
输出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)
输出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
尝试了太多解决方案后,我擦除了整个磁盘并安装了全新的 18.04 LTS 版本(我使用的是 HP 15 笔记本),但问题仍然存在。
答案1
我遇到了同样的问题并发现了这一点:
“一位名叫 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
重启”
在此处找到 ubuntu 18.04 LTS 蓝牙发现不起作用
我必须从 Synaptic 手动安装 git。我不明白它的作用,但它对我来说很管用。
答案2
我部分修复了运行以下命令的问题:
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
此后你可能会面临 WiFi 连接速度慢的问题,我使用以下命令解决了该问题:
sudo modprobe -r iwlwifi sudo modprobe iwlwifi 11n_disable=1
echo "options iwlwifi 11n_disable=1" | sudo tee /etc/modprobe.d/iwlwifi.conf
重要的:这并没有完全解决问题,我必须关闭 wifi,搜索并配对蓝牙设备,然后再次打开 wifi。我不知道为什么会发生这种情况,但谷歌搜索告诉我,ubuntu 驱动程序与我的 rtl8723b 适配器有问题
答案3
升级系统后我遇到了同样的问题。我发现以下错误/var/log/dpkg.log
:
2019-03-23 16:37:24 status half-configured pulseaudio-module-bluetooth:amd64 1:11.1-1ubuntu7.1
2019-03-23 16:37:24 status half-installed pulseaudio-module-bluetooth:amd64 1:11.1-1ubuntu7.1
2019-03-23 16:37:24 status config-files pulseaudio-module-bluetooth:amd64 1:11.1-1ubuntu7.1
2019-03-23 16:37:24 status config-files pulseaudio-module-bluetooth:amd64 1:11.1-1ubuntu7.1
2019-03-23 16:37:24 status config-files pulseaudio-module-bluetooth:amd64 1:11.1-1ubuntu7.1
2019-03-23 16:37:24 status not-installed pulseaudio-module-bluetooth:amd64 <none>
所以我重新安装了该软件包,并重新启动了 pulseaudio,最终解决了这个问题:
sudo apt-get install --reinstall pulseaudio-module-bluetooth
pulseaudio -k
sudo alsa force-reload
答案4
我在 Mint 上,在内核更新到 4.15.0.33 后,开始出现同样的“最后一个事件不是 cmd 完成 (0x0f)”蓝牙网络连接问题,我所做的一切都无法解决它,但我启动到 4.15.0.32 后它又正常工作了。
因此,由于 Ubuntu 18.04 也使用 4.15 内核,您很可能遇到同样的问题,请尝试在 4.15.0.32 或更低版本上启动,看看是否能解决问题。