Failed to connect: org.bluez.Error.Failed
解决方法参考文献
这可能是因为你在其它操作系统中用同样的蓝牙适配器配对了这个设备(比如双系统)。有的设备不能在MAC地址和多个设备联系的情况下工作。你可以先移除设配再重新配对:
解决方法
移除设备
$ bluetoothctl
[bluetooth
]# devices
[bluetooth
]# remove XX
:XX
:XX
:XX
:XX
:XX
如下图
重新配对
$ bluetoothctl
[bluetooth
]#scan on
[bluetooth
]#devices
[bluetooth
]#pair device_mac_address
[agent
]PIN code
: ####
[agent
]Authorize service service_uuid
(yes
/no
): yes
[bluetooth
]#trust device_mac_address
[bluetooth
]#connect device_mac_address
[bluetooth
]#info device_mac_address
[bluetooth
]#quit
如下图
参考文献
Archwiki gentoowiki