我有新的 Dell XPS 13 開發者版本,它附帶 ubuntu 14.04 LTS。由於新的 LTS 已經發布,我決定升級到 16.04,它應該支援 BLE(低功耗藍牙)設備,例如 Microsoft Designer 鍵盤和滑鼠。但我無法讓它發揮作用。
如果我嘗試配對滑鼠,則會失敗:
~ bluetoothctl
[NEW] Controller 44:85:00:2C:E5:E7 laptop [default]
[bluetooth]# scan on
Discovery started
[CHG] Controller 44:85:00:2C:E5:E7 Discovering: yes
[NEW] Device E5:4B:7C:B0:25:13 Designer Mouse
[bluetooth]# pair E5:4B:7C:B0:25:13
Attempting to pair with E5:4B:7C:B0:25:13
[CHG] Device E5:4B:7C:B0:25:13 Connected: yes
[CHG] Device E5:4B:7C:B0:25:13 UUIDs: 00001800-0000-1000-8000-00805f9b34fb
[CHG] Device E5:4B:7C:B0:25:13 UUIDs: 00001801-0000-1000-8000-00805f9b34fb
[CHG] Device E5:4B:7C:B0:25:13 UUIDs: 0000180a-0000-1000-8000-00805f9b34fb
[CHG] Device E5:4B:7C:B0:25:13 UUIDs: 0000180f-0000-1000-8000-00805f9b34fb
[CHG] Device E5:4B:7C:B0:25:13 UUIDs: 00001812-0000-1000-8000-00805f9b34fb
[Designer Mouse]# connect E5:4B:7C:B0:25:13
Attempting to connect to E5:4B:7C:B0:25:13
Connection successful
[CHG] Device E5:4B:7C:B0:25:13 Connected: no
Failed to pair: org.bluez.Error.AuthenticationCanceled
可以在 syslog 中找到更多日誌:
May 19 18:05:11 laptop kernel: [29453.178205] Bluetooth: SMP security requested but not available
May 19 18:05:11 laptop bluetoothd[1154]: Unable to register GATT service with handle 0x0009 for device E5:4B:7C:B0:25:13
May 19 18:05:11 laptop bluetoothd[1154]: Unable to register GATT service with handle 0x000e for device E5:4B:7C:B0:25:13
May 19 18:05:12 laptop bluetoothd[1154]: Error reading PNP_ID value: Attribute requires authentication before read/write
May 19 18:05:13 laptop bluetoothd[1154]: Error reading Report value: Attribute requires authentication before read/write
May 19 18:05:13 laptop bluetoothd[1154]: message repeated 3 times: [ Error reading Report value: Attribute requires authentication before read/write]
May 19 18:05:14 laptop bluetoothd[1154]: Report Map read failed: Attribute requires authentication before read/write
May 19 18:05:14 laptop bluetoothd[1154]: Protocol Mode characteristic read failed: Attribute requires authentication before read/write
May 19 18:05:14 laptop bluetoothd[1154]: HID Information read failed: Attribute requires authentication before read/write
May 19 18:05:14 laptop bluetoothd[1154]: Read Report Reference descriptor failed: Attribute requires authentication before read/write
May 19 18:05:14 laptop bluetoothd[1154]: message repeated 3 times: [ Read Report Reference descriptor failed: Attribute requires authentication before read/write]
我想知道“SMP 安全性...”這行是否重要?我找到了這個鏈接,其中正確答案的作者描述了他如何“修補”自己的隱藏文件,但這樣做並沒有幫助:Ubuntu 14.04 LTS 上的 Microsoft Designer 滑鼠(藍牙 4.0)
當嘗試連接鍵盤時,結果和日誌非常相似(僅位址變更),因此我在這裡省略了它們。
希望有人對我有幫助的提示嗎?
提前致謝 :)
答案1
我從 17.04 更新到最新的 bluez 版本。根據 Debian Bug Ticket 已修復該問題。我剛剛手動下載了該文件。