Dun*_*eal 6 sound pulseaudio bluetooth 18.04
这是一个完全更新的 Ubuntu 18.04,带有blueman. 每当我连接配对的耳机时,连接都会可靠地通过,除了Audio Profile初始化为Off. 这意味着不发出声音的耳机输出,直到我手动设置Audio Profile来High Fidelity Playback (A2DP Sink)在blueman-manager图形用户界面,在此之后,耳机很好地工作。
有没有办法在连接时自动切换Audio Profile到High Fidelity Playback (A2DP Sink)?
我怀疑这可能是默认的操作模式,pulseaudio当我连接耳机时,它的失败可能与以下警告输出有关:
W: [pulseaudio] module-bluez5-device.c: Profile a2dp_sink has no transport
提醒一下:当我在连接后手动切换并看到此警告时,声音输出工作正常,我不再看到任何警告。
我还可以从命令行设置音频配置文件:
pacmd set-card-profile 2 a2dp_sink
这实现了与从blueman-managergui切换配置文件相同的结果:然后耳机运行良好。
小智 2
这似乎是众多从未修复的错误之一(阻止所有非书呆子用户使用 Ubuntu)
我为此编写了一个小脚本并为其创建了一个桌面符号,因此我不需要每天摆弄蓝牙设置十次。仅当您仅连接一台设备时,此功能才有效。
# Find the index no. of the bluetooth device
bt_dev_index=`pacmd list-cards | grep bluez_card -B1 | grep index | awk '{print $2}'`
echo -e index = $bt_dev_index\\n
# Set desired bluetooth audio profile for the found index.
pacmd set-card-profile $bt_dev_index a2dp_sink
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1084 次 |
| 最近记录: |