USB2 - keyboard error

Yoshihiro Ota ota at j.email.ne.jp
Sat Feb 14 09:47:35 PST 2009


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


More information about the freebsd-current mailing list