Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Change Moode volume with bluetooth headphone buttons
#1
Hi all,

I am trying to find a way to use the volume buttons of my bluetooth headphones to set the volume shown in Moode's GUI (i.e. actvate "absolute volume" for the bluetooth output) .

I already got to the point where I can use the headphone volume buttons to set the volume level shown by alsamixer -D bluealsa. Yet this does not have any effect on the volume shown by the Moode GUI. How do the alsa and Moode (MPD?) volume settings actually relate to each other? Is there a way to keep them synchronised as well?

What I did so far (starting from a fresh Moode 8.3.9 installation):

1) Enable the native A2DP volume control of bluealsa by adding the switch --a2dp-volume in the config file /etc/systemd/system/bluealsa.service:
Code:
[Service]
Type=simple
ExecStart=/usr/bin/bluealsa -p a2dp-source -p a2dp-sink -c aptx -c aptx-hd -c ldac --a2dp-volume --sbc-quality=xq+

2) Connect to the bluetooth headphone and deactivate bluealsa's internal scaling by issuing the following command (using the device name shown by bluealsa-cli list-pcms):
Code:
bluealsa-cli soft-volume /org/bluealsa/hci0/dev_XX_XX_XX_XX_XX_XX/a2dpsrc/sink false

3) Verify that bluealsa-cli --verbose list-pcms shows "Softvolume: false" and that I can now use the volume buttons on the headphone to change the volume shown by alsamixer -D bluealsa


Any ideas what is missing to take the final step and synchronise with the Moode volume level (if this is possible at all)?

Thanks & best regards
Jens
Reply


Forum Jump: