无法在 HSP/HFP 模式下使用蓝牙耳机 - ubuntu 20.04

无法在 HSP/HFP 模式下使用蓝牙耳机 - ubuntu 20.04

我有一款罗技无线耳机,可以以两种不同的模式工作:不带麦克风的高保真立体声音频(A2DP)和带麦克风的耳机(HSP/HFP)。

A2DP 模式可以工作,但是当我尝试切换到 HSP/HFP 时,耳机会静音并且任何背景媒体都会冻结,直到我返回 A2DP。

这是我切换模式时获得的 dsmeg 输出:

[   82.437350] ACPI BIOS Error (bug): AE_AML_PACKAGE_LIMIT, Index (0x0000000FF) is beyond end of object (length 0xF) (20190816/exoparg2-393)
[   82.437366] No Local Variables are initialized for Method [GINF]
[   82.437367] Initialized Arguments for Method [GINF]:  (2 arguments defined for method invocation)
[   82.437368]   Arg0:   00000000bd65d180 <Obj>           Integer 00000000000000FF
[   82.437370]   Arg1:   00000000b898f041 <Obj>           Integer 0000000000000000
[   82.437374] ACPI Error: Aborting method \_SB.GINF due to previous error (AE_AML_PACKAGE_LIMIT) (20190816/psparse-529)
[   82.437378] ACPI Error: Aborting method \_SB.GADR due to previous error (AE_AML_PACKAGE_LIMIT) (20190816/psparse-529)
[   82.437381] ACPI Error: Aborting method \_SB.SGOV due to previous error (AE_AML_PACKAGE_LIMIT) (20190816/psparse-529)
[   82.437384] ACPI Error: Aborting method \_SB.CGWR due to previous error (AE_AML_PACKAGE_LIMIT) (20190816/psparse-529)
[   82.437387] ACPI Error: Aborting method \_SB.TBFP due to previous error (AE_AML_PACKAGE_LIMIT) (20190816/psparse-529)
[   82.437390] ACPI Error: Aborting method \_SB.WMTF.WMTF due to previous error (AE_AML_PACKAGE_LIMIT) (20190816/psparse-529)
[   82.441555] ACPI BIOS Error (bug): AE_AML_PACKAGE_LIMIT, Index (0x0000000FF) is beyond end of object (length 0xF) (20190816/exoparg2-393)
[   82.441571] No Local Variables are initialized for Method [GINF]
[   82.441572] Initialized Arguments for Method [GINF]:  (2 arguments defined for method invocation)
[   82.441573]   Arg0:   000000007a385f3f <Obj>           Integer 00000000000000FF
[   82.441576]   Arg1:   00000000c7556536 <Obj>           Integer 0000000000000000
[   82.441579] ACPI Error: Aborting method \_SB.GINF due to previous error (AE_AML_PACKAGE_LIMIT) (20190816/psparse-529)
[   82.441583] ACPI Error: Aborting method \_SB.GADR due to previous error (AE_AML_PACKAGE_LIMIT) (20190816/psparse-529)
[   82.441586] ACPI Error: Aborting method \_SB.SGOV due to previous error (AE_AML_PACKAGE_LIMIT) (20190816/psparse-529)
[   82.441589] ACPI Error: Aborting method \_SB.CGWR due to previous error (AE_AML_PACKAGE_LIMIT) (20190816/psparse-529)
[   82.441592] ACPI Error: Aborting method \_SB.TBFP due to previous error (AE_AML_PACKAGE_LIMIT) (20190816/psparse-529)
[   82.441595] ACPI Error: Aborting method \_SB.WMTF.WMTF due to previous error (AE_AML_PACKAGE_LIMIT) (20190816/psparse-529)
[   92.294393] input: Logitech Wireless Headset (AVRCP) as /devices/virtual/input/input41

PC 规格

Acer A515-54g(Bios v1.17 - 最新)

无线网络:英特尔WIFI6 AX201

英特尔酷睿 i5 10210u

与 Windows 10 双启动(已禁用快速启动)

编辑:

ACPI 错误可能是由驱动程序问题引起的。英特尔 AX201 卡是一款非常新的卡,系统无法正确检测到它(正如我在这里)。也许这些问题在某种程度上是相关的。

答案1

我也遇到过这个问题。pulseaudio 和 bluez 确认存在错误。请报告它对您造成的影响:https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1878194

答案2

我刚从 19.10 升级到 20.04 后就遇到了同样的问题。

当蓝牙耳机连接时,它会自动配置为 HSP/HSP,但它不适用于此配置(在 19.10 中可以)。

答案3

我终于让我的蓝牙耳机在 HSP 模式下工作,这意味着麦克风也可以工作。

第一步:确保你的蓝牙固件

当我执行命令时:sudo dmesg | grep -i bluetooth
我收到了类似的消息:

蓝牙 hci1:brcm/BCM20702A1-0b05-17cb.hcd 的直接固件加载失败,错误为 -2

安装后broadcom-bt-固件相同的命令返回

[21.883358]蓝牙:hci0:BCM20702A1'brcm/BCM20702A1-0b05-17cb.hcd'补丁

第二步:编辑 /etc/pulse/default.pa

并注释掉 module-bluetooth 周围的 ifexist 和 endif,这样策略和发现就会自动加载

### Automatically load driver modules for Bluetooth hardware
#.ifexists module-bluetooth-policy.so
load-module module-bluetooth-policy
#.endif

#.ifexists module-bluetooth-discover.so
#load-module module-bluetooth-discover headset=ofono
load-module module-bluetooth-discover
#.endif

第三步:清除并重新安装脉冲

我跟着这个 awsner
sudo apt-get --purge --reinstall install pulseaudio
并确保/etc/pulse/client.conf你的autospawn = yes
reboot

相关内容