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

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

我正在尝试将新的蓝牙键盘(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

当我尝试使用 bluetoothctl 连接键盘时(如本帖所示:如何在终端上配对需要输入代码的蓝牙键盘?我遇到了身份验证失败。如果我在同一台机器上将同一个键盘与 Windows 配对,它会要求我在键盘上输入一个数字,然后按 Enter 键,然后就可以正常工作了。我也尝试过 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

答案1

您可以尝试以下两种解决方案之一: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- 显然我的联想 w530 与 T430s 具有相同的博通控制器。

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

$ 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

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

输入密码,按下 Enter 键,然后瞧瞧 - 我正在用 MS Surface 人体工学键盘打字。几乎是桌面 Linux 之年!;)

相关内容