On Thu, Feb 25, 2010 at 8:34 PM, Jarod Wilson <jarod@wilsonet.com> wrote:
On Thu, Feb 25, 2010 at 4:48 AM, daniel åkerud <daniel.akerud@gmail.com> wrote:
> On Mon, Feb 22, 2010 at 6:52 PM, daniel åkerud <daniel.akerud@gmail.com>
> wrote:
>>
>> This is what mode2 --raw looks like:
>> Pressing Cursor Up:
>> code: 0x0100800000000000
>> code: 0x0100800000000000
>> ... continues for about 20 or 30, or about 2 seconds (it has _very_ rapid
>> repeat rate on the cursors).
>> code: 0x0100800000000000
>> code: 0x0100800000000000
>> code: 0x7bffffff00d62101
>> code: 0x28b595b700902101
>> code: 0x28b5d5b700e02101
>> And here it stops. And when that happens, the Knob stops blinking as if it
>> has given up, but you can still see that the remote keeps sending IR.
>> Just to be clear: all buttons work, it's just during long presses of the
>> up/down/left/right buttons.
>>
>
> In case anyone is interested in this, I have tracked the problem a bit, and
> it seems to be the lirc_imon driver.
> NOTE: I tested the hardware in windows and it does not inhibit this
> behavior.
> I put some prints in drivers/lirc_imon/lirc_imon.c::imon_incoming_packet,
> and this is the actual data that comes from the hardware.
> So, If I may speculate, there "must" be some miscommunication between the
> imon kernel driver and the hardware.

We don't do anything specific in the driver that I'm aware of to
suppress repeats. I've seen this behavior, and just assumed it was how
the onboard decoder worked. Seems maybe windows is doing something
extra to flush the decoder and tell it to keep going, I dunno.


--
Jarod Wilson
jarod@wilsonet.com

If anyone would want to help fix this together with me I can take a USB trace with usblyzer. I initially wrote "continues for about 2 seconds" but it seems to vary and currently is closer 1 sec before giving junk data. . With initial repeat delay of about half a second it more or less stops scrolling instantly. PITA :) Just in case it helps here are lirc_imon debug log of three consecutive down-presses, kept pressed until junk arrives.

Feb 26 15:50:54 sovis kernel: [ 2078.209381] intf0 decoded packet: 01 00 7f 00 00 00 00 00
Feb 26 15:50:54 sovis kernel: [ 2078.281362] intf0 decoded packet: 01 00 7f 00 00 00 00 00
Feb 26 15:50:54 sovis kernel: [ 2078.353346] intf0 decoded packet: 01 00 7f 00 00 00 00 00
Feb 26 15:50:54 sovis kernel: [ 2078.417333] intf0 decoded packet: 01 00 7f 00 00 00 00 00
Feb 26 15:50:54 sovis kernel: [ 2078.449329] intf0 decoded packet: 01 00 7f 00 00 00 00 00
Feb 26 15:50:54 sovis kernel: [ 2078.489321] intf0 decoded packet: 01 00 7f 00 00 00 00 00
Feb 26 15:50:54 sovis kernel: [ 2078.521314] intf0 decoded packet: 01 00 7f 00 00 00 00 00
Feb 26 15:50:54 sovis kernel: [ 2078.553309] intf0 decoded packet: 01 00 7f 00 00 00 00 00
Feb 26 15:50:54 sovis kernel: [ 2078.585300] intf0 decoded packet: f9 87 f9 b7 00 de 21 01
Feb 26 15:50:54 sovis kernel: [ 2078.625293] intf0 decoded packet: 78 8e b9 ff 00 8b 21 01
Feb 26 15:50:54 sovis kernel: [ 2078.657291] intf0 decoded packet: 79 fe ff b7 00 d8 21 01
Feb 26 15:50:54 sovis kernel: [ 2078.689282] intf0 decoded packet: 46 ff ff bf 00 8f 21 01
Feb 26 15:50:54 sovis kernel: [ 2078.729272] intf0 decoded packet: bf ef ff ff 00 97 21 01
Feb 26 15:50:54 sovis kernel: [ 2078.761263] intf0 decoded packet: 7f ff ff ff 00 8c 21 01
Feb 26 15:51:01 sovis kernel: [ 2085.328040] intf0 decoded packet: 01 00 7f 00 00 00 00 00
Feb 26 15:51:01 sovis kernel: [ 2085.400026] intf0 decoded packet: 01 00 7f 00 00 00 00 00
Feb 26 15:51:01 sovis kernel: [ 2085.464007] intf0 decoded packet: 01 00 7f 00 00 00 00 00
Feb 26 15:51:01 sovis kernel: [ 2085.535988] intf0 decoded packet: 01 00 7f 00 00 00 00 00
Feb 26 15:51:01 sovis kernel: [ 2085.567984] intf0 decoded packet: 01 00 7f 00 00 00 00 00
Feb 26 15:51:01 sovis kernel: [ 2085.599980] intf0 decoded packet: 01 00 7f 00 00 00 00 00
Feb 26 15:51:01 sovis kernel: [ 2085.639972] intf0 decoded packet: 01 00 7f 00 00 00 00 00
Feb 26 15:51:01 sovis kernel: [ 2085.671965] intf0 decoded packet: 01 00 7f 00 00 00 00 00
Feb 26 15:51:01 sovis kernel: [ 2085.703968] intf0 decoded packet: 01 00 7f 00 00 00 00 00
Feb 26 15:51:01 sovis kernel: [ 2085.735947] intf0 decoded packet: 01 00 7f 00 00 00 00 00
Feb 26 15:51:01 sovis kernel: [ 2085.775939] intf0 decoded packet: 01 00 7f 00 00 00 00 00
Feb 26 15:51:02 sovis kernel: [ 2085.807939] intf0 decoded packet: 01 00 7f 00 00 00 00 00
Feb 26 15:51:02 sovis kernel: [ 2085.871924] intf0 decoded packet: 68 8e ff bf 00 d3 21 01
Feb 26 15:51:02 sovis kernel: [ 2085.911919] intf0 decoded packet: 37 ff be ff 00 8c 21 01
Feb 26 15:51:02 sovis kernel: [ 2085.943915] intf0 decoded packet: ff e7 ff ff 00 d1 21 01
Feb 26 15:51:02 sovis kernel: [ 2085.991898] intf0 decoded packet: ff 7f ff ff 00 8a 21 01
Feb 26 15:51:02 sovis kernel: [ 2086.015895] intf0 decoded packet: 7f ff ff ff 00 91 21 01
Feb 26 15:51:02 sovis kernel: [ 2086.087879] intf0 decoded packet: 7f ff ff ff 00 9b 21 01
Feb 26 15:51:06 sovis kernel: [ 2090.655037] intf0 decoded packet: 01 00 7f 00 00 00 00 00
Feb 26 15:51:06 sovis kernel: [ 2090.727021] intf0 decoded packet: 01 00 7f 00 00 00 00 00
Feb 26 15:51:06 sovis kernel: [ 2090.791009] intf0 decoded packet: 01 00 7f 00 00 00 00 00
Feb 26 15:51:07 sovis kernel: [ 2090.863004] intf0 decoded packet: 01 00 7f 00 00 00 00 00
Feb 26 15:51:07 sovis kernel: [ 2090.894997] intf0 decoded packet: 01 00 7f 00 00 00 00 00
Feb 26 15:51:07 sovis kernel: [ 2090.934989] intf0 decoded packet: 01 00 7f 00 00 00 00 00
Feb 26 15:51:07 sovis kernel: [ 2090.966979] intf0 decoded packet: 01 00 7f 00 00 00 00 00
Feb 26 15:51:07 sovis kernel: [ 2090.998976] intf0 decoded packet: 01 00 7f 00 00 00 00 00
Feb 26 15:51:07 sovis kernel: [ 2091.030964] intf0 decoded packet: 68 83 bd b7 00 c9 21 01
Feb 26 15:51:07 sovis kernel: [ 2091.070964] intf0 decoded packet: 5e 15 cd bf 00 d5 21 01
Feb 26 15:51:07 sovis kernel: [ 2091.102959] intf0 decoded packet: 6c 86 b9 ff 00 be 21 01
Feb 26 15:51:07 sovis kernel: [ 2091.166947] intf0 decoded packet: eb fe ff ff 00 c8 21 01
Feb 26 15:51:07 sovis kernel: [ 2091.206939] intf0 decoded packet: 4f fd fd ff 00 91 21 01
Feb 26 15:51:07 sovis kernel: [ 2091.238935] intf0 decoded packet: ff f7 ff ff 00 99 21 01

BR/D