我遇到了一个奇怪的新问题。我的蓝牙鼠标和键盘有时会重新连接。这很烦人,但并不新鲜,几秒钟后连接断开,然后重新连接。但几天后重新连接就不起作用了。鼠标或键盘确实重新连接了,但输入不再被识别(无法移动鼠标或无法用键盘打字)。我必须重新启动蓝牙服务或sudo service bluetooth restart
手动断开并重新连接鼠标或键盘。
如果发生这种情况,系统日志没有帮助,不会有任何消息。
硬件:
- Dell XPS 13 9370(Ubuntu 16.04,带有最新 HWE 内核 4.15.x)
- 罗技 G604 Lightspeed 鼠标
- 罗技 G915 键盘
我可以检查哪些日志?有人遇到同样的问题吗?
顺便说一句,我也尝试了 4.15.x 的旧内核(因为这是一个相当新的问题),但没有用
编辑:同时我启用了蓝牙调试模式。这是发生这种情况时的系统日志输出(在本例中为鼠标):
Apr 7 15:32:11 pc123 bluetoothd[1006]: src/adapter.c:dev_disconnected() Device E9:28:3A:B5:8D:64 disconnected, reason 0
Apr 7 15:32:11 pc123 bluetoothd[1006]: src/adapter.c:adapter_remove_connection()
Apr 7 15:32:11 pc123 bluetoothd[1006]: plugins/policy.c:disconnect_cb() reason 0
Apr 7 15:32:11 pc123 bluetoothd[1006]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr E9:28:3A:B5:8D:64 type 2 status 0xe
Apr 7 15:32:11 pc123 bluetoothd[1006]: src/device.c:device_bonding_complete() bonding (nil) status 0x0e
Apr 7 15:32:11 pc123 bluetoothd[1006]: src/device.c:device_bonding_failed() status 14
Apr 7 15:32:11 pc123 bluetoothd[1006]: src/adapter.c:resume_discovery()
Apr 7 15:32:11 pc123 bluetoothd[1006]: src/device.c:att_disconnected_cb()
Apr 7 15:32:11 pc123 bluetoothd[1006]: src/device.c:att_disconnected_cb() Function not implemented (38)
Apr 7 15:32:11 pc123 bluetoothd[1006]: src/gatt-client.c:btd_gatt_client_disconnected() Device disconnected. Cleaning up.
Apr 7 15:32:11 pc123 bluetoothd[1006]: attrib/gattrib.c:g_attrib_unref() 0x56007959eed0: g_attrib_unref=1
Apr 7 15:32:24 pc123 bluetoothd[1006]: src/adapter.c:connected_callback() hci0 device E9:28:3A:B5:8D:64 connected eir_len 0
Apr 7 15:32:24 pc123 bluetoothd[1006]: src/gatt-database.c:connect_cb() New incoming LE ATT connection
Apr 7 15:32:24 pc123 bluetoothd[1006]: src/device.c:device_attach_att() Elevating security level since LTK is available
Apr 7 15:32:24 pc123 bluetoothd[1006]: attrib/gattrib.c:g_attrib_ref() 0x5600795a8500: g_attrib_ref=1
Apr 7 15:32:24 pc123 bluetoothd[1006]: src/gatt-client.c:btd_gatt_client_connected() Device connected.
Apr 7 15:32:24 pc123 bluetoothd[1006]: src/device.c:gatt_debug() Read By Grp Type - start: 0x0001 end: 0xffff
Apr 7 15:32:24 pc123 bluetoothd[1006]: src/device.c:gatt_debug() MTU exchange complete, with MTU: 23
Apr 7 15:32:24 pc123 bluetoothd[1006]: src/device.c:gatt_debug() Read By Grp Type - start: 0x000a end: 0xffff
Apr 7 15:32:24 pc123 bluetoothd[1006]: src/device.c:gatt_debug() Read By Type - start: 0x0001 end: 0x0005
Apr 7 15:32:24 pc123 bluetoothd[1006]: src/device.c:gatt_debug() Read By Type - start: 0x0005 end: 0x0005
Apr 7 15:32:24 pc123 bluetoothd[1006]: src/device.c:gatt_debug() Primary services found: 6
Apr 7 15:32:24 pc123 bluetoothd[1006]: src/device.c:gatt_debug() start: 0x0001, end: 0x0009, uuid: 00001800-0000-1000-8000-00805f9b34fb
Apr 7 15:32:24 pc123 bluetoothd[1006]: src/device.c:gatt_debug() start: 0x000a, end: 0x000d, uuid: 00001801-0000-1000-8000-00805f9b34fb
Apr 7 15:32:24 pc123 bluetoothd[1006]: src/device.c:gatt_debug() start: 0x000e, end: 0x001c, uuid: 0000180a-0000-1000-8000-00805f9b34fb
Apr 7 15:32:24 pc123 bluetoothd[1006]: src/device.c:gatt_debug() start: 0x001d, end: 0x0020, uuid: 0000180f-0000-1000-8000-00805f9b34fb
Apr 7 15:32:24 pc123 bluetoothd[1006]: src/device.c:gatt_debug() start: 0x0021, end: 0x0044, uuid: 00001812-0000-1000-8000-00805f9b34fb
Apr 7 15:32:24 pc123 bluetoothd[1006]: src/device.c:gatt_debug() start: 0x0045, end: 0xffff, uuid: 00010000-0000-1000-8000-011f2000046d
Apr 7 15:32:24 pc123 bluetoothd[1006]: src/device.c:gatt_client_ready_cb() status: success, error: 0
Apr 7 15:32:24 pc123 bluetoothd[1006]: src/device.c:device_svc_resolved() /org/bluez/hci0/dev_E9_28_3A_B5_8D_64 err 0
Apr 7 15:32:24 pc123 bluetoothd[1006]: src/gatt-client.c:btd_gatt_client_ready() GATT client ready
Apr 7 15:32:24 pc123 bluetoothd[1006]: src/gatt-client.c:create_services() Exporting objects for GATT services: E9:28:3A:B5:8D:64
Apr 7 15:32:24 pc123 bluetoothd[1006]: Unable to register GATT service with handle 0x000e for device E9:28:3A:B5:8D:64
Apr 7 15:32:24 pc123 bluetoothd[1006]: Unable to register GATT service with handle 0x001d for device E9:28:3A:B5:8D:64
Apr 7 15:32:24 pc123 bluetoothd[1006]: Unable to register GATT service with handle 0x0045 for device E9:28:3A:B5:8D:64
Apr 7 15:32:24 pc123 bluetoothd[1006]: src/device.c:gatt_debug() Read Req - handle: 0x0003
Apr 7 15:32:24 pc123 bluetoothd[1006]: src/gatt-database.c:gap_device_name_read_cb() GAP Device Name read request
Apr 7 15:32:24 pc123 bluetoothd[1006]: src/device.c:gatt_debug() Registered handler for "Service Changed": 1
Apr 7 15:32:24 pc123 bluetoothd[1006]: src/device.c:gatt_debug() Read Req - handle: 0x0005
Apr 7 15:32:24 pc123 bluetoothd[1006]: src/gatt-database.c:gap_appearance_read_cb() GAP Appearance read request
Apr 7 15:32:47 pc123 bluetoothd[1006]: profiles/input/hog-lib.c:report_value_cb() HoG report (17 bytes)
Apr 7 15:33:42 pc123 bluetoothd[1006]: message repeated 40 times: [ profiles/input/hog-lib.c:report_value_cb() HoG report (17 bytes)]
答案1
我的 Logitech MX Master 也遇到了同样的问题。在 bluez/libbluetooth3 更新到 5.37-0ubuntu5.3 后,这个问题开始出现。我恢复到 5.37-0ubuntu5.2,一切正常。