配对需要代码的蓝牙键盘“配对失败:org.bluez.Error.AuthenticationFailed”

Sha*_*awn 8 xubuntu keyboard bluetooth 16.10

我正在尝试将新的蓝牙键盘(Microsoft Surface 人体工学键盘)连接到运行 Dell XPS 15 (2016) 的 Ubuntu。我正在运行 Xubuntu 16.10 和内核版本:

root@Flere:~$ uname -a
Linux Flere 4.8.0-28-generic #30-Ubuntu SMP Fri Nov 11 14:03:52 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)

当我尝试使用 bluetoothctl 连接键盘时(如这篇文章所示:如何在终端中配对需要密码输入的蓝牙键盘?我遇到身份验证失败。如果我将同一键盘与同一台机器上的 Windows 配对它会要求我在键盘上输入一个数字并按回车键,然后它就可以工作了。我也在 XFCE 中尝试了内置的 GUI 工具,但没有成功。

root@Flere:~$ bluetoothctl 
[NEW] Controller [[mac address 1]] Flere [default]
[NEW] Device [[mac address 2]] Ergonomic Keyboard

[bluetooth]# power on
Changing power on succeeded

[bluetooth]# agent on
Agent registered

[bluetooth]# default-agent
Default agent request successful

[bluetooth]# scan on
Discovery started
[CHG] Controller [[mac address 1]] Discovering: yes
[NEW] Device [[mac address 2]] Ergonomic Keyboard
[NEW] Device [[mac address 3]] [[mac address 3 with dashes instead of colon]]

[bluetooth]# pair [[mac address 2]]
Attempting to pair with [[mac address 2]]
[CHG] Device [[mac address 2]] Connected: yes
Failed to pair: org.bluez.Error.AuthenticationFailed
[CHG] Device [[mac address 2]] Connected: no
Run Code Online (Sandbox Code Playgroud)

Roy*_*y D 2

您可以尝试这两种解决方案之一:http://www.roydoer.com/microsoft-surface-ergonomic-bluetooth-keyboard-on-linux/ 其中提到了两个选项:

  1. 获得一个在Linux上运行良好的USB蓝牙适配器,例如(谷歌搜索一个,我无法添加第二个链接)IOGEAR GPU531,它在一个版本的Linux Mint上对我有用,但在较新的版本上不起作用

  2. 从供应商站点安装驱动程序,例如,我按照http://www.slackwiki.com/Btfirmware-nonfree的说明进行操作- 显然我的 lenovo w530 具有与 T430s 相同的 Broadcom 控制器。

完成上述操作后,请按照常规步骤进行:

$ bluetoothctl
# power on
...
# agent on
...
# default-agent
...
# scan on
Discovery started
[CHG] Controller 5C:F3:70:81:1A:F4 Discovering: yes
[NEW] Device F6:6B:77:FF:50:4B Ergonomic Keyboard
[bluetooth]# pair F6:6B:77:FF:50:4B
Attempting to pair with F6:6B:77:FF:50:4B
[CHG] Device F6:6B:77:FF:50:4B Connected: yes
[agent] Passkey: 910013
Run Code Online (Sandbox Code Playgroud)

上面需要注意的一件事:如果您在 konsole 中使用黑白主题,则密钥可能不可见,因为它打印在白色前景中。将控制台的颜色更改为其他颜色,例如黑底绿。

输入密码,按 Enter 键,瞧 - 我正在使用 MS Surface 人体工学键盘打字。桌面 Linux 即将迎来这一年!;)