Re: USB remote control missing keycodes

From: Jiri Kosina
Date: Thu Jun 14 2007 - 08:30:39 EST


On Thu, 14 Jun 2007, Islam Amer wrote:

> Ok here is everything from dmesg after the point of plugging in the usb
> IR receiver, which is quite lengthy so as an attachment.

Thanks. Obviously this remote has broken report descriptor -- it generates
0xfa usage code from Consumer page for the "back" key (not to mention that
it should rather generate 0x224 for KEY_BACK), but logical maximum for
coresponding field is set to 0xf9, as far as I can see from the dump you
provided.

I have met such devices already, we are fixing their report descriptors on
the fly before they enter the HID parser. I will prepare a patch for you
to test (probably tomorrow, sorry).

BTW this also means that the support for the BACK key can't currently be
written in userspace using the setkeycodes() method, because this usage is
currently just ignored, due to being out of range.

--
Jiri Kosina
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/