手机做为蓝牙音频源链接到Linux时,如何经过音量键调节传入的音量大小

背景一:
咱们知道,把手机做为音频源经过蓝牙链接到电脑,就能够把手机的声音转移到电脑上。
背景二:
我喜欢带着耳机用个人Linux本刷youtube,也喜欢用个人iPhone听音乐。为了同时作这两件事,我常用背景一提到的方法。

可是我发现一个问题:
手机蓝牙传入的音量始终是固定的,不能经过手机的音量键控制。并且声音每每太大,盖过了电脑视频的音量。ios

如何解决这个问题呢?
很简单:运行 bluetoothd 的时候加上 --plugin=a2dp 的参数。git

具体步骤以下:github

sudo vim /lib/systemd/system/bluetooth.service

append --plugin=a2dp to the following lineubuntu

ExecStart=/usr/lib/bluetooth/bluetoothd

Then it will looks like this:vim

ExecStart=/usr/lib/bluetooth/bluetoothd --plugin=a2dp --compat

for Debian / Raspbian Stretch users, maybe you'll also need to add --noplugin=sap:bash

ExecStart=/usr/lib/bluetooth/bluetoothd --plugin=a2dp --compat --noplugin=sap

Then:app

sudo systemctl daemon-reload
sudo systemctl restart bluetooth

Now you're able to control the music volume passed into your laptop using the volume buttons of your iPhone.this

https://askubuntu.com/questions/997553/ubuntu-18-04-17-10-pulseaudio-bluetooth-ios-volume-control
https://github.com/hadess/CHIP-bluetooth-speaker/issues/83d

相关文章
相关标签/搜索