Page 1 of 1

Hudiy's 1.2 audio sink volume is not coupled to system volume

Posted: Thu Sep 25, 2025 11:56 am
by Giggig
When I was redesigning my head unit after switching to hudiy I decided to re use a cheap USB keypad with a knob for volume control and custom actions since on openauto pro it caused issues.
On hudiy 1.0 the volume knob worked flawlessly, I had it set to control the system's volume and when I used it hudiy would give me a toast that the volume was indeed changing. Now on 1.2 the volume knob changes the system volume but not hudiy's. It's not a big deal since I can still control the volume through the knob but I would like to have it working like it did on 1.0

I have shot a video of the issue, since it's too big to be an attachment you can find it here https://photos.app.goo.gl/DiCDoRGLG1p3Qu159

Re: Hudiy's 1.2 audio sink volume is not coupled to system volume

Posted: Thu Sep 25, 2025 12:14 pm
by hudiy
This is most likely related to the change in how PipeWire modules are loaded. In version 1.2, we moved module loading from the PipeWire configuration file into the Hudiy startup script. The reason for this change is that PipeWire was loading modules before the sound card was detected, which could lead to problems with the audio graph. We are still investigating this PipeWire issue.

In your case, it is likely that the knob controls the volume of the sink created by the device, while Hudiy controls the volume of the default sink, which is hudiy_equalizer_sink.

You can adjust this behavior using the volumeSinkName parameter in main_configuration.json - https://github.com/wiboma/hudiy/blob/ma ... n.md#sound.

To display a list of sinks, run:

Code: Select all

pactl list sinks
Find the sink corresponding to your audio device and set that name in the mentioned parameter.

Re: Hudiy's 1.2 audio sink volume is not coupled to system volume

Posted: Thu Sep 25, 2025 1:21 pm
by Giggig
Thank you, it works! Another issue that isn't really related to this, the audio stream when android auto is open is like 3 times louder at the same volume compared to the a2dp stream when android auto is closed. I hoped this was caused by the decoupling of the audio sources but I guess not.

Re: Hudiy's 1.2 audio sink volume is not coupled to system volume

Posted: Thu Sep 25, 2025 2:11 pm
by hudiy
Volume of a2dp can be controller from various places. First is the phone itself. You can control the a2dp volume using volume buttons of the phone - it is probably lowered. Another place is the sink input created by the PipeWire when phone is connected to the Raspberry Pi.

You can try to increase a2dp volume using volume buttons of your phone to match the volume level of Android Auto.

Re: Hudiy's 1.2 audio sink volume is not coupled to system volume

Posted: Thu Sep 25, 2025 3:10 pm
by Giggig
Increasing the phone's volume did the trick, thank you!
I noticed that sometimes the audio through a2dp is muted, usually a reboot fixes it but I can't figure out why it does that. I thought it was something about that pipewire initialization bug that occurred in 1.0 but it's happening in 1.2 also.

Re: Hudiy's 1.2 audio sink volume is not coupled to system volume

Posted: Thu Sep 25, 2025 3:36 pm
by hudiy
When the problem occurs, you can use qpwgraph to lookup where the sound from a2dp sink input goes. It should go to hudiy_equalizer_sink and hudiy_equalizer_sink should output to the device's sink.

qpwgraph can be installed via sudo apt install qpwgraph.

You can also post more details about your setup and we will try to dig into pipewire issues on gitlab and maybe we will find something similar to your issue.

Re: Hudiy's 1.2 audio sink volume is not coupled to system volume

Posted: Sat Sep 27, 2025 12:11 pm
by Giggig
I've been using it these days but the issue is so sporadic that it hasn't happened yet. It has definitely improved since 1.0, I remember it happened frequently there, very weird