Linux/Bluez:无法添加蓝牙键盘,bluetoothd 出现奇怪的“文件未找到”错误

Linux/Bluez:无法添加蓝牙键盘,bluetoothd 出现奇怪的“文件未找到”错误

我最初使用 gnome-3.12 gui 配对蓝牙键盘,但在最近更新(archlinux)后,它停止工作。我取消了键盘配对,现在无法再次配对。当我扫描设备时,它会短暂出现,然后立即消失。我还尝试使用 bluetoothctl 从命令行配对,但没有成功。

在扫描过程中运行 btmon 显示此输出有趣的是以下内容:

< ACL Data TX: Handle 12 flags 0x00 dlen 16                                              [hci0] 24.073197
      L2CAP: Connection Response (0x03) ident 7 len 8
        Destination CID: 65
        Source CID: 67
        Result: Connection refused - security block (0x0003)
        Status: No further information available (0x0000)

我不确定是什么导致了“安全阻止”。还有另一个奇怪的错误来自 bluetoothd(使用 --debug 标志时)Refusing input device connect: No such file or directory (2)。这是键盘打开时 bluetoothd 的完整输出:

bluetoothd[8708]: src/adapter.c:connected_callback() hci0 device 28:37:37:2A:BC:7A connected eir_len 5
bluetoothd[8708]: src/device.c:device_create() dst 28:37:37:2A:BC:7A
bluetoothd[8708]: src/device.c:device_new() address 28:37:37:2A:BC:7A
bluetoothd[8708]: src/device.c:device_new() Creating device /org/bluez/hci0/dev_28_37_37_2A_BC_7A
bluetoothd[8708]: src/device.c:btd_device_set_temporary() temporary 1
bluetoothd[8708]: src/adapter.c:adapter_connect_list_remove() device /org/bluez/hci0/dev_28_37_37_2A_BC_7A is not on the list, ignoring
bluetoothd[8708]: src/device.c:device_set_class() /org/bluez/hci0/dev_28_37_37_2A_BC_7A 0x002540
bluetoothd[8708]: profiles/input/server.c:connect_event_cb() Incoming connection from 28:37:37:2A:BC:7A on PSM 17
bluetoothd[8708]: profiles/input/device.c:input_device_set_channel() idev (nil) psm 17
bluetoothd[8708]: Refusing input device connect: No such file or directory (2)
bluetoothd[8708]: profiles/input/server.c:confirm_event_cb()
bluetoothd[8708]: Refusing connection from 28:37:37:2A:BC:7A: unknown device
bluetoothd[8708]: src/adapter.c:dev_disconnected() Device 28:37:37:2A:BC:7A disconnected, reason 3
bluetoothd[8708]: src/adapter.c:adapter_remove_connection()
bluetoothd[8708]: src/adapter.c:adapter_remove_connection() Removing temporary device /org/bluez/hci0/dev_28_37_37_2A_BC_7A
bluetoothd[8708]: src/device.c:device_remove() Removing device /org/bluez/hci0/dev_28_37_37_2A_BC_7A
bluetoothd[8708]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci0/dev_28_37_37_2A_BC_7A
bluetoothd[8708]: src/device.c:device_free() 0xedcae0
bluetoothd[8708]: plugins/policy.c:disconnect_cb() reason 3
bluetoothd[8708]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr 28:37:37:2A:BC:7A type 0 status 0xe
bluetoothd[8708]: src/adapter.c:resume_discovery() 

答案1

事实证明,这一切都是因为我没有按照正确的步骤配对无线键盘。需要按住按钮更长时间才能重置所有内容。不幸的是,所有蓝牙错误都非常具有误导性。

相关内容