Sapd / HeadsetControl

Sidetone and Battery status for Logitech G930, G533, G633, G933 SteelSeries Arctis 7/PRO 2019 and Corsair VOID (Pro) in Linux and MacOSX
GNU General Public License v3.0
1.44k stars 176 forks source link

Single tilt on the volume knob sometimes changes the volume by multiple levels #168

Closed Luc45 closed 3 years ago

Luc45 commented 3 years ago

Hello,

I'm having this issue where the volume knob in the side of my Logitech G533 doesn't control the volume in a linear, reliable way. If I try to tilt a single time on the volume knob, the reaction isn't very reliable. If I try to roll the volume knob with my finger multiple levels, it rarely changes the volume in a predictable way, sometimes going all the way down, or changing one or two levels only.

I suspect that if I could add some kind of small throttle to the volume knob input this could be fixed. Eg: Only obey one input every 100ms

https://user-images.githubusercontent.com/9341686/127722728-ff797d62-1b46-437d-a5e7-68fbb473d329.mp4

Luc45 commented 3 years ago

Actually, I think this is being controlled by https://wiki.archlinux.org/title/Xbindkeys on my system

The commands issued are XF86AudioRaiseVolume and XF86AudioLowerVolume

PS: If anyone's facing this issue, know this is actually a thing. It's called "debounce", and there's a library for helping with that: https://aur.archlinux.org/packages/xf86-input-evdev-debounce

Sapd commented 3 years ago

Yep its not a HeadsetControl Problem. The volume knobs etc. present themselves as Keyboard to the OS. And the OS (in this case Linux with X11) must interpret them correctly.

I close (but not lock) the issue, so you can continue discussing in here