> An RC-5 code is just 14 bits. I found some Hauppauge decoders returning > just 12 bits on some places. It seems that all it needs is to do a > code3 | 0x3f, in order to discard the two most significant bits (MSB). > > So, the enclosed patch should fix the issues. Please test. Half way .. something still wrong. user juuzer # ir-keytable -t -d /dev/input/event6 Testing events. Please, press CTRL-C to abort. 1325331995.343188: event MSC: scancode = 3e3d 1325331995.343190: event sync 1325331995.446127: event MSC: scancode = 3e3d 1325331995.446129: event sync 1325331997.504133: event MSC: scancode = 1e3d 1325331997.504135: event key down: KEY_POWER2 (0x0164) 1325331997.504136: event sync 1325331997.607137: event MSC: scancode = 1e3d 1325331997.607138: event sync 1325331997.857161: event key up: KEY_POWER2 (0x0164) 1325331997.857163: event sync 1325331999.973135: event MSC: scancode = 3e3d 1325331999.973136: event sync 1325332000.075130: event MSC: scancode = 3e3d 1325332000.075131: event sync -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html