Thank you for your donation!


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


volume control by USB keyboard or volume knob
#22
That's interesting because I had a different result this morning. Here, for example, is the output for a quick twist of the Drok control knob to the right. Should be a steady steam of KEY_VOLUMEUP events:

Code:
# KEY_VOLUMEUP    1    command
EV_KEY    KEY_VOLUMEUP    0    /dev/input/event3
# KEY_VOLUMEUP    0    command
EV_KEY    KEY_VOLUMEUP    1    /dev/input/event3
# KEY_VOLUMEUP    1    command
EV_KEY    KEY_VOLUMEUP    0    /dev/input/event3
# KEY_VOLUMEUP    0    command
EV_KEY    KEY_VOLUMEDOWN    1    /dev/input/event3
# KEY_VOLUMEDOWN    1    command
EV_KEY    KEY_VOLUMEDOWN    0    /dev/input/event3
# KEY_VOLUMEDOWN    0    command
EV_KEY    KEY_VOLUMEDOWN    1    /dev/input/event3
# KEY_VOLUMEDOWN    1    command
EV_KEY    KEY_VOLUMEDOWN    0    /dev/input/event3
# KEY_VOLUMEDOWN    0    command
EV_KEY    KEY_VOLUMEUP    1    /dev/input/event3
# KEY_VOLUMEUP    1    command
EV_KEY    KEY_VOLUMEUP    0    /dev/input/event3

There still may be timing issues downstream, but the Drok microcode has its own problems.

Sorry, would have posted earlier but I stopped to make lunch Tongue

Regards,
Kent

PS - same "reversal" phenomenon occurs in rapid rotation to the left (counterclockwise), e.g., unexpected KEY_VOLUMEUP events interspersed among KEY_VOLUMEDOWN events
Reply


Messages In This Thread
RE: volume control by USB keyboard or volume knob - by TheOldPresbyope - 02-16-2020, 07:20 PM

Forum Jump: