Ubuntu系统设置显示蓝牙已禁用

提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档


问题描述

Ubuntu菜单栏一直有蓝牙图标,突然蓝牙图标消失了,进入系统设置蓝牙窗口,显示蓝牙已禁用,手动打开蓝牙没有反应。记录解决问题过程。


一、查看蓝牙状态

桌面打开终端,输入以下命令查看蓝牙软硬件是否被禁用。

rfkill list

我的显示如下信息,说明软硬件都没问题。

0: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no

二、查看系统日志

有时候查看系统日志可以提供有用的信息,尤其是关于蓝牙服务启动或失败的信息。可以使用以下命令查看最近的系统日志:

dmesg | grep -i bluetooth

或者

journalctl -xe | grep -i bluetooth

我的显示:

ubuntu@ubuntu:~$ dmesg | grep -i bluetooth
[   36.377782] Bluetooth: Core ver 2.22
[   36.377799] Bluetooth: HCI device and connection manager initialized
[   36.377801] Bluetooth: HCI socket layer initialized
[   36.377803] Bluetooth: L2CAP socket layer initialized
[   36.377807] Bluetooth: SCO socket layer initialized
[   36.382474] Bluetooth: hci0: Bootloader revision 0.3 build 0 week 24 2017
[   36.384482] Bluetooth: hci0: Device revision is 1
[   36.384482] Bluetooth: hci0: Secure boot is enabled
[   36.384483] Bluetooth: hci0: OTP lock is enabled
[   36.384483] Bluetooth: hci0: API lock is enabled
[   36.384483] Bluetooth: hci0: Debug lock is disabled
[   36.384484] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[   36.513855] bluetooth hci0: Direct firmware load for intel/ibt-20-1-3.sfi failed with error -2
[   36.513859] Bluetooth: hci0: Failed to load Intel firmware file (-2)
[   36.516260] Bluetooth: hci0: Bootloader revision 0.3 build 0 week 24 2017
[   36.518260] Bluetooth: hci0: Device revision is 1
[   36.518260] Bluetooth: hci0: Secure boot is enabled
[   36.518260] Bluetooth: hci0: OTP lock is enabled
[   36.518261] Bluetooth: hci0: API lock is enabled
[   36.518261] Bluetooth: hci0: Debug lock is disabled
[   36.518262] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[   36.518275] bluetooth hci0: Direct firmware load for intel/ibt-20-1-3.sfi failed with error -2
[   36.518276] Bluetooth: hci0: Failed to load Intel firmware file (-2)
[   43.266888] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   43.266890] Bluetooth: BNEP filters: protocol multicast
[   43.266894] Bluetooth: BNEP socket layer initialized

其中这两行说明尝试加载蓝牙适配器所需的Intel固件文件失败的错误。错误代码 -2 表示找不到或无法访问所需的固件文件——ibt-20-1-3.sfi。

[   36.513855] bluetooth hci0: Direct firmware load for intel/ibt-20-1-3.sfi failed with error -2
[   36.513859] Bluetooth: hci0: Failed to load Intel firmware file (-2)

三、下载缺失固件文件

根据日志输出,固件文件是 ibt-20-1-3.sfi。这个文件应该位于 /lib/firmware/intel/ 目录下。但是现在没有了,需要下载文件补充进/intel/目录下。

在以下连接下载缺失固件:
ibt-20-1-3.sfi

ctl+c复制不进去,需要用命令复制固件文件进系统目录:

sudo cp ibt-20-1-3.sfi /lib/firmware/intel/

四、重新启动蓝牙服务

移动完固件文件后,用以下命令重新启动蓝牙服务,以确保系统能够正确加载固件并启用蓝牙功能:

sudo systemctl restart bluetooth

然后重启电脑,再次进入Ubuntu桌面就能在菜单栏看到蓝牙图标了,能正常使用了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值