org.bluez.Error.ConnectionAttemptFailed - 蓝牙耳机配对失败

org.bluez.Error.ConnectionAttemptFailed - 蓝牙耳机配对失败

我正在尝试将我的 JBL 耳机与 Ubuntu 20.04 LTS 上的 PC 配对。我有 3 台完全相同的 PC,这 3 台是完全相同的型号和品牌。当我尝试将耳机连接到这两台 PC 时,没有任何问题。但另一台出现以下错误:

[bluetooth]# pair 78:5E:A2:75:00:89 
Attempting to pair with 78:5E:A2:75:00:89
Failed to pair: org.bluez.Error.ConnectionAttemptFailed

[bluetooth]# connect 78:5E:A2:75:00:89 
Attempting to connect to 78:5E:A2:75:00:89
Failed to connect: org.bluez.Error.Failed

当我打开日志文件时,/var/log/syslog文件如下所示,我不知道哪些部分是不必要的,所以我只复制与我的设备的 mac 地址相关的所有区域:

Dec 21 12:13:32 smart bluetoothd[846]: src/adapter.c:device_found_callback() hci0 addr 26:CD:23:10:D3:0D, rssi -93 flags 0x0004 eir_len 31
Dec 21 12:13:33 smart bluetoothd[846]: src/agent.c:agent_ref() 0x5569f9d71ac0: ref=2
Dec 21 12:13:33 smart bluetoothd[846]: src/device.c:bonding_request_new() Requesting bonding for 78:5E:A2:75:00:89
Dec 21 12:13:33 smart bluetoothd[846]: src/agent.c:agent_ref() 0x5569f9d71ac0: ref=3
Dec 21 12:13:33 smart bluetoothd[846]: src/agent.c:agent_unref() 0x5569f9d71ac0: ref=2
Dec 21 12:13:33 smart bluetoothd[846]: src/adapter.c:suspend_discovery() 
Dec 21 12:13:33 smart bluetoothd[846]: src/adapter.c:adapter_bonding_attempt() hci0 bdaddr 78:5E:A2:75:00:89 type 0 io_cap 0x04
Dec 21 12:13:33 smart bluetoothd[846]: src/adapter.c:suspend_discovery_complete() status 0x00
Dec 21 12:13:33 smart bluetoothd[846]: src/adapter.c:discovering_callback() hci0 type 7 discovering 0 method 0
Dec 21 12:13:38 smart bluetoothd[846]: src/adapter.c:connect_failed_callback() hci0 78:5E:A2:75:00:89 status 4
Dec 21 12:13:38 smart bluetoothd[846]: plugins/policy.c:conn_fail_cb() status 4
Dec 21 12:13:38 smart bluetoothd[846]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr 78:5E:A2:75:00:89 type 0 status 0x4
Dec 21 12:13:38 smart bluetoothd[846]: src/device.c:device_bonding_complete() bonding 0x5569f9d920e0 status 0x04
Dec 21 12:13:38 smart bluetoothd[846]: src/device.c:device_bonding_failed() status 4
Dec 21 12:13:38 smart bluetoothd[846]: src/agent.c:agent_unref() 0x5569f9d71ac0: ref=1
Dec 21 12:13:38 smart bluetoothd[846]: src/adapter.c:resume_discovery() 
Dec 21 12:13:38 smart bluetoothd[846]: src/adapter.c:trigger_start_discovery() 
Dec 21 12:13:38 smart bluetoothd[846]: src/adapter.c:cancel_passive_scanning() 
Dec 21 12:13:38 smart bluetoothd[846]: src/adapter.c:pair_device_complete() Connect Failed (0x04)
Dec 21 12:13:38 smart bluetoothd[846]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr 78:5E:A2:75:00:89 type 0 status 0x4
Dec 21 12:13:38 smart bluetoothd[846]: src/device.c:device_bonding_complete() bonding (nil) status 0x04
Dec 21 12:13:38 smart bluetoothd[846]: src/device.c:device_bonding_failed() status 4
Dec 21 12:13:38 smart bluetoothd[846]: src/adapter.c:resume_discovery()

有时尝试一次就能连接,但 90% 都无法连接。我尝试重新启动 pulseaudio。问题仍然存在。我无法将耳机与电脑配对。

答案1

看起来你的适配器已恢复。

12月21日 12:13:38 智能蓝牙[846]: src/adapter.c:resume_discovery()

cp /etc/pulse/default.pa $HOME/.config/pulse/

改变

load-module module-suspend-on-idle

#load-module module-suspend-on-idle

我发现拱门维基

相关内容