蓝牙突然挂了,怎么排查?

2023-02-25 13:09:28 +08:00
 lry

系统 Linux Mint 21.1 Vera ( 5.15.0-60-generic )

电脑待机了一下午,晚上回来就发现蓝牙没了

λ systemctl status bluetooth
○ bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor pre>
     Active: inactive (dead)
       Docs: man:bluetoothd(8)

2 月 25 10:54:54 mypc systemd[1]: Condition check resulted in Bluetooth serv>
λ rfkill list
0: phy0: Wireless LAN
	Soft blocked: yes
	Hard blocked: no
λ lsusb
Bus 004 Device 002: ID 05e3:0626 Genesys Logic, Inc. USB3.1 Hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 006: ID 0d8c:0014 C-Media Electronics, Inc. Audio Adapter (Unitek Y-247A)
Bus 003 Device 004: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
Bus 003 Device 003: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 003 Device 002: ID 1a81:2039 Holtek Semiconductor, Inc. USB Keyboard
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 0b05:1939 ASUSTek Computer, Inc. AURA LED Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
λ dmesg | grep -i 'blue'
[ 7896.558465] Bluetooth: Core ver 2.22
[ 7896.558481] NET: Registered PF_BLUETOOTH protocol family
[ 7896.558482] Bluetooth: HCI device and connection manager initialized
[ 7896.558484] Bluetooth: HCI socket layer initialized
[ 7896.558486] Bluetooth: L2CAP socket layer initialized
[ 7896.558488] Bluetooth: SCO socket layer initialized

主板自带的 AX200 ,目前 WIFI 还能正常工作。

1903 次点击
所在节点    Linux
17 条回复
icepie
2023-02-25 13:12:26 +08:00
systemctl start bluetooth 再看一下报错
lry
2023-02-25 13:16:56 +08:00
@icepie 没有报错。。

```
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2023-02-25 13:13:24 CST; 54s ago
Docs: man:bluetoothd(8)
Main PID: 7961 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 38259)
Memory: 1.8M
CPU: 21ms
CGroup: /system.slice/bluetooth.service
└─7961 /usr/lib/bluetooth/bluetoothd

2 月 25 13:13:24 mypc systemd[1]: Starting Bluetooth service...
2 月 25 13:13:24 mypc bluetoothd[7961]: Bluetooth daemon 5.64
2 月 25 13:13:24 mypc systemd[1]: Started Bluetooth service.
2 月 25 13:13:24 mypc bluetoothd[7961]: Starting SDP server
2 月 25 13:13:24 mypc bluetoothd[7961]: Bluetooth management interface 1.21 initialized
```
lry
2023-02-25 13:19:37 +08:00
虽然手动 start bluetooth 后 status 正常,但是 bluetooth manager 里还是提示 bluez daemon not running
lry
2023-02-25 13:22:18 +08:00
@lry #2 我刚重启又试了一次,手动 start 后再看 status 一直重复提示 Condition check resulted in Bluetooth serv>
icepie
2023-02-25 13:22:59 +08:00
bluetoothctl 看看
icepie
2023-02-25 13:23:28 +08:00
https://wiki.archlinux.org/title/Bluetooth 或者参考一下 arch wiki 的蓝牙配置
lry
2023-02-25 13:25:35 +08:00
@icepie bluetoothctl 一直在 Waiting to connect to bluetoothd...
placeholder
2023-02-25 13:27:57 +08:00
小概率是驱动的问题,

不知道你说的待机是什么状态,休眠,注销还是正常开机没有操作
x1596357
2023-02-25 13:28:01 +08:00
Intel 的蓝牙硬件有个静电消除的 bug 。你把电脑关机,然后长按电源键 10 秒试试。
tangv2
2023-02-25 13:34:48 +08:00
和我一样 设备管理 - 查看-查看全部隐藏,看一下是不是变透明了 ,重启电脑,不行的话就重下个蓝牙驱动就好了
lry
2023-02-25 13:50:00 +08:00
@icepie 好的,我看了下,手动 load btusb 这个 module 后,systemctl start bluetooth 后状态显示 running, 之后 bluetoothctl 连上去就出现了里面的 No default controller available 问题,但是 journalctl 没发现里面说的那两个错误。
lry
2023-02-25 13:51:53 +08:00
@placeholder 正常开机没有操作。
icepie
2023-02-25 14:39:27 +08:00
@tangv2 哥们 人家是 linux
proxychains
2023-02-25 14:45:45 +08:00
歪个楼 (挂牙科看看
AzadCypress
2023-02-25 15:00:08 +08:00
我上次更新系统后重启蓝牙出问题,wifi 能用,bluetoothctl 也是 no default controller 错误。试了好多方法包括改蓝牙配置文件,重装 btusb module ,重置 BIOS 等
后面用 Windows 启动发现也用不了蓝牙,判断应该是硬件问题。于是淘宝买了块 ax210 ,插上就能用了
424778940
2023-02-25 23:18:22 +08:00
有些蓝牙方案是要 usb 载入固件之后才能用的(对 就是每次开机驱动都要载入固件) 记得之前有些 wwan 卡也是这样
你去研究一下固件问题吧- -...
wheat0r
2023-02-26 00:13:14 +08:00
热风枪吹一把😂

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/919102

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX