Re: USB2 - keyboard error

From: Yoshihiro Ota <ota_at_j.email.ne.jp>
Date: Sat, 14 Feb 2009 12:47:27 -0500
On Sat, 14 Feb 2009 17:59:26 +0100
Hans Petter Selasky <hselasky_at_c2i.net> 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: <NEC hub, class 9/0, rev 1.00/1.00, addr 3> on usbus0
ushub2: 4 ports with 4 removable, bus powered
ugen0.4: <Alps Electric> at usbus0
ukbd_probe:599: 
ukbd0: <Alps Electric M2452, class 0/0, rev 1.00/1.01, addr 4> 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
Received on Sat Feb 14 2009 - 16:47:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:42 UTC