Skip to contentSkip to conversation

How usb hotplug works

DISCUSSION Chmouel Boudjnah 1 participant 1 message Jan 17, 2001

lore
Share & tools
lore
#0 lore raw

--=-=-
Hi,

I cannot get works actually hotplug with a simple usb keyboard :

--=-=-T: Bus Lev Prnt Port Cnt Dev#= 3 Spd=1.5 MxCh= 0

D:  Ver= 1.00 Cls(>ifc ) Sub Prot MxPS= 8 #Cfgs=  1
P:  Vendora4 ProdID�98 Rev= 1.00
S:  Manufacturer=NOVATEK
S:  Product=USB Keyboard
C:* #Ifs= 2 Cfg#= 1 Atr� MxPwr0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls(HID  ) Sub Prot Driver=(none)
E:  Ad�(I) Atr(Int.) MxPS=   8 Ivl= 10ms
I:  If#= 1 Alt= 0 #EPs= 1 Cls(HID  ) Sub Prot Driver=(none)
E:  Ad�(I) Atr(Int.) MxPS=   8 Ivl= 10ms

--=-=-
or the lsusb output attached.

It load the keybdev module but i believe is a STATIC_MODULES that get loaded all the time ?

We (mandrake) currently plan to use usbd which works great and detect the usbkbd without any problem via :

class 0x03 subclass 0x00 protocol 0x01 prio 2 kmod usbkbd class 0x03 subclass 0x01 protocol 0x01 prio 2 kmod usbkbd

i have also to setup a :

post-install usbkbd modprobe keybdev

in my /etc/modules.conf

i have not yet looked too much at the how hotplug works, let me know if it's the normal behavior...

--=-=-Content-Disposition: attachment; filename=keyboard

--=-=-Bus 002 Device 003: ID 05a4:9998 Ortek Technology, Inc. Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.00

  bDeviceClass            0 Interface
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8

idVendor 0x05a4 Ortek Technology, Inc.
idProduct 0x9998
bcdDevice 1.00
iManufacturer 4 NOVATEK
iProduct 54 USB Keyboard
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 59
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
Remote Wakeup
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Devices
bInterfaceSubClass 1 Boot Interface Subclass
bInterfaceProtocol 1 Keyboard
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.00
bCountryCode 33
bNumDescriptors 1
bDescriptorType 34
wDescriptorLength 63
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type none
wMaxPacketSize 8
bInterval 10
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Devices
bInterfaceSubClass 1 Boot Interface Subclass
bInterfaceProtocol 2 Mouse
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.00
bCountryCode 33
bNumDescriptors 1
bDescriptorType 34
wDescriptorLength 31
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type none
wMaxPacketSize 8
bInterval 10
Language IDs: 0409
--=-=-
--=-=-

Signature · 9 lines
MandrakeSoft Inc                     http://www.chmouel.org
                      --Chmouel

--=-=-=--

_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel