Page 1 of 1
usb rotary encoder
Posted: Mon Nov 24, 2025 7:52 pm
by k.s.deviate
Pardon my ignorance, but if I have a usb rotary encoder that natively adjusts the volume when outside of Hudiy (on desktop) would I still need to use a script to get Hudiy to recognize the inputs?
Re: usb rotary encoder
Posted: Mon Nov 24, 2025 8:23 pm
by hudiy
Could you please send the model of the rotary encoder you're referring to? In general, if the encoder is handled by PipeWire, then there is no need to implement encoder handling directly in Hudiy.
Most likely the encoder (if handled by PipeWire) controls the volume of the default audio sink, which becomes hudiy_equalizer_sink once Hudiy is started. By default, Hudiy also controls the volume of the default audio sink so the PipeWire should be able to synchronize that.
https://github.com/wiboma/hudiy/blob/ma ... E.md#audio
https://github.com/wiboma/hudiy/blob/ma ... n.md#sound
Re: usb rotary encoder
Posted: Mon Nov 24, 2025 11:14 pm
by k.s.deviate
Sorry, I couldn't find the model. However I found the link from where I purchased it.
https://a.aliexpress.com/_ms4Gidx
I tried it and it does work in the desktop environment but not in Hudiy
Re: usb rotary encoder
Posted: Tue Nov 25, 2025 12:18 am
by hudiy
It looks like it uses regular media key codes to control the volume. In labwc, those key codes correspond to XF86_AudioLowerVolume, XF86_AudioRaiseVolume, and XF86_AudioMute. According to the labwc documentation, they trigger amixer actions by default, so they directly adjust the volume of the audio device.
https://github.com/labwc/labwc?tab=read ... le#5-usage
When you say it's not working in Hudiy, do you mean that the volume itself doesn't change, or just that the toast message doesn't appear?
If it's only the toast that's missing, you need to set volumeSink to match the audio device sink.
You can get the name of the audio device sink created by PipeWire using:
Then set that name in volumeSinkName in main_configuration.json:
https://github.com/wiboma/hudiy/blob/ma ... n.md#sound
https://github.com/wiboma/hudiy/blob/ma ... E.md#audio
viewtopic.php?p=755#p755
viewtopic.php?t=63
Re: usb rotary encoder
Posted: Wed Nov 26, 2025 1:55 am
by k.s.deviate
It seems as tho adjusting the volume in the Trixie desktop and in Hudiy are independent of each other.
Setting the volume of the desktop to 100, start Hudiy, let's just say once started, Hudiy volume is set to 50, the encoder will only turn the volume down. You can then turn it back up but it can only go back up to the volume it was before (No toast, don't care).
If I use the encoder to turn the volume down so you can't hear anything while in Hudiy then alt F4 to desktop, the volume of the desktop has be lowered to zero. Go back into Hudiy, use the on screen volume and it will show the same level as it was before, 50.
I apologize if I'm not making sense, for some reason this is hard for me to describe. I'm only using Bluetooth out btw if that matters, I have disabled the audio jack and I'm using a dsi display.
Re: usb rotary encoder
Posted: Wed Nov 26, 2025 4:00 am
by k.s.deviate
I didn't read properly, I got it sorted out.
Re: usb rotary encoder
Posted: Fri Dec 05, 2025 1:27 am
by k.s.deviate
Im still having the issue where I need to select the output device.
Edit: I created a new script to ensure the dsp auto connects after boot.
Re: usb rotary encoder
Posted: Sun Jan 04, 2026 11:17 am
by Robert5974
I started having a similar issue with my USB rotary encoder. It worked before I updated HUDIY while on Bookworm. After I updated HUDIY, the USB Rotary encoder only worked in the Raspberry Pi OS. I thought maybe a fix would be to go to Trixie and install the HUDIY on top of that as the latest and greatest.
I haven't tried the USB rotary encoder yet on Trixie as I just got HUDIY installed and got caught up changing the values for AA resolution, but when I do try it hopefully it works.
Is there any reason you think this could have happened as it did? If it happens again, I'll follow the above suggestions to see if it will make a difference before asking for any further direction.
Re: usb rotary encoder
Posted: Sun Jan 04, 2026 6:10 pm
by hudiy
In the Hudiy configuration, you can specify which audio sink should be used for volume control. If no sink is set, the system default (virtual hudiy_equalizer_sink) is selected.
To our knowledge, labwc uses aamixer to handle volume keys. Most likely, aamixer (via PipeWire) controls the volume of the actual audio device sink (not the default sink), which causes the discrepancy in behavior. We recommend to specify the sink associated with the actual audio device in volumeSinkName (pactl list sinks).
Docs:
https://github.com/wiboma/hudiy/blob/ma ... n.md#sound (volumeSinkName)