
我最初使用 gnome-3.12 gui 配對我的藍牙鍵盤,在最近的更新 (archlinux) 後它停止工作。我取消了鍵盤配對,現在無法再次配對。當我掃描設備時,它會短暫顯示然後立即消失。我還嘗試使用 bluetoothctl 從 cmdline 進行配對,但沒有成功。
在掃描過程中執行 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[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
事實證明,這完全是因為我沒有遵循正確的步驟來配對無線鍵盤。需要按住按鈕更長時間才能重新設定所有內容。不幸的是,所有藍牙錯誤都非常具有誤導性。