-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

So... any thoughts on why the hid driver doesn't get assigned to my mouse 
without using the usbkbd workaround?  Need more information?  I'd like to 
migrate to the 2.6.0 kernel to test that out, but this bug is a show stopper 
for me in that transition.

Thanks,
Jeremy



On Tuesday October 21 2003 14:44, Jeremy Huddleston wrote:
> I have some further information that will be helpful.  I turned on
> debugging output for USB, and these two files show the information sent to
> the kernel logger after starting hotplug.
>
> usbdebug.dmesg.just_hid is the kernel log that results when usbkbd.o is not
> in /lib/modules/... There are quite a bit of error messages in there
> starting when hid.o gets loaded.
>
> usbdebug.dmesg.usbkbd+hid is the kernel log that results when both hid.o
> and usbkbd.o are in /lib/modules/...
>
> Additionally, when I 'rmmod usbkbd', this following (expected) information
> is sent to the kernel logger:
>
> Oct 21 14:37:56 terminator usb.c: deregistering driver usbkbd
> Oct 21 14:37:56 terminator input: USB HID v1.10 Keyboard [Belkin Components
> KVM USB Keyboard/Mouse] on usb3:2.0
> Oct 21 14:37:56 terminator usb.c: hid driver claimed interface f61d52c0
>
> On Monday October 20 2003 15:34, Jeremy Huddleston wrote:
> > I thought I responded to this, but I don't see the response in the
> > archive... so maybe I forgot...
> >
> > I NEED to use the usbkbd module as a workaround to the bug that I am
> > reporting and have reported in the past (Thu, 29 May 2003 15:20 pm
> > linux-usb-devel) to no response... I have been fine using this
> > workaround, but it seems that no work is being done to correct the
> > problem, and the workaround does not work in the 2.6 kernels.
> >
> > Perhaps it is as simple as an off-by-one error in the loop that examines
> > the devices for driver assignment...
> >
> > Details:
> > If I just have the hid module availible, it is assigned to the keyboard,
> > and the mouse is listed as 'Driver=(none)' in /proc/bus/usb/devices.
> >
> > However, if I have the usbkbd module availible, it is assigned to the
> > keyboard, then the hid module is assigned to the mouse.  If I then 'rmmod
> > usbkbd', hid is assigned to the keyboard to replace the usbkbd module...
> >
> > Or for another way of saying it:
> >
> > case 1 (usbkbd module not availible):
> > Boot up computer.
> > hotplug sees hid devices and loads the hid module
> > hid module is assigned to keyboard
> > Mouse is still listed as 'Driver=(none)'
> > Keyboard works, mouse doesn't
> >
> > case 2 (usbkbd availible):
> > Boot up computer
> > hotplug sees keyboard device and loads usbkbd module
> > usbkbd module is assigned to keyboard
> > hotplug sees hid device (mouse) and loads hid module
> > hid module is assigned to the mouse
> > After booting, mouse and keyboard both work
> > I do a 'rmmod usbkbd', and the keyboard is assigned 'hid' as its driver.
> >
> >
> > Or in yet another way:
> > This doesn't work:
> > modprobe hid
> >
> > T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=1.5 MxCh= 0
> > D:  Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
> > P:  Vendor=050d ProdID=0108 Rev= 1.12
> > S:  Manufacturer=Belkin Components
> > S:  Product=KVM USB Keyboard/Mouse
> > C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr= 50mA
> > I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=01 Driver=hid
> > E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=16ms
> > I:  If#= 1 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=(none)
> > E:  Ad=82(I) Atr=03(Int.) MxPS=   7 Ivl=8ms
> >
> >
> > This does work:
> > modprobe usbkbd
> > modprobe hid
> > rmmod usbkbd
> >
> > T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=1.5 MxCh= 0
> > D:  Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
> > P:  Vendor=050d ProdID=0108 Rev= 1.12
> > S:  Manufacturer=Belkin Components
> > S:  Product=KVM USB Keyboard/Mouse
> > C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr= 50mA
> > I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=01 Driver=hid
> > E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=16ms
> > I:  If#= 1 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=hid
> > E:  Ad=82(I) Atr=03(Int.) MxPS=   7 Ivl=8ms
> >
> >
> >
> > --Jeremy
> >
> > On Sunday October 19 2003 03:19, Brad Hards wrote:
> > > On Sun, 19 Oct 2003 11:33 am, Jeremy Huddleston wrote:
> > > > I have a Belkin KVM Switch, and it emulates a USB keyboard and mouse
> > > > on all the systems. �I've put ----'s around the /proc/bus/usb/devices
> > > > output below to bring attention to this device. �When I have only the
> > > > 'hid' module installed, the keyboard 'sub-device' gets assigned the
> > > > 'hid' module, and the mouse gets assigned '(none)'. �The workaround
> > > > I've been able to use for this (in 2.4 kernels) is to load the
> > > > 'usbkbd' module first, then load the 'hid' module. �This has the
> > > > effect of assigning the 'usbkbd' driver to the keyboard and 'hid' to
> > > > the mouse.
> > >
> > > Don't load usbkbd. Not ever. Even if you think you know what you're
> > > doing. Don't even build it.
> > > Just load:
> > > mousedev
> > > keybdev
> > > hid
> > > input
> > > usb-ohci
> > > ehci-hcd
> > >
> > > And all will be OK.
> > >
> > > Brad
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/n3AvgKpk8srJOlIRAsCnAJ9/OKppnGNxXlwURcKfANzhaa0DQACfTQjH
pLp0ObFLch8hgVASuUTd8oU=
=+1LE
-----END PGP SIGNATURE-----


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to