On 2011-05-06 06:30, Jongi wrote:
Here is the output you requested

$ ir-keytable
Found /sys/class/rc/rc0/ (/dev/input/event7) with:
    Driver mceusb, table rc-rc6-mce
    Supported protocols: NEC RC-5 RC-6 JVC SONY LIRC
    Enabled protocols: NEC RC-5 RC-6 JVC SONY LIRC
    Extra capabilities: <access denied>

Then I try to run the scan straight after boot
# ir-keytable -t
Testing events. Please, press CTRL-C to abort.
^C

Nothing is picked up. Then the part regarding scancodes and keycodes then just throws me out. I don't have the slightest how I am meant to know where to get scancode and keycode information.

I hope that you pressed some keys there.Actually I hope you didn't because that would explain the lack of scancodes :).

I get:
$ sudo ir-keytable
Found /sys/class/rc/rc1/ (/dev/input/event4) with:
        Driver mceusb, table rc-rc6-mce
        Supported protocols: NEC RC-5 RC-6 JVC SONY LIRC
        Enabled protocols: RC-6
        Repeat delay = 500 ms, repeat period = 33 ms

$ sudo ir-keytable -s rc1 -pRC-6 -t
Protocols changed to RC-6
Testing events. Please, press CTRL-C to abort.
1304632712.126806: event MSC: scancode = 800f0422
1304632712.126816: event key down: KEY_OK (0x0160)
1304632712.126818: event sync
1304632712.232804: event MSC: scancode = 800f0422
1304632712.338806: event MSC: scancode = 800f0422
1304632712.588600: event key up: KEY_OK (0x0160)
1304632712.588607: event sync

and holding the key down:

1304633070.837551: event MSC: scancode = 800f0422
1304633070.837562: event key down: KEY_OK (0x0160)
1304633070.837565: event sync
1304633070.943585: event MSC: scancode = 800f0422
1304633071.049489: event MSC: scancode = 800f0422
1304633071.156509: event MSC: scancode = 800f0422
1304633071.262507: event MSC: scancode = 800f0422
1304633071.338592: event key down: KEY_OK (0x0160)
1304633071.368500: event MSC: scancode = 800f0422
1304633071.371590: event key down: KEY_OK (0x0160)
1304633071.404566: event key down: KEY_OK (0x0160)
1304633071.437534: event key down: KEY_OK (0x0160)
1304633071.470752: event key down: KEY_OK (0x0160)
1304633071.475542: event MSC: scancode = 800f0422
1304633071.503845: event key down: KEY_OK (0x0160)
1304633071.536595: event key down: KEY_OK (0x0160)
1304633071.569567: event key down: KEY_OK (0x0160)
1304633071.581534: event MSC: scancode = 800f0422
1304633071.602875: event key down: KEY_OK (0x0160)
1304633071.635565: event key down: KEY_OK (0x0160)
1304633071.668622: event key down: KEY_OK (0x0160)
1304633071.687533: event MSC: scancode = 800f0422
1304633071.701548: event key down: KEY_OK (0x0160)
1304633071.734567: event key down: KEY_OK (0x0160)
1304633071.767561: event key down: KEY_OK (0x0160)
1304633071.794533: event MSC: scancode = 800f0422
1304633071.800901: event key down: KEY_OK (0x0160)
1304633071.833557: event key down: KEY_OK (0x0160)
1304633071.866591: event key down: KEY_OK (0x0160)
1304633071.899565: event key down: KEY_OK (0x0160)
1304633071.900496: event MSC: scancode = 800f0422
1304633071.932549: event key down: KEY_OK (0x0160)
1304633071.965599: event key down: KEY_OK (0x0160)
1304633071.998601: event key down: KEY_OK (0x0160)
1304633072.006460: event MSC: scancode = 800f0422
1304633072.031919: event key down: KEY_OK (0x0160)
1304633072.064564: event key down: KEY_OK (0x0160)
1304633072.097536: event key down: KEY_OK (0x0160)
1304633072.130917: event key down: KEY_OK (0x0160)
1304633072.163563: event key down: KEY_OK (0x0160)
1304633072.196560: event key down: KEY_OK (0x0160)
1304633072.229594: event key down: KEY_OK (0x0160)
1304633072.256874: event key up: KEY_OK (0x0160)
1304633072.256882: event sync
 then:
$ sudo lircd -n --driver=devinput --device=/dev/input/event4 /etc/lirc/lircd.conf.devinput
and in another window:

$ irw
0000000080010160 00 KEY_OK devinput
and holding the key down:

0000000080010160 00 KEY_OK devinput
0000000080010160 01 KEY_OK devinput
0000000080010160 02 KEY_OK devinput
0000000080010160 03 KEY_OK devinput
0000000080010160 04 KEY_OK devinput
0000000080010160 05 KEY_OK devinput
0000000080010160 06 KEY_OK devinput
0000000080010160 07 KEY_OK devinput
0000000080010160 08 KEY_OK devinput
0000000080010160 09 KEY_OK devinput
0000000080010160 0a KEY_OK devinput
0000000080010160 0b KEY_OK devinput
0000000080010160 0c KEY_OK devinput
0000000080010160 0d KEY_OK devinput
0000000080010160 0e KEY_OK devinput
0000000080010160 0f KEY_OK devinput

Now, if you're getting keystrokes in your app without getting scancodes from ir-keytable -t you must be getting the IR through /dev/lirc* and, I suspect that second field from irw doesn't increment on repeat/holddown. If that's true, the app can't tell that it's a repeat.

Douglas