From owner-freebsd-current@FreeBSD.ORG Sat Feb 14 17:47:35 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 758B91065673 for ; Sat, 14 Feb 2009 17:47:35 +0000 (UTC) (envelope-from ota@j.email.ne.jp) Received: from mail.asahi-net.or.jp (mail2.asahi-net.or.jp [202.224.39.198]) by mx1.freebsd.org (Postfix) with ESMTP id 41F988FC19 for ; Sat, 14 Feb 2009 17:47:35 +0000 (UTC) (envelope-from ota@j.email.ne.jp) Received: from localhost (pool-141-151-83-243.phlapa.east.verizon.net [141.151.83.243]) by mail.asahi-net.or.jp (Postfix) with ESMTP id EC99A4F74D; Sun, 15 Feb 2009 02:47:31 +0900 (JST) Date: Sat, 14 Feb 2009 12:47:27 -0500 From: Yoshihiro Ota To: Hans Petter Selasky , freebsd-current@freebsd.org Message-Id: <20090214124727.82638653.ota@j.email.ne.jp> In-Reply-To: <200902141759.27816.hselasky@c2i.net> References: <20090213204112.7b982402.ota@j.email.ne.jp> <200902141041.28477.hselasky@c2i.net> <20090214113139.0d2cbd1a.ota@j.email.ne.jp> <200902141759.27816.hselasky@c2i.net> X-Mailer: Sylpheed 2.6.0 (GTK+ 2.12.11; amd64-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: Re: USB2 - keyboard error X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Feb 2009 17:47:35 -0000 On Sat, 14 Feb 2009 17:59:26 +0100 Hans Petter Selasky wrote: > > Hi, > > I've looked at the USB code and I cannot find anything wrong. To get more > debugging: > > sysctl hw.usb2.ukbd.debug=15 > > If you press num-lock, does the num-lock led turn on/off ? > > Is the behaviour the same for other USB keyboards ? > > --HPS Its behaviour is inconsistant and a bit hard to describe all. But when I plug in, dmesg looks like this: ushub2: on usbus0 ushub2: 4 ports with 4 removable, bus powered ugen0.4: at usbus0 ukbd_probe:599: ukbd0: on usbus0 ukbd_set_leds:1360: leds=0x00 ukbd_set_leds:1360: leds=0x00 kbd2 at ukbd0 ukbd_intr_callback:478: actlen=8 bytes ukbd_intr_callback:492: [0] = 40 ukbd_put_key:273: 0x28 (40) pressed ukbd_intr_callback:478: actlen=8 bytes ukbd_put_key:273: 0x428 (1064) released ukbd_intr_callback:478: actlen=8 bytes ukbd_intr_callback:492: [0] = 15 ukbd_put_key:273: 0x0f (15) pressed ukbd_intr_callback:478: actlen=8 bytes ukbd_put_key:273: 0x40f (1039) released And when I press "caps-lock", it doesn't turn the right on often and start writing the following to dmesg. ukbd_put_key:273: 0x28 (40) pressed ukbd_intr_callback:478: actlen=8 bytes ukbd_put_key:273: 0x428 (1064) released ukbd_intr_callback:478: actlen=8 bytes ukbd_intr_callback:492: [0] = 57 ukbd_put_key:273: 0x39 (57) pressed ukbd_set_leds:1360: leds=0x00 ukbd_set_leds_callback:556: error=USB_ERR_IOERROR ukbd_put_key:273: 0x39 (57) pressed ukbd_put_key:273: 0x39 (57) pressed ukbd_put_key:273: 0x39 (57) pressed ukbd_put_key:273: 0x39 (57) pressed ukbd_put_key:273: 0x39 (57) pressed ukbd_put_key:273: 0x39 (57) pressed ukbd_put_key:273: 0x39 (57) pressed ukbd_put_key:273: 0x39 (57) pressed ukbd_put_key:273: 0x39 (57) pressed Now, only unpluging is the only option for this to stop. I don't have another USB keyboard. I cannot try. By the way, this keyboard also acts as a USB-hub such that I can connect USB mouse and so on. Thanks, Hiro