在 Ubuntu 20.04 中启用蓝牙耳机麦克风支持

在 Ubuntu 20.04 中启用蓝牙耳机麦克风支持

通用音频设置界面没有麦克风选择选项,只显示笔记本内置麦克风,有耳机选择,即带麦克风的耳机接入系统,可以听到声音。

输出设备信息

2 card(s) available.
    index: 0
    name: <alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic>
    driver: <module-alsa-card.c>
    owner module: 23
    properties:
        alsa.card = "0"
        alsa.card_name = "sof-hda-dsp"
        alsa.long_card_name = "sof-hda-dsp"
        alsa.driver_name = "snd_soc_skl_hda_dsp"
        device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
        sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
        device.bus = "pci"
        device.vendor.id = "8086"
        device.vendor.name = "Intel Corporation"
        device.product.id = "a0c8"
        device.product.name = "Tiger Lake-LP Smart Sound Technology Audio Controller"
        device.string = "0"
        device.description = "Tiger Lake-LP Smart Sound Technology Audio Controller"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-pci"
    profiles:
        HiFi: Play HiFi quality Music (priority 40768, available: unknown)
        off: Off (priority 0, available: unknown)
    active profile: <HiFi>
    sinks:
        alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_5__sink/#1: Tiger Lake-LP Smart Sound Technology Audio Controller HDMI3 Output
        alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_4__sink/#2: Tiger Lake-LP Smart Sound Technology Audio Controller HDMI2 Output
        alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_3__sink/#3: Tiger Lake-LP Smart Sound Technology Audio Controller HDMI1 Output
        alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink/#4: Tiger Lake-LP Smart Sound Technology Audio Controller Speaker + Headphones
    sources:
        alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_5__sink.monitor/#1: Monitor of Tiger Lake-LP Smart Sound Technology Audio Controller HDMI3 Output
        alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_4__sink.monitor/#2: Monitor of Tiger Lake-LP Smart Sound Technology Audio Controller HDMI2 Output
        alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_3__sink.monitor/#3: Monitor of Tiger Lake-LP Smart Sound Technology Audio Controller HDMI1 Output
        alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink.monitor/#4: Monitor of Tiger Lake-LP Smart Sound Technology Audio Controller Speaker + Headphones
        alsa_input.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__source/#5: Tiger Lake-LP Smart Sound Technology Audio Controller Headphones Stereo Microphone
        alsa_input.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_6__source/#6: Tiger Lake-LP Smart Sound Technology Audio Controller Digital Microphone
    ports:
        [Out] HDMI3: HDMI3 Output (priority 700, latency offset 0 usec, available: no)
            properties:
                
        [Out] HDMI2: HDMI2 Output (priority 600, latency offset 0 usec, available: no)
            properties:
                
        [Out] HDMI1: HDMI1 Output (priority 500, latency offset 0 usec, available: no)
            properties:
                
        [Out] Speaker: Speaker (priority 100, latency offset 0 usec, available: unknown)
            properties:
                
        [Out] Headphones: Headphones (priority 200, latency offset 0 usec, available: no)
            properties:
                
        [In] Mic2: Headphones Stereo Microphone (priority 200, latency offset 0 usec, available: no)
            properties:
                
        [In] Mic1: Digital Microphone (priority 100, latency offset 0 usec, available: unknown)
            properties:
                
    index: 2
    name: <bluez_card.18_95_52_44_01_F8>
    driver: <module-bluez5-device.c>
    owner module: 26
    properties:
        device.description = "1MORE ComfoBuds Pro"
        device.string = "18:95:52:44:01:F8"
        device.api = "bluez"
        device.class = "sound"
        device.bus = "bluetooth"
        device.form_factor = "headset"
        bluez.path = "/org/bluez/hci0/dev_18_95_52_44_01_F8"
        bluez.class = "0x240404"
        bluez.alias = "1MORE ComfoBuds Pro"
        device.icon_name = "audio-headset-bluetooth"
        device.intended_roles = "phone"
    profiles:
        a2dp_sink: High Fidelity Playback (A2DP Sink) (priority 40, available: yes)
        headset_head_unit: Headset Head Unit (HSP/HFP) (priority 30, available: no)
        off: Off (priority 0, available: yes)
    active profile: <a2dp_sink>
    sinks:
        bluez_sink.18_95_52_44_01_F8.a2dp_sink/#6: 1MORE ComfoBuds Pro
    sources:
        bluez_sink.18_95_52_44_01_F8.a2dp_sink.monitor/#8: Monitor of 1MORE ComfoBuds Pro
    ports:
        headset-output: Headset (priority 0, latency offset 0 usec, available: yes)
            properties:
                
        headset-input: Headset (priority 0, latency offset 0 usec, available: no)
            properties:

在倒数第二行,我看到耳机输入不可用

    headset-input: Headset (priority 0, latency offset 0 usec, available: no)

如何使耳机麦克风可供选择?

jekson@machine-head:~$ hciconfig -a
hci0:   Type: Primary  Bus: USB
    BD Address: 40:1C:83:8D:D6:04  ACL MTU: 1021:4  SCO MTU: 96:6
    UP RUNNING PSCAN 
    RX bytes:1058550 acl:187 sco:0 events:110817 errors:0
    TX bytes:63926682 acl:95904 sco:0 commands:9535 errors:0
    Features: 0xbf 0xfe 0x0f 0xfe 0xdb 0xff 0x7b 0x87
    Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
    Link policy: RSWITCH SNIFF 
    Link mode: SLAVE ACCEPT 
    Name: 'machine-head'
    Class: 0x3c010c
    Service Classes: Rendering, Capturing, Object Transfer, Audio
    Device Class: Computer, Laptop
    HCI Version: 5.2 (0xb)  Revision: 0x3236
    LMP Version: 5.2 (0xb)  Subversion: 0x3236
    Manufacturer: Intel Corp. (2)

蓝牙信息

jekson@machine-head:~$ sudo service bluetooth status
● bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2021-10-06 12:02:26 WEST; 3h 2min ago
       Docs: man:bluetoothd(8)
   Main PID: 1209 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 18795)
     Memory: 2.9M
     CGroup: /system.slice/bluetooth.service
             └─1209 /usr/lib/bluetooth/bluetoothd

окт 06 12:02:26 machine-head systemd[1]: Started Bluetooth service.
окт 06 12:02:26 machine-head bluetoothd[1209]: Starting SDP server
окт 06 12:02:26 machine-head bluetoothd[1209]: Bluetooth management interface 1.19 initialized
окт 06 12:02:35 machine-head bluetoothd[1209]: Endpoint registered: sender=:1.115 path=/MediaEndpoint/A2DPSink/sbc
окт 06 12:02:35 machine-head bluetoothd[1209]: Endpoint registered: sender=:1.115 path=/MediaEndpoint/A2DPSource/sbc
окт 06 12:02:55 machine-head bluetoothd[1209]: profiles/audio/avdtp.c:avdtp_connect_cb() connect to 18:95:52:44:01:F8: Device or resource busy (16)
окт 06 12:02:57 machine-head bluetoothd[1209]: profiles/audio/avctp.c:avctp_control_confirm() Control: Refusing unexpected connect
окт 06 12:03:00 machine-head bluetoothd[1209]: /org/bluez/hci0/dev_18_95_52_44_01_F8/sep1/fd0: fd(40) ready
окт 06 13:06:21 machine-head bluetoothd[1209]: /org/bluez/hci0/dev_18_95_52_44_01_F8/fd1: fd(39) ready
окт 06 13:39:59 machine-head bluetoothd[1209]: /org/bluez/hci0/dev_18_95_52_44_01_F8/fd2: fd(39) ready

在此处输入图片描述

在此处输入图片描述

答案1

理论上,你应该直接访问settings并:

  1. Output在您的蓝牙设备中选择
  2. Configuration在个人资料中选择HSP,而不是A2DP
  3. 现在Input您将看到您的蓝牙设备!

但这在 20.04 中似乎不起作用。

=> 因此请按照https://atish3604.medium.com/solved-bluetooth-headset-mic-not-working-detected-in-ubuntu-20-04-86a5236444d0(也显示在在 Ubuntu 18.04 中使用带麦克风的蓝牙耳机(HFP)但截至 2023 年 8 月有一个错误)。

现在,您可以选择

  • Handsfree:质量较低,但输入/输出
  • Headset:高质量但仅输出

相关内容