Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752128AbXFKL60 (ORCPT ); Mon, 11 Jun 2007 07:58:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751321AbXFKL6D (ORCPT ); Mon, 11 Jun 2007 07:58:03 -0400 Received: from ug-out-1314.google.com ([66.249.92.169]:26532 "EHLO ug-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751233AbXFKL54 (ORCPT ); Mon, 11 Jun 2007 07:57:56 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:subject:from:reply-to:to:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=oOvbHHCOjNDkRzRzOkjnD8kf8/zDQbso5CeLrelnWCwm0I4cw+hZo9uD+ds5uepUR+XdAP33PIykscVlZbE78vSpds65DDzYRwj0GvFVJmlVStmNQZyK3hUm7O8LPZU2pK/7udpw5ynxU3AnhgHrYDcU0YN7cpF7ywYXyV4nLiw= Subject: USB remote control missing keycodes From: Islam Amer Reply-To: pharon@gmail.com To: linux-kernel@vger.kernel.org In-Reply-To: <466D2DF7.9020709@aladin.ro> References: <20070611101319.GA14284@DervishD> <466D2DF7.9020709@aladin.ro> Content-Type: text/plain Date: Mon, 11 Jun 2007 14:57:43 +0300 Message-Id: <1181563063.19258.11.camel@iamer-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3447 Lines: 98 Hello all. I have a remote control device, with an IR transciever that plugs into a USB port and registers as an input device. All the buttons on the remote work fine except for the back , text , and three grey buttons at the top. Here is the relevant /proc/bus/input/devices entry : I: Bus=0003 Vendor=18b1 Product=0037 Version=0100 N: Name="ELMAK.pl irMAKbd pl" P: Phys=usb-0000:00:03.1-2/input0 S: Sysfs=/class/input/input4 H: Handlers=kbd mouse1 event4 ts1 B: EV=12000f B: KEY=f 42c53b7 bf0d4400 0 0 70001 10004 3c007 ff8763fa c140dfff febeffdf ffefffff ffffffff fffffffe B: REL=103 B: ABS=7ff01 0 B: LED=1f I did a little investigation using evbug and inputlircd and it seems that these buttons generate codes that get dropped somewhere in the input layer. They work fine on windows. I used a modified inputlircd to get all the raw keycodes using irw : Here's what I get for the down key : 6c 0 KEY_DOWN event4 0 0 KEY_RESERVED event4 29 0 KEY_GRAVE event4 0 0 KEY_RESERVED event4 6c 0 KEY_DOWN event4 0 0 KEY_RESERVED event4 and volume+ 73 0 KEY_VOLUMEUP event4 0 0 KEY_RESERVED event4 29 0 KEY_GRAVE event4 0 0 KEY_RESERVED event4 73 0 KEY_VOLUMEUP event4 0 0 KEY_RESERVED event4 As compared to the non-functional keys like back : 29 0 KEY_GRAVE event4 0 0 KEY_RESERVED event4 As you can see it is sending only the reserved and GRAVE codes, and no special codes. Next point of debugging is inside the kernel, using the evbug module : sudo modprobe evbug pressed the Volume+ key look in dmesg : [ 2815.891865] evbug.c: Connected device: "Macintosh mouse button emulation", [ 2815.891874] evbug.c: Connected device: "AT Translated Set 2 keyboard", isa0060/serio0/input0 [ 2815.891878] evbug.c: Connected device: "cx88 IR (Hauppauge Nova-S-Plus ", pci-0000:00:05.0/ir0 [ 2815.891883] evbug.c: Connected device: "PC Speaker", isa0061/input0 [ 2815.891887] evbug.c: Connected device: "ELMAK.pl irMAKbd pl", usb-0000:00:03.1-2/input0 [ 2815.891892] evbug.c: Connected device: "Power Button (FF)", ACPI_FPB/button/input0 [ 2815.891896] evbug.c: Connected device: "Power Button (CM)", PNP0C0C/button/input0 [ 2820.988865] evbug.c: Event. Dev: usb-0000:00:03.1-2/input0, Type: 1, Code: 115, Value: 1 [ 2820.988875] evbug.c: Event. Dev: usb-0000:00:03.1-2/input0, Type: 0, Code: 0, Value: 0 [ 2820.996844] evbug.c: Event. Dev: usb-0000:00:03.1-2/input0, Type: 3, Code: 41, Value: 144 [ 2820.996854] evbug.c: Event. Dev: usb-0000:00:03.1-2/input0, Type: 0, Code: 0, Value: 0 [ 2821.212577] evbug.c: Event. Dev: usb-0000:00:03.1-2/input0, Type: 1, Code: 115, Value: 0 [ 2821.212587] evbug.c: Event. Dev: usb-0000:00:03.1-2/input0, Type: 0, Code: 0, Value: 0 pressed the Back button the extra lines are : [ 2856.041526] evbug.c: Event. Dev: usb-0000:00:03.1-2/input0, Type: 3, Code: 41, Value: 35 [ 2856.041537] evbug.c: Event. Dev: usb-0000:00:03.1-2/input0, Type: 0, Code: 0, Value: 0 I just need a pointer to where to start looking at the problem. Here's the website for the remote http://www.elmak.pl/index.php?option=com_phpshop&page=shop.browse&category_id=14&ext=opis&lang=en I am running ubuntu fiesty Linux ubuntu 2.6.20-15-generic #2 SMP Thanks in advance. - 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/