From owner-freebsd-usb@FreeBSD.ORG Wed Jan 30 09:09:07 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 33C45A30 for ; Wed, 30 Jan 2013 09:09:07 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.c2i.net [212.247.154.2]) by mx1.freebsd.org (Postfix) with ESMTP id A0E3C903 for ; Wed, 30 Jan 2013 09:09:05 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe01.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 376244131; Wed, 30 Jan 2013 10:08:58 +0100 From: Hans Petter Selasky To: Yuri Subject: Re: Why my USB keyboard doesn't generate scancodes? Date: Wed, 30 Jan 2013 10:10:10 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <5104974C.803@rawbw.com> <201301300933.59232.hselasky@c2i.net> <5108E035.8020904@rawbw.com> In-Reply-To: <5108E035.8020904@rawbw.com> X-Face: ?p&W)c(+80hU; '{.$5K+zq{oC6y| /D'an*6mw>j'f:eBsex\Gi, Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2013 09:09:07 -0000 On Wednesday 30 January 2013 09:56:21 Yuri wrote: > On 01/30/2013 00:33, Hans Petter Selasky wrote: > > What is printed in dmesg with ukbd.debug enabled when you press a key or > > two. And also try NumLock. > > I have hw.usb.ukbd.debug=15 and nothing is printed in dmesg. Based on my > previous dtrace log, no key click messages reach ukbd driver at all. > This is the reason nothing gets logged. > This keyboard only has 2 buttons, and NumLock isn't among them. > I think the buttons are supposed to be PgUp/PgDown. Hi, I see what is going on now. Your keyboard is endpoint 0x81 and no events are reported here. Instead those key events are part of the mouse protocol, 0x82, and it is currently not supported that a mouse can generate key-events. However, it might be that those keys are mapped into some axis. Try to enable hw.usb.ums.debug=15 instead. Can you also try to dump the other HID descriptors: usbconfig -d X.Y do_request 0x81 0x06 0x2200 0 0x100 usbconfig -d X.Y do_request 0x81 0x06 0x2200 1 0x100 usbconfig -d X.Y do_request 0x81 0x06 0x2200 2 0x100 --HPS