我刚收到一个新的惠普设备。
默认情况下,在重新启动之后,蓝牙服务无法正确启动,并且找不到任何可与nor配对的设备,或NetworkManager的蓝牙指示器从"off“更改为"on”状态。
设备:Bus 002 Device 002: ID 8087:0029 Intel Corp. AX200 Bluetooth
日志表明rfkill有问题:
22:22:46 bluetoothd: Failed to set mode: Blocked through rfkill (0x12)
22:22:46 bluetoothd: Failed to set mode: Blocked through rfkill (0x12)
22:19:44 bluetoothd: Failed to set mode: Blocked through rfkill (0x12)
22:13:44 bluetoothd: Failed to set mode: Blocked through rfkill (0x12)
22:13:43 bluetoothd: Failed to set mode: Blocked through rfkill (0x12)事实上,它是“软禁”的:
# rfkill list
0: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no如果我解开它的障碍:
# sudo rfkill unblock Bluetooth
然后重新启动
# sudo systemctl restart bluetooth
它立即工作,并正确连接到设备,但如果我切换它回开和使用NetworkManager小程序,它再次不工作,蓝牙保持在“关闭”状态。

因此,NetworkManager似乎无法激活它。只有到那时,一个后续的systemctl restart bluetooth命令似乎使它再次工作,并更改为"on“状态,并开始列出附近的设备。
因此,简而言之,NetworkManager无法激活蓝牙接口。
请注意,关于WiFi,它的工作方式与预期的一样。
这个问题在这个设备上的所有内核(据我测试过)都是持久的,除了5.4.x。独立于Ubuntu版本,20.04,20.10和21.04的同一期。从USB引导同样的问题。在Windows上不存在任何问题。
在我重新启动计算机之后,这个问题偶尔不会出现,但大多数时候是这样的。
发布于 2021-05-16 14:52:00
在我的HP elitebook G2 840上,Intel Core™i5-5200Ucpu@ 2.20GHz×4 Ubuntu20.04.2LTS Linux5.8.0-53通用x86_64工作了一点:
编辑配置文件: sudo nano /etc/蓝牙/main.conf
将AutoEnable更改为True,取出#
在Reconnect=7淘汰#
在可快速连接处取出#
保存并退出。
根据这一员额:
https://www.makeuseof.com/fix-bluetooth-connectivity-issues-in-ubuntu/
发布于 2022-04-30 01:26:22
我只是用一些帮助解决了这个问题。首先,开放终端使用命令来做自己的事情:
sudo -i
cd /etc/init.d使用文本编辑器将其放入内部:
sleep 10
systemctl restart bluetooth.service将此脚本保存为BLUETOOTHFIX.sh。然后启用通过终端执行:
chmod 755 /etc/init.d/BLUETOOTHFIX.sh
chmod +x /etc/init.d/BLUETOOTHFIX.sh
ln -s /etc/init.d/BLUETOOTHFIX.sh /etc/rc3.d/S99BLUETOOTHFIX.sh发布于 2023-04-01 17:35:53
我和Ubuntu22.04也有类似的问题。最后,我从下面的台阶修复了它。
重新启动上述解决方案后,无法工作。
我尝试了sudo \ grep -i蓝牙,得到了下面的日志。
Bluetooth: hci0: BCM: firmware Patch file not found, tried:
Bluetooth: hci0: BCM: 'brcm/BCM43142A0-04ca-2009.hcd'根据这篇文章,我下载相关的xxx.hcd文件(在我的例子中是BCM43142A0-04ca-2009.hcd)并移到/lib/xxx.hcd文件夹。重新启动后,固件成功加载,蓝牙正常工作。
https://askubuntu.com/questions/1333957
复制相似问题