From: Marko Ristola <marko.ristola@kolumbus.fi>
To: "Adrian C." <anrxc@sysphere.org>
Cc: Christoph Pinkl <christoph.pinkl@gmail.com>,
abraham.manu@gmail.com, linux-media@vger.kernel.org
Subject: Re: AW: Remote control not working for Terratec Cinergy C (2.6.37 Mantis driver)
Date: Sat, 21 May 2011 19:19:01 +0300 [thread overview]
Message-ID: <4DD7E5F5.4090503@kolumbus.fi> (raw)
In-Reply-To: <alpine.LNX.2.00.1105210922290.31652@flfcurer.bet>
I noticed that too on the C code:
If keypress comes from the remote control,
driver does both "push down" and "release" immediately.
Some years ago I made a version that did something like this:
I measured that a remote control sends "key pressed" in about 20ms cycles.
Thus I decided that the driver can do following:
Whe key '1' is pressed initially, send "key 1 pressed to input layer".
If within 30ms a '1 pressed' comes from the remote control, driver keeps '1' as pressed (do nothing for input layer).
If there won't come a '1 pressed' from remote within 30ms, then driver sends "key 1 unpressed to input layer".
I don't know if there is any reusable algorithm (easilly usable code) for remote control drivers for this.
Regards,
Marko Ristola
21.05.2011 10:23, Adrian C. kirjoitti:
> Haven't noticed earlier that every button press is executed twice, until
> I did some testing with Oxine. Not sure how much Lirc is to blame for
> this, and for button 0 not working. I will move to the Lirc list.
>
> Thanks again for the patch.
>
next prev parent reply other threads:[~2011-05-21 16:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-03 22:42 Remote control not working for Terratec Cinergy C (2.6.37 Mantis driver) Adrian C.
2011-05-06 17:37 ` Marko Ristola
2011-05-10 21:30 ` Adrian C.
2011-05-11 12:32 ` AW: " Christoph Pinkl
2011-05-13 14:23 ` Christoph Pinkl
2011-05-21 1:15 ` Adrian C.
2011-05-21 7:04 ` Adrian C.
2011-05-21 7:23 ` Adrian C.
2011-05-21 16:19 ` Marko Ristola [this message]
2011-05-22 18:20 ` AW: " Christoph Pinkl
2011-05-23 0:02 ` Adrian C.
2011-07-14 7:59 ` D. R.
-- strict thread matches above, loose matches on Subject: below --
2011-05-20 13:24 Lou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DD7E5F5.4090503@kolumbus.fi \
--to=marko.ristola@kolumbus.fi \
--cc=abraham.manu@gmail.com \
--cc=anrxc@sysphere.org \
--cc=christoph.pinkl@gmail.com \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox