Help - Search - Members - Calendar
Full Version: Usb Config Help
Linuxhelp > Support > Technical Support
fuzzbucket
I'm running Redhat 9, with a custom compled kernel, version 2.4.22. My problem is that i need to configure the machine to work with an ATEN USB kvm extender. It is detecting the kvm extender and supposedly initalizing the USB keyboard and mouse that I've got plugged into it on bootup. If I just plug the USB keyboard and mouse directly into the machine, along with a ps2 and keyboard & mouse, the USB mouse works as expected and the USB keyboard will display input 2 characters for every 1 that hit. Below are the relevant contents of my dmsg & lsmod. Any help is greatly appreciated.

dmesg snippet:
- - - - - - - - -
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
host/uhci.c: USB Universal Host Controller Interface driver v1.1
PCI: Setting latency timer of device 00:1f.2 to 64
host/uhci.c: USB UHCI at I/O 0xff80, IRQ 19
usb.c: new USB bus registered, assigned bus number 1
host/uhci.c: detected 2 ports
usb.c: kmalloc IF dfd84ca0, numif 1
usb.c: new device strings: Mfr=0, Product=2, SerialNumber=1
usb.c: USB device number 1 default language ID 0x0
Product: USB UHCI-alt Root Hub
SerialNumber: ff80
hub.c: USB hub found
hub.c: 2 ports detected
hub.c: standalone hub
hub.c: ganged power switching
hub.c: global over-current protection
hub.c: Port indicators are not supported
hub.c: power on to power good time: 2ms
hub.c: hub controller current requirement: 0mA
hub.c: port removable status: RR
hub.c: local power source is good
hub.c: no over-current condition exists
hub.c: enabling power on all ports
usb.c: hub driver claimed interface dfd84ca0
usb.c: kusbd: /sbin/hotplug add 1
usb.c: kusbd policy returned 0xfffffffe
PCI: Setting latency timer of device 00:1f.4 to 64
host/uhci.c: USB UHCI at I/O 0xff60, IRQ 18
usb.c: new USB bus registered, assigned bus number 2
host/uhci.c: detected 2 ports
usb.c: kmalloc IF dfd84ba0, numif 1
usb.c: new device strings: Mfr=0, Product=2, SerialNumber=1
usb.c: USB device number 1 default language ID 0x0
Product: USB UHCI-alt Root Hub
SerialNumber: ff60
hub.c: USB hub found
hub.c: 2 ports detected
hub.c: standalone hub
hub.c: ganged power switching
hub.c: global over-current protection
hub.c: Port indicators are not supported
hub.c: power on to power good time: 2ms
hub.c: hub controller current requirement: 0mA
hub.c: port removable status: RR
hub.c: local power source is good
hub.c: no over-current condition exists
hub.c: enabling power on all ports
usb.c: hub driver claimed interface dfd84ba0
usb.c: kusbd: /sbin/hotplug add 1
usb.c: kusbd policy returned 0xfffffffe
usb.c: registered new driver hiddev
usb.c: registered new driver hid
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
hid-core.c: USB HID support drivers
mice: PS/2 mouse device common for all mice
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 32768)
Linux IP multicast router 0.06 plus PIM-SM
ip_conntrack version 2.1 (4091 buckets, 32728 max) - 152 bytes per conntrack
ip_tables: 2000-2002 Netfilter core team
ipt_recent v0.3.1: Stephen Frost <sfrost@snowman.net>. http://snowman.net/projects/ipt_recent/
ds: no socket drivers loaded!
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 83k freed
VFS: Mounted root (ext2 filesystem).
host/uhci.c: root-hub INT complete: port1: 93 port2: 80 data: 2
hub.c: port 1, portstatus 101, change 1, 12 Mb/s
hub.c: port 1 connection change
hub.c: port 1, portstatus 101, change 1, 12 Mb/s
host/uhci.c: ff60: suspend_hc
hub.c: port 1, portstatus 101, change 0, 12 Mb/s
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Freeing unused kernel memory: 128k freed
hub.c: port 1, portstatus 101, change 0, 12 Mb/s
hub.c: port 1, portstatus 101, change 0, 12 Mb/s
hub.c: port 1, portstatus 101, change 0, 12 Mb/s
hub.c: port 1, portstatus 103, change 0, 12 Mb/s
hub.c: new USB device 00:1f.2-1, assigned address 2
usb.c: kmalloc IF dfd86320, numif 2
usb.c: skipped 1 class/vendor specific interface descriptors
usb.c: skipped 1 class/vendor specific interface descriptors
usb.c: new device strings: Mfr=1, Product=2, SerialNumber=0
usb.c: USB device number 2 default language ID 0x409
Manufacturer: ATEN
Product: USB KVM Extender V1.10
input: USB HID v1.00 Keyboard [ATEN USB KVM Extender V1.10] on usb1:2.0
usb.c: hid driver claimed interface dfd86320
input: USB HID v1.00 Mouse [ATEN USB KVM Extender V1.10] on usb1:2.1
usb.c: hid driver claimed interface dfd86338
usb.c: kusbd: /sbin/hotplug add 2
usb.c: kusbd: /sbin/hotplug add 2
hub.c: port 2, portstatus 100, change 0, 12 Mb/s
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
mice: PS/2 mouse device common for all mice
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,2), internal journal
Adding Swap: 257000k swap-space (priority -1)
usbdevfs: USBDEVFS_CONTROL failed dev 2 rqt 128 rq 6 len 18 ret -6
usbdevfs: USBDEVFS_CONTROL failed dev 2 rqt 128 rq 6 len 18 ret -6
usbdevfs: USBDEVFS_CONTROL failed dev 2 rqt 128 rq 6 len 18 ret -6
- - - - - - - - - - -

lsmod:
- - - - - - - - -
$ /sbin/lsmod
Module Size Used by Not tainted
3c59x 28080 1
mousedev 4824 1
keybdev 2368 0 (unused)
unix 18024 22 (autoclean)
- - - - - - - - - -

Thanks again for any help.
fuzzbucket
If anybody was interested I was able to solve the problem. I ended up recompiling the kernel with USB HIDBP Mouse/Keyboard support modules, instead of the default which is the USB Human Interface Device (HID). Once i did that, rebooted, loaded the modules, the thing works like a champ.
Joey
Excellent thanks for letting us know.
hughesjr
Thank you for posting solved problems back on the forum. I had no clue why this wasn't working .... and now if someone has a similar problem they can find a good answer for it here!
fuzzbucket
Now upon bootup (on the same machine as before) the kernel will first says something like:

Loading HID interface: modprobe: can't locate module HID [failed]
Loading USB Keyboard [OK]
Loading USB Mouse [OK]

The USB keyboard and mouse both work properly, however I can't figure out why its still trying to load the hid module on boot up. My /etc/modules.conf has the following in it:
-----------------------------------
alias eth0 3c59x
alias sound-slot-0 i810_audio
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1
|| :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 |
| :
alias usb-controller usb-uhci
alias char-major-13 usb-core
-----------------------------------
I tried removing the last 2 lines from the file and rebooting, however it didn't have any effect on the problem. Thanks again for any help, hopefully this problem isnt as perplexing.
fuzzbucket
Allright well one might say I keep answering my own questions but I found the problem again, with a little help from a friend.

There was a line in my /etc/rc.d/rc.sysconfig that had the string: "modprobe hid"
All I did was comment out that line, and the error message stopped, and the USB keyboard/mouse still worked great.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.