[GLLUG] FreeBSD, USB, and a KVM

Mike Szumlinski szumlins@mac.com
Mon, 12 May 2003 11:09:35 -0400


The odd thing is that the USB keyboard and mouse work just fine until I 
switch to a different computer using the KVM (ie unplug them).  When I 
switch back I get the following on screen, yet no control of either 
device:


---switch to my Mac or PeeCee
May 12 11:06:37 mikes-freebsd kernel: uhub2: at uhub1 port 1 (addr 3) 
disconnected
May 12 11:06:37 mikes-freebsd kernel: ums0: detached
May 12 11:06:37 mikes-freebsd kernel: ukbd0: detached
May 12 11:06:37 mikes-freebsd kernel: uhid0: detached
May 12 11:06:37 mikes-freebsd kernel: uhub3: detached
May 12 11:06:37 mikes-freebsd kernel: uhub2: detached
--switch back to FreeBSD
May 12 11:06:42 mikes-freebsd kernel: uhub2: Texas Instruments TUSB2046 
hub, class 9/0, rev 1.10/1.25, addr 3
May 12 11:06:42 mikes-freebsd kernel: uhub2: 4 ports with 4 removable, 
self powered
May 12 11:06:44 mikes-freebsd kernel: ums0: Macally Macally USB Optical 
Net Mouse, rev 1.00/2.00, addr 4, iclass 3/1
May 12 11:06:44 mikes-freebsd kernel: ums0: 3 buttons and Z dir.
May 12 11:06:44 mikes-freebsd kernel: uhub3: Mitsumi Electric Hub in 
Apple Extended USB Keyboard, class 9/0, rev 1.10/1.22, addr 5
May 12 11:06:44 mikes-freebsd kernel: uhub3: 3 ports with 2 removable, 
bus powered
May 12 11:06:46 mikes-freebsd kernel: ukbd0: Mitsumi Electric Apple 
Extended USB Keyboard, rev 1.10/1.22, addr 6, iclass 3/1
May 12 11:06:46 mikes-freebsd kernel: kbd0 at ukbd0
May 12 11:06:46 mikes-freebsd kernel: uhid0: Mitsumi Electric Apple 
Extended USB Keyboard, rev 1.10/1.22, addr 6, iclass 3/0

Looks like its registering ukbd0 at kbd0, but for some reason it isn't 
"plugging in".  Same with the mouse.

-Mike

On Monday, May 12, 2003, at 10:46 AM, Adam McDougall wrote:

> Yeah, along those lines, check devd and usbd (if 5 even still uses 
> usbd).
> Need to make sure an appropriate daemon is running.
>
> On Mon, May 12, 2003 at 09:55:18AM -0400, Sean wrote:
>
>   I doubt this "answers" your question, but it sounds like F-BSD isn't
>   repolling the bus like it should be. When USB upport first came out 
> for
>   Linux, there was a set of scripts I think called hotsync or 
> something that
>   repolled that usb bus every like 6 seconds (via crontab) to
>   detect new devices (and load drivers), you might get away with those 
> or
>   look for something similar for F-BSD.