Re: switching to usb kbd and mouse

Riabtsev Andrew <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Message-ID <[email protected]>
On 14 September 2004 22:50, Vladimir Grebenschikov wrote:
> В вт, 14/09/2004 в 15:22 +0400, Riabtsev Andrew пишет:
> > On 14 September 2004 13:32, Vladimir Grebenschikov wrote:
> > > В пн, 13/09/2004 в 23:17 -1000, Randy Bush пишет:
> > > > so i boot my thinkpad t40p with normal keyboard and touchpad mouse.
> > > > i decide to go to usb mouse and keyboard.  it seems to work to move
> > > > the mouse by just killing moused and restarting it as
> > > >
> > > >     moused -p /dev/ums0 -t auto
> > > >
> > > > but how to i move the keyboard to usb?
> > >
> > > You need something like this:
> > >
> > > /etc/usbd.conf:
> > > ...
> > > # Keyboard
> > > device "Keyboard"
> > >         devname "ukbd[0-9]+"
> > >         attach "/usr/sbin/kbdcontrol -k /dev/kbd1 < /dev/ttyv0"
> > >         detach "/usr/sbin/kbdcontrol -k /dev/kbd0 < /dev/ttyv0"
> >
> > btw this solution not working for me: usbd runned in debug verbose mode
> > shows me that on detach event usbd did not receive devname. So i had to
> > add strings vendor and product in "Keyboard" section. Is it possible to
> > fix it somehow so i can plug any usb keyboards? Or vendor and product is
> > the same for any keyboard?
>
> What FreeBSD version are you use ? There was such bug some time ago
> (about no detach event for USB keyboard, see my PR:
> http://www.freebsd.org/cgi/query-pr.cgi?pr=46488)
>
> In past I have workaround it with detecting detach event on USB hub, but
> anyway bug fixed in both RELENG_5 and CURRENT (not sure about RELENG_4)

I'm using FreeBSD5.3BETA3 and here is 'usbd -dv' output:
usbd: device-attach event at 1095230771.569802000, product 0x3002, Alcor 
Micro:
  vndr=0x0566 prdct=0x3002 rlse=0x0100 clss=0x0000 subclss=0x0000 prtcl=0x0000
  device names: ukbd0
usbd: Found action 'Keybord' for product 0x3002, Alcor Micro at ukbd0
usbd: Executing '/usr/sbin/kbdcontrol -k /dev/${DEVNAME} < /dev/console'
kbd1
    ukbd0, type:generic (0)
usbd: device-detach event at 1095230790.016759000, product 0x3002, Alcor 
Micro:
  vndr=0x0566 prdct=0x3002 rlse=0x0100 clss=0x0000 subclss=0x0000 prtcl=0x0000

usbd: Found action 'USB device' for product 0x3002, Alcor Micro
....
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.