Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752115AbXFNMai (ORCPT ); Thu, 14 Jun 2007 08:30:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751303AbXFNMac (ORCPT ); Thu, 14 Jun 2007 08:30:32 -0400 Received: from twin.jikos.cz ([213.151.79.26]:60084 "EHLO twin.jikos.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751333AbXFNMab (ORCPT ); Thu, 14 Jun 2007 08:30:31 -0400 Date: Thu, 14 Jun 2007 14:30:27 +0200 (CEST) From: Jiri Kosina To: Islam Amer cc: Dmitry Torokhov , linux-kernel@vger.kernel.org Subject: Re: USB remote control missing keycodes In-Reply-To: <1181823597.6136.8.camel@iamer-laptop> Message-ID: References: <20070611101319.GA14284@DervishD> <466D2DF7.9020709@aladin.ro> <1181563063.19258.11.camel@iamer-laptop> <1181743734.6163.1.camel@iamer-laptop> <1181750326.6163.6.camel@iamer-laptop> <1181823597.6136.8.camel@iamer-laptop> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1133 Lines: 26 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/