在 ubuntu 16.04 上使用 Microsoft Designer 键盘和鼠标(在 dell xps 13 上)

在 ubuntu 16.04 上使用 Microsoft Designer 键盘和鼠标(在 dell xps 13 上)

我有戴尔 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

在系统日志中可以找到更多日志:

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 安全...”这一行是否重要?我找到了这个链接,正确答案的作者描述了他如何“修补”自己的 hid 文件,但这样做并没有帮助:Ubuntu 14.04 LTS 上的 Microsoft Designer 鼠标(蓝牙 4.0)

尝试连接键盘时,结果和日志非常相似(只有地址发生变化),所以我在这里省略了它们。

希望有人能给我一些有用的提示吗?

提前致谢 :)

答案1

我从 17.04 更新到了最新的 bluez 版本。根据 debian 错误单,它已修复。我只是手动下载了文件。

相关内容