|
From: Yan S. <ya...@se...> - 2009-01-24 16:59:37
|
Christoph Bartelmus wrote: > Hi! > > Yan Seiner "ya...@se..." wrote: > >> I got a cheap USB IR remote that emulates a keyboard. On some keys it >> sends out several characters. The problem is that these are seen as >> multiple button pushes, even if I have flags = quit set... >> > [...] > >> output from irexec - for some reason, the A and 1 keys are seen as >> separate key strokes AND the whole FA pattern is also seen - in spite of >> using the quit flag.... But this doesn't happen with the NoClue key. >> > > What do you expect to happen? > The quit flag is only evaluated at the end of the sequence. > It works for the NoClue key because the sequence ends with Tab. > The FA sequence ends with F1, not with A or 1. > > If you want only A and 1 to be executed, you have to place them before the > FA sequence, but then FA never will be executed. > I don't think I was clear.... I don't want A or 1 to be executed in the middle of the FA sequence, which is what is happening. If I hit FA, all three sequences are executed, in spite of having flags = quit set: A 1 FA It's as if lirc starts the FA sequence, then sees 'A' as part of the sequence, executes that, sees '1' as part of the sequence, executes that, and then sees 'F1' and completes the FA sequence. I just don't think that should happen. I think it has something to do with the broken way the remote is sending singals... The remote sends EV_SYN in the middle of the sequence after A, 1, and F1, and that's what seems to be causing lirc to get confused. I have to admit I don't quite get how that's happening as hw_devinput.c should ignore EV_SYN. From the evtest output, the event sequence is LeftCtrl LeftAlt A EV_SYN 1 EV_SYN F1 EV_SYN and the EV_SYN is causing lirc to interpret the events in mid-stream. > It's not a bug, it's a "feature". > It's a "feature" that's making my head hurt.... :-) --Yan |