赞
踩
前情介绍
很简单发现蓝牙不能用,然后发现漏了文件。安装就是。
操作
```bash
#启用蓝牙,发现仍然没有用
sudo systemctl start bluetooth
#查看日志发现报错
dmesg | grep -i bluetooth
#我的报错如下
[ 3.620326] Bluetooth: hci0: RTL: loading rtl_bt/rtl8852bu_fw.bin
[ 3.620762] bluetooth hci0: Direct firmware load for rtl_bt/rtl8852bu_fw.bin failed with error -2
[ 3.620768] Bluetooth: hci0: RTL: firmware file rtl_bt/rtl8852bu_fw.bin not found
```
这些错误表示系统无法加载名为 "rtl8852bu_fw.bin" 的固件文件,因此导致蓝牙适配器无法正常工作。
查询资料发现解决办法。
![https://github.com/lwfinger/rtw88/issues/64](https://github.com/lwfinger/rtw88/issues/64)
![https://askubuntu.com/questions/1394983/issue-with-ubuntu-20-04-and-bluetooth-adapter-or-rtl-bt-rt18761b-fw-bin](https://askubuntu.com/questions/1394983/issue-with-ubuntu-20-04-and-bluetooth-adapter-or-rtl-bt-rt18761b-fw-bin)
进入网页下载
![https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/rtl_bt/](https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/rtl_bt/)
移动到相对应的位置
```bash
sudo mkdir -p /lib/firmware/rtl_bt/
sudo cp ~/rtl8852bu_fw.bin /lib/firmware/rtl_bt/
#重新加载蓝牙模块
sudo modprobe -r btusb
sudo modprobe btusb
#重启蓝牙
sudo systemctl restart bluetooth
```
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。