<div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">---------- Missatge reenviat ----------<br>From: Filippo Argiolas <<a href="mailto:filippo.argiolas@gmail.com">filippo.argiolas@gmail.com</a>><br>
To: <a href="mailto:linux-dvb@linuxtv.org">linux-dvb@linuxtv.org</a><br>Date: Tue, 19 Feb 2008 16:17:55 +0100<br>Subject: [linux-dvb] [patch] support for key repeat with dib0700 ir receiver<br>Hi, my last messages have been almost ignored.. so I'm opening a new<br>
thread. Please refer to the other thread [wintv nova-t stick, dib0700<br>and remote controllers] for more info.<br><br>Here is a brief summary of the problem as far as I can understand:<br>- when a keypress event is received the device stores its data somewhere<br>
- every 150ms dib0700_rc_query reads this data<br>- since there is nothing that resets device memory if no key is being<br>pressed anymore device still stores the data from the last keypress<br>event<br>- to prevent having false keypresses the driver reads rc5 toggle bit<br>
that changes from 0 to 1 and viceversa when a new key is pressed or when<br>the same key is released and pressed again. So it ignores everything<br>until the toggle bit changes. The right behavior should be "repeat last<br>
key until toggle bit changes", but cannot be done since last data still<br>stored would be considered as a repeat even if nothing is pressed.<br>- this way it ignores even repeated key events (when a key is holded<br>
down)<br>- this approach is wrong because it works just for rc5 (losing repeat<br>feature..) but doesn't work for example with nec remotes that don't set<br>the toggle bit and use a different system.<br><br>The patch solves it calling dib0700_rc_setup after each poll resetting<br>
last key data from the device. I've also implemented repeated key<br>feature (with repeat delay to avoid unwanted double hits) for rc-5 and<br>nec protocols. It also contains some keymap for the remotes I've used<br>
for testing (a philipps compatible rc5 remote and a teac nec remote).<br>They are far from being complete since I've used them just for testing.<br><br>Thanks for reading this,<br>Let me know what do you think about it,<br>
Greets,<br><br>Filippo<br></blockquote></div><br><br><br>Hi, <br> Thanks for your efforts. żDo you think this patch will also be useful to the unknown keycodes problem of the Nova-T 500 remote?<br><br>If you don't know what I'm talking about here you have a brief description: whenever the Nova-T 500 receiver detects "invalid" or "unknown" IR codes (i.e. when you operate the TV remote, etc...) it keeps logging warning messages to kernel ring buffer until a "valid" code is received.<br>
<br>There is a very simple patch in the wiki for this, but it doesn't cure the problem, just the symptons. I was wondering if your patch is a better way to solve it...<br><br>Regards, <br> Eduard<br><br><br><br>