如何在 Ubuntu 20.04 上配对或连接 OneOdio Pro C 无线耳机?

如何在 Ubuntu 20.04 上配对或连接 OneOdio Pro C 无线耳机?

OneOdio Pro C 无线耳机支持以下蓝牙协议:HFP/HSP/A2DP/AVRCP

$ dpkg --status bluez | grep '^Version:'
Version: 5.53-0ubuntu3.4

$ pactl list short | grep -i bluetooth
7   module-bluetooth-policy 
8   module-bluetooth-discover

$ dmesg | grep Bluetooth
[    5.067745] Bluetooth: Core ver 2.22
[    5.067761] Bluetooth: HCI device and connection manager initialized
[    5.067764] Bluetooth: HCI socket layer initialized
[    5.067765] Bluetooth: L2CAP socket layer initialized
[    5.067768] Bluetooth: SCO socket layer initialized
[    5.087810] Bluetooth: hci0: Firmware revision 0.0 build 121 week 36 2020
[   12.806192] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   12.806197] Bluetooth: BNEP filters: protocol multicast
[   12.806201] Bluetooth: BNEP socket layer initialized
[   27.876087] Bluetooth: RFCOMM TTY layer initialized
[   27.876099] Bluetooth: RFCOMM socket layer initialized
[   27.876106] Bluetooth: RFCOMM ver 1.11

$ systemctl status bluetooth
● bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2021-12-16 13:43:27 +00; 1 day 19h ago
       Docs: man:bluetoothd(8)
   Main PID: 1755 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 115424)
     Memory: 8.4M
     CGroup: /system.slice/bluetooth.service
             └─1755 /usr/lib/bluetooth/bluetoothd

Dec 18 00:56:52 machine bluetoothd[1755]: Unable to get io data for Headset Voice gateway: getpeername: Transport endpoint is not connected (107)
Dec 18 00:56:57 machine bluetoothd[1755]: 85:62:35:17:5B:A1: error updating services: Host is down (112)
Dec 18 00:56:57 machine bluetoothd[1755]: connect error: Host is down (112)
Dec 18 01:07:54 machine bluetoothd[1755]: Unable to get Headset Voice gateway SDP record: Host is down
Dec 18 01:08:01 machine bluetoothd[1755]: Unable to get Headset Voice gateway SDP record: Host is down
Dec 18 01:08:08 machine bluetoothd[1755]: Unable to get Headset Voice gateway SDP record: Host is down
Dec 18 01:08:27 machine bluetoothd[1755]: Unable to get Headset Voice gateway SDP record: Host is down
Dec 18 02:20:53 machine bluetoothd[1755]: connect error: Connection timed out (110)
Dec 18 02:20:53 machine bluetoothd[1755]: Unable to get io data for Headset Voice gateway: getpeername: Transport endpoint is not connected (107)
Dec 18 02:20:59 machine bluetoothd[1755]: 85:62:35:17:5B:A1: error updating services: Host is down (112)

我该怎么做才能使这两个设备配对并连接?

我试过:

$ bluetoothctl
[bluetooth]# pair 85:62:35:17:5B:A1
Attempting to pair with 85:62:35:17:5B:A1
Failed to pair: org.bluez.Error.AlreadyExists
[bluetooth]# trust 85:62:35:17:5B:A1
Changing 85:62:35:17:5B:A1 trust succeeded
[bluetooth]# connect 85:62:35:17:5B:A1
Failed to connect: org.bluez.Error.Failed

$ pulseaudio -k我确实按照建议尝试了本维基并重试连接命令但仍然无法连接。

我注意到这个 wiki 说pulseaudio-alsa需要这个包。我试了一下,发现找不到这个包。我的问题是由于没有pulseaudio-alsapkg​​ 造成的吗?

$ sudo apt install pulseaudio-alsa
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package pulseaudio-alsa

$ dpkg -l | grep pulseaudio
ii  gstreamer1.0-pulseaudio:amd64              1.16.2-1ubuntu2.1                                 amd64        GStreamer plugin for PulseAudio
ii  pulseaudio                                 1:13.99.1-1ubuntu3.13                             amd64        PulseAudio sound server
ii  pulseaudio-module-bluetooth                1:13.99.1-1ubuntu3.13                             amd64        Bluetooth module for PulseAudio sound server
ii  pulseaudio-utils                           1:13.99.1-1ubuntu3.13                             amd64        Command line tools for the PulseAudio sound server

答案1

我最好的解决方案是将 Ubuntu 20.04 升级到 22.04。较新的 Ubuntu 22.04 版本可轻松连接到 OneOdio Pro C 无线耳机并完美运行。

相关内容