首页 文章

Linux中的HFP / HSP配置文件

提问于
浏览
9

我有Ubuntu 16.04并且已经安装了BlueZ 5.37,PulseAudio 10.0和ofono 1.20(从github克隆) .

而且我需要使用像调制解调器这样的电话来将我的电话呼叫发送到电脑 . 我将我的电话与PC配对,使设备信任并连接(所有操作都成功) . 我认为ofono的问题,因为我可以播放音乐(使用A2DP),但如果我想使用免费或耳机配置文件 - 我在PC上没有声音 .

在pacmd(PulseAudio控制台工具)列表卡中,我看到了我的蓝牙设备,但耳机音频网关HFP / HSP是不可用的 . 我也在不同的设备和计算机上测试过它 .

谢谢你的建议 .

3 回答

  • 1

    我用这种方式解决了:

    安装“ofono”

    在' /etc/pulse/default.pa ' find the line ' l oad-module module-bluetooth-discover ' and change it in ' load-module module-bluetooth-discover headset=ofono '

    添加用户“ pulse " to group " bluetooth " to grant the permission: " sudo useradd -g bluetooth pulse ”(可能它已经正确)

    非常重要:要授予权限,请将其添加到 /etc/dbus-1/system.d/ofono.conf (在/ busconfig>之前):

    <policy user="pulse">
     <allow send_destination="org.ofono"/>
    </policy>
    

    见:https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Bluetooth/

    好消息:现在在pavucontrol中我可以看到,如果我拨打电话,配置文件会自动从A2DP更改为HSP / HFP,然后它会神奇地返回到A2DP!

    坏消息:每次启动它只工作一次(并检查ofonod是否正在运行),然后我必须重新启动我的Debian系统 .

  • 0

    Fedora 20中没有适用于蓝牙耳机的HSP / HFP配置文件,可在Fedora 19中更换设备并再次测试

    SOLVING HFP/HSP AND A2DP PROFILE ISSUES ON LINUX

  • 0

    My Solution:

    经过大量搜索,我刚刚在Fedora 26中找到了我的解决方案,使用了Plantronics Legend和可插拔蓝牙USB .

    我将回顾我的历史,并尽我所能用我的解决方案更新线程 . 这对我来说很直接来自Plugable(我正在使用的USB模块) .

    看这篇文章:plugable-usb-bluetooth-adapter-solving-hfphsp-profile-issues-on-linux

    Command Summary per Above Link:

    wget https://s3.amazonaws.com/plugable/bin/fw-0a5c_21e8.hcd

    sudo mkdir /lib/firmware/brcm

    sudo mv fw-0a5c_21e8.hcd /lib/firmware/brcm/BCM20702A0-0a5c-21e8.hcd

    sudo cp /lib/firmware/brcm/BCM20702A0-0a5c-21e8.hcd /lib/firmware/brcm/BCM20702A1-0a5c-21e8.hcd

    然后重启 .

相关问题