蓝牙鼠标无法连接,连接后频繁断开且报错Host is down的问题求助
蓝牙鼠标无法连接,连接后频繁断开且报错Host is down的问题求助
各位好,我遇到了一个棘手的蓝牙鼠标连接问题——昨天还能正常工作的鼠标,今天突然完全没法用了,折腾了好几种操作都没解决,想请大家帮忙看看问题出在哪。
操作过程与bluetoothctl输出
我先在bluetoothctl里尝试配对、信任、连接设备,具体输出如下:
[bluetooth]# pair 11:21:EC:00:00:02 Attempting to pair with 11:21:EC:00:00:02 Failed to pair: org.bluez.Error.AlreadyExists [bluetooth]# trust 11:21:EC:00:00:02 Changing 11:21:EC:00:00:02 trust succeeded [bluetooth]# connect 11:21:EC:00:00:02 Attempting to connect to 11:21:EC:00:00:02 [CHG] Device 11:21:EC:00:00:02 Connected: yes Failed to connect: org.bluez.Error.Failed br-connection-create-socket [CHG] Device 11:21:EC:00:00:02 Connected: no
之后我反复开关鼠标(保持bluetoothctl运行),发现设备会反复连接又立刻断开:
[CHG] Device 11:21:EC:00:00:02 Connected: yes [CHG] Device 11:21:EC:00:00:02 Connected: no [CHG] Device 11:21:EC:00:00:02 Connected: yes [CHG] Device 11:21:EC:00:00:02 Connected: no [CHG] Device 11:21:EC:00:00:02 Connected: yes [CHG] Device 11:21:EC:00:00:02 Connected: no [CHG] Device 11:21:EC:00:00:02 Connected: yes [CHG] Device 11:21:EC:00:00:02 Connected: no [bluetooth]#
syslog日志信息
当我手动执行connect命令时,查看syslog发现了这些错误:
Sep 26 10:15:53 vivobook-linux bluetoothd[7134]: profiles/input/device.c:ioctl_is_connected() Can't get HIDP connection info Sep 26 10:15:59 vivobook-linux bluetoothd[7134]: profiles/input/device.c:control_connect_cb() connect to 11:21:EC:00:00:02: Host is down (112)
这里提示“Host is down”,但实际上我的鼠标是开机状态的,并没有断电。我也尝试过把鼠标切换到配对模式,但依然没有任何改善。
btmon捕获的日志
最后我用btmon捕获了蓝牙交互日志,输出如下:
$ sudo btmon -w pair.bts Bluetooth monitor ver 5.64 = Note: Linux version 6.2.0-33-generic (x86_64) 0.286424 = Note: Bluetooth subsystem version 2.22 0.286427 = New Index: AC:12:03:3C:0C:CA (Primary,USB,hci0) [hci0] 0.286430 = Open Index: AC:12:03:3C:0C:CA [hci0] 0.286431 = Index Info: AC:12:03:3C:0C:CA (Intel Corp.) [hci0] 0.286434 @ MGMT Open: bluetoothd (privileged) version 1.22 {0x0001} 0.286436 = bluetoothd: profiles/input/device.c:ioctl_is_connected() Can't get HIDP connection info 20.303463 < HCI Command: Create Connection (0x01|0x0005) plen 13 #1 [hci0] 20.303511 Address: 11:21:EC:00:00:02 (OUI 11-21-EC) Packet type: 0xcc18 DM1 may be used DH1 may be used DM3 may be used DH3 may be used DM5 may be used DH5 may be used Page scan repetition mode: R2 (0x02) Page scan mode: Mandatory (0x00) Clock offset: 0x0000 Role switch: Allow peripheral (0x01) > HCI Event: Command Status (0x0f) plen 4 #2 [hci0] 20.428572 Create Connection (0x01|0x0005) ncmd 1 Status: Success (0x00) > HCI Event: Connect Complete (0x03) plen 11 #3 [hci0] 25.645679 Status: Page Timeout (0x04) Handle: 65535 Address: 11:21:EC:00:00:02 (OUI 11-21-EC) Link type: ACL (0x01) Encryption: Disabled (0x00) @ MGMT Event: Connect Failed (0x000d) plen 8 {0x0001} [hci0] 25.645771 BR/EDR Address: 11:21:EC:00:00:02 (OUI 11-21-EC) Status: Connect Failed (0x04) = bluetoothd: profiles/input/device.c:control_connect_cb() connect to 11:21:EC:00:00:02: Host is down (112) 25.646297
有没有朋友遇到过类似的情况?或者能从这些日志里看出问题所在?麻烦帮忙支支招,谢谢大家!
备注:内容来源于stack exchange,提问作者nagylzs
相关产品推荐
相关产品推荐

