Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761603AbZATXIn (ORCPT ); Tue, 20 Jan 2009 18:08:43 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756072AbZATXIf (ORCPT ); Tue, 20 Jan 2009 18:08:35 -0500 Received: from twin.jikos.cz ([213.151.79.26]:58892 "EHLO twin.jikos.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755793AbZATXIe (ORCPT ); Tue, 20 Jan 2009 18:08:34 -0500 Date: Wed, 21 Jan 2009 00:08:25 +0100 (CET) From: Jiri Kosina X-X-Sender: jikos@twin.jikos.cz To: mike zheng cc: linux-kernel@vger.kernel.org Subject: Re: How to check input device In-Reply-To: <5c9cd53b0901201343k11289f2dg24c62609cb42c494@mail.gmail.com> Message-ID: References: <5c9cd53b0901201343k11289f2dg24c62609cb42c494@mail.gmail.com> User-Agent: Alpine 1.10 (LRH 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 900 Lines: 22 On Tue, 20 Jan 2009, mike zheng wrote: > It is the first time for me to use the input device. I have a keypad > driver registers a keypad the device as an input device in the kernel > 2.6. The registration of the driver is OK, I can see the interrupt > whenever there is key pressed. How can I verify if it works fine? Where > can I check keycode value of the key pressed? If the input device is registered properly, there should be corresponding /dev/input/eventX created. Running evtest (from input-utils) on this node will decode and dump all the scancodes/keycodes that come out of the corresponding input device. -- Jiri Kosina SUSE Labs -- 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/