I's happening on 2.4.21-rc2, and on gentoo's 2.4.20-gentoo-r5.  I can
try others if you want.  

/usr/src/linux $ grep USB .config | grep -v '#'
CONFIG_USB=m
CONFIG_USB_DEVICEFS=y
CONFIG_USB_EHCI_HCD=m
CONFIG_USB_UHCI=m
CONFIG_USB_OHCI=m
CONFIG_USB_AUDIO=m
CONFIG_USB_BLUETOOTH=m
CONFIG_USB_PRINTER=m
CONFIG_USB_HID=m
CONFIG_USB_HIDINPUT=y
CONFIG_USB_HIDDEV=y
CONFIG_USB_KBD=m
CONFIG_USB_USS720=m
CONFIG_USB_SERIAL=m
CONFIG_USB_SERIAL_GENERIC=y

/usr/src/linux $ grep INPUT .config | grep -v '#'
CONFIG_INPUT=m
CONFIG_INPUT_KEYBDEV=m
CONFIG_INPUT_MOUSEDEV=m
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
CONFIG_INPUT_JOYDEV=m
CONFIG_INPUT_EVDEV=m
CONFIG_USB_HIDINPUT=y

On Thu, 2003-05-29 at 02:30, Brad Hards wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Thu, 29 May 2003 15:20 pm, Jeremy Huddleston wrote:
> > I believe I have discovered a bug with linux-usb when using my Belkin
> > KVM.  If I boot into linux just using the hid driver, the mouse fails to
> > work, but the keyboard works:
> This really is a strange one! What kernel are you using? What do the INPUT and 
> USB lines from your .config look like?
> 
> > Boot Case 1 - hid: loaded, usbkbd: not loaded, usbmouse: not loaded
> >          keyboard: works, mouse: doesn't work
> > /proc/bus/usb/devices (relevant section):
> > T:  Bus=02 Lev=01 Prnt=01 Port=02 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 is broken. Can you turn on debugging in the HID driver to get something 
> more on why HID isn't binding to the second interface?
> 

Hmm... I don't see the configure option for debugging in the HID
driver... am I just missing it, or will it spit out with just
'CONFIG_DEBUG_KERNEL'?

> > If I boot with usbmouse and usbkbd, only the keyboard works:
> > Boot Case 2 - hid: not loaded, usbkbd: loaded, usbmouse: loaded
> >          keyboard: works, mouse: doesn't work
> > /proc/bus/usb/devices (relevant section):
> > T:  Bus=02 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#=  4 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=usbkbd
> > 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=usbmouse
> > E:  Ad=82(I) Atr=03(Int.) MxPS=   7 Ivl=8ms
> This should work. What device are you using for usbmouse output? In any case, 
> this is a bad option, and you don't want to use this configuration.
> 

Yeah, I really don't want to be using usbmouse and usbkbd if I can avoid
it.  I was using /dev/input/mice to test the mouse.  When I switched it
to hid, it worked immediately

> > If I boot into linux using the usbkbd and hid modules, both devices
> > work!!:
> >
> > Boot Case 3 - hid: loaded, usbkbd: loaded, usbmouse: not loaded
> >          keyboard: works, mouse: works
> > /proc/bus/usb/devices (relevant section):
> > T:  Bus=02 Lev=01 Prnt=01 Port=02 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=usbkbd
> > 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
> You shouldn't be using this configuration.

> > Now, if I rmmod usbkbd after booting into case 3, both devices work:
> >
> > T:  Bus=02 Lev=01 Prnt=01 Port=02 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
> > 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
> OK, I'm lost. 

I'll explain better then.

If have usbkbd.o and hid.o in /lib/modules/..., hotplug loads the
modules and I end up with 'Boot Case 3' above.  Now, if I 'rmmod
usbkbd', I get the /proc/bus/usb/devices output immediately above (both
using hid).  If I remove usbkbd.o from /lib/modules/... and boot up, the
resulting /proc/bus/usb/devices is from 'Boot Case 1'.  So somehow
loading the usbkbd module, loading the hid module, and rmmoding the
usbkbd module gets the proper configuration whereas just loading the hid
module results in the mouse not getting assigned the driver.

--Jeremy



-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to