20.04 - Logitech MX Keys 无法与蓝牙配对

Enr*_*ent 6 keyboard bluetooth logitech 20.04

我正在使用 Ubuntu 20.04.1,我正在尝试通过蓝牙配对我的 MX Keys 键盘。

\n

我使用蓝牙控制面板启动该过程,然后卡在这个窗口中。

\n

在此输入图像描述

\n

即使我输入正确的 PIN 码并按 ENTER,该过程仍然没有完成。事实上,它会陷入该模式,无法关闭 PIN 窗口。

\n

我也尝试过使用“Blueman”,得到了类似的结果。我开始“设置”过程,这就是我最终得到的。

\n

在此输入图像描述

\n

我也尝试过bluetoothctl

\n
\xe2\x9e\x9c bluetoothctl connect CB:DD:B4:5C:4E:E3\nAttempting to connect to CB:DD:B4:5C:4E:E3\n[CHG] Device CB:DD:B4:5C:4E:E3 Connected: yes\nConnection successful\n\n~ took 8s \n\xe2\x9e\x9c bluetoothctl trust CB:DD:B4:5C:4E:E3\n[CHG] Device CB:DD:B4:5C:4E:E3 Trusted: yes\nChanging CB:DD:B4:5C:4E:E3 trust succeeded\n\n~ \n\xe2\x9e\x9c bluetoothctl pair CB:DD:B4:5C:4E:E3\nAttempting to pair with CB:DD:B4:5C:4E:E3\n[CHG] Device CB:DD:B4:5C:4E:E3 ServicesResolved: yes\n[CHG] Device CB:DD:B4:5C:4E:E3 ServicesResolved: no\n[CHG] Device CB:DD:B4:5C:4E:E3 Connected: no\nFailed to pair: org.bluez.Error.AuthenticationCanceled\n\n~ took 30s \n\n
Run Code Online (Sandbox Code Playgroud)\n

可以做些什么来让它发挥作用?

\n

更新

\n

如果我重置电脑中的蓝牙,我已设法获取 PIN bluetoothctl,但即使输入 PIN,身份验证也会失败。就好像它忽略了我输入的内容......

\n
[bluetooth]# pair CB:DD:B4:5C:4E:E3\nAttempting to pair with CB:DD:B4:5C:4E:E3\n[CHG] Device CB:DD:B4:5C:4E:E3 Connected: yes\n[agent] Passkey: 610148\n[CHG] Device CB:DD:B4:5C:4E:E3 Connected: no\nFailed to pair: org.bluez.Error.AuthenticationCanceled\n
Run Code Online (Sandbox Code Playgroud)\n

小智 6

这适用于 Xubuntu (Ubuntu 20.04.3 LTS) 上的 Logitech MX Keys Mini。

打开终端并运行以下命令:

bluetoothctl
power off
power on
agent KeyboardOnly
default-agent
pairable on
scan on
pair <mac address>
## the passkey will be printed, enter it on your keyboard ##
trust <mac address>
connect <mac address>
quit
Run Code Online (Sandbox Code Playgroud)


小智 5

我在使用联想键盘时也遇到了同样的问题。基本上我可以输入密码,但按回车键后什么也没有发生。

$bluetoothctl
[bluetooth]# agent KeyboardDisplay
[bluetooth]# default-agent 
[bluetooth]# scan on
[bluetooth]# pair <MAC-address>
Attempting to pair with <MAC-address>
[CHG] Device <MAC-address> Connected: yes
[agent] Passkey: xxxxxx
[agent] Passkey: xxxxx
[agent] Passkey: xxxx
[agent] Passkey: xxx
[agent] Passkey: xx
[agent] Passkey: x
[agent] Passkey: 
[CHG] Device <MAC-address> Modalias: usb:<ALIAS>
[CHG] Device <MAC-address> UUIDs: <UUID>
[CHG] Device <MAC-address> ServicesResolved: yes
[CHG] Device <MAC-address> Paired: yes
Pairing successful
[CHG] Device <MAC-address> ServicesResolved: no
[CHG] Device <MAC-address> Connected: no
[CHG] Device <MAC-address> Class: 0x00000540
[CHG] Device <MAC-address> Icon: input-keyboard
[CHG] Device <MAC-address> Connected: yes
Authorize service
[agent] Authorize service <UUID> (yes/no): yes
Run Code Online (Sandbox Code Playgroud)

[agent] Authorize serviceGUI 中似乎没有显示最后一步


Enr*_*ent 2

我修复了它,安装了一些丢失的固件。我所要做的就是运行这个命令:

cd /lib/firmware/brcm && sudo wget https://github.com/winterheart/broadcom-bt-firmware/raw/master/brcm/BCM20702A1-0a5c-21e8.hcd
Run Code Online (Sandbox Code Playgroud)

然后拔下并再次插入我的蓝牙适配器