LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Getting Lirc to recognize only first event of "hanging" button. Possible? (https://www.linuxquestions.org/questions/linux-software-2/getting-lirc-to-recognize-only-first-event-of-hanging-button-possible-909047/)

martdj 10-19-2011 04:41 PM

Getting Lirc to recognize only first event of "hanging" button. Possible?
 
Hi all,
I have a Silverstone LC16M HTPC case. This case has knob which you can turn, but also press (same knob as on Antec Veris case). I would like to be able to use this know to browse through my (XBMC) menu and by pressing the knob I want to select the highlighted menu item. My problem is, that a press of the knob fires a whole series of Lirc events. irw shows this:
000001ff00003901 00 KnobClick iMON-PAD
000001ff00003901 01 KnobClick iMON-PAD
000001ff00003901 02 KnobClick iMON-PAD
000001ff00003901 03 KnobClick iMON-PAD
000001ff00003901 04 KnobClick iMON-PAD
000001ff00003901 05 KnobClick iMON-PAD
000001ff00003901 06 KnobClick iMON-PAD
000001ff00003901 07 KnobClick iMON-PAD
000001ff00003901 08 KnobClick iMON-PAD

The number of lines is variable, but always at least 5. I think this is a hardware problem, which I won't be able to solve on that side. What I would like is if I could tell Lirc to only recognise the first line (so 000001ff00003901 00 KnobClick iMON-PAD) and ignore the rest. Is that doable?

The current line in my lirc.conf is:
000001ff00003901 0a KnobClick iMON-PAD

martdj 11-14-2011 03:33 AM

Really no one knows how to do this?


All times are GMT -5. The time now is 07:58 PM.