Pat*_*ner 0 mouse bluetooth bluez
我正在使用 Linux Mint 18.2 Sonja,并且想要在不使用蓝牙适配器的情况下连接我的新Logitech MX Master S2 鼠标,而是直接使用笔记本电脑的内置蓝牙模块。运行以下命令后,到目前为止,这在我的电脑上有效:
~$ sudo hciconfig hci0 sspmode 1
~$ sudo hciconfig hci0 down
~$ sudo hciconfig hci0 up
Run Code Online (Sandbox Code Playgroud)
但是,通过输入,sudo hciconfig hci0 sspmode 1我在笔记本上收到以下错误消息:
Can't set Simple Pairing mode on hci0: Input/output error (5)
Run Code Online (Sandbox Code Playgroud)
在阅读了不同社区的几篇文章后,他们建议执行以下操作:
alpha@Pavilion ~ $ bluetoothctl
[NEW] Controller B0:35:9F:0E:4F:3D Pavilion [default]
[NEW] Device C5:E2:3F:77:5C:3D MX Master 2S
[NEW] Device DD:6A:F3:5A:A2:A2 MI Band 2
[NEW] Device C5:E2:3F:77:5C:3B MX Master 2S
[NEW] Device 00:02:3C:51:C6:12 Creative T50 Wireless
[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] Device C5:E2:3F:77:5C:3D RSSI: -15
[bluetooth]# scan off
Discovery stopped
[CHG] Device C5:E2:3F:77:5C:3D RSSI: -4
[bluetooth]# trust C5:E2:3F:77:5C:3D
Changing C5:E2:3F:77:5C:3D trust succeeded
[bluetooth]# pair C5:E2:3F:77:5C:3D
Attempting to pair with C5:E2:3F:77:5C:3D
[CHG] Device C5:E2:3F:77:5C:3D Connected: yes
Failed to pair: org.bluez.Error.AuthenticationTimeout
[CHG] Device C5:E2:3F:77:5C:3D Connected: no
[bluetooth]# connect C5:E2:3F:77:5C:3D
Attempting to connect to C5:E2:3F:77:5C:3D
Failed to connect: org.bluez.Error.Failed
[bluetooth]# version
Version 5.37
[bluetooth]# exit
Agent unregistered
[DEL] Controller B0:35:9F:0E:4F:3D Pavilion [default]
alpha@Pavilion ~ $
Run Code Online (Sandbox Code Playgroud)
正如您所看到的,通过尝试配对鼠标,它会很快连接,然后出现错误:Failed to pair: org.bluez.Error.AuthenticationTimeout
有人有想法吗?
提前致谢!
至少我找到了解决问题的方法:
我安装了名为blueman的蓝牙管理器:
~$ sudo apt install blueman
Run Code Online (Sandbox Code Playgroud)
在 GUI 中,有一个看起来像计算器等的按钮,当您将鼠标悬停在该按钮上时,该按钮称为“创建与设备的配对”。虽然右键单击“配对”按钮和“设置/配对设备”按钮都不起作用,但上面提到的按钮却可以完成这项工作!