我正在Ubuntu20.04LTS上尝试将我的JBL耳机与我的pc配对。我有3台完全相同的pc,这3台是完全相同的型号相同的品牌。当我试图把我的耳塞连接到这两台电脑时,就没有问题了。但另一个错误如下:
[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%却没有。我试着重启脉冲音频。问题还在发生。我不能把我的耳塞和电脑配对。
发布于 2022-12-21 10:28:16
看来你的适配器恢复了。
12月21日12:13:38智能蓝宝石八四六:src/Adapter.c:恢复发现()
cp /etc/pulse/default.pa $HOME/.config/pulse/
变化
load-module module-suspend-on-idle
至
#load-module module-suspend-on-idle
这是我在拱维基找到的
https://askubuntu.com/questions/1446573
复制相似问题