You are not logged in.

#1 2010-05-03 23:36:38

interceptor2012
Member
Registered: 2010-05-03
Posts: 7

[SOLVED] USB Hub Only Recognizes One Input

This is my first post on the Archlinux forums.  I am a new user, and I really like it so far.

However, I am having an issue with my USB hub.  When I connect a mouse and keyboard to the hub, the computer only recognizes input from the device that I plug in first when using a window manager (the keyboard always works when I am not in a window manager).  If I disconnect one device, the other device starts working.  Both devices appear in dmesg when I disconnect and reconnect them.  So the computer is recognizing the devices independently, but input from one device is not received.  I have tried this on both Gnome and Fluxbox, with the same result.  If I plug both devices directly into the computer's USB ports, both devices work at the same time.  The hub works on a Windows 7 system and on an Ubuntu system, so the hub is not faulty.  Does anyone have any ideas how to resolve this problem?  If you need anymore information from me, please let me know.

Thanks in advanced for your help.


More information:

My keyboard is Microsoft Razer Reclusa keyboard.  My mouse is a Logitech Wireless Mouse M215 (http://www.logitech.com/en-us/mice_poin … vices/6064).

Below is the dmesg output that I think is relevant to this issue.  Here is the output I get when I plug in my USB hub (without anything plugged into it), then plug in the mouse to the hub, and finally plug in the keyboard to the hub:

usb 1-4: new high speed USB device using ehci_hcd and address 80
hub 1-4:1.0: USB hub found
hub 1-4:1.0: 4 ports detected
usb 1-4.2: new full speed USB device using ehci_hcd and address 81
input: Logitech USB Receiver as /devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4.2/1-4.2:1.0/input/input96
generic-usb 0003:046D:C526.005D: input,hidraw0: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-0000:00:1d.7-4.2/input0
input: Logitech USB Receiver as /devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4.2/1-4.2:1.1/input/input97
generic-usb 0003:046D:C526.005E: input,hiddev0,hidraw1: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:1d.7-4.2/input1
usb 1-4.1: new full speed USB device using ehci_hcd and address 82
hub 1-4.1:1.0: USB hub found
hub 1-4.1:1.0: 3 ports detected
hub 1-4.1:1.0: activate --> -28
usb 1-4.1.3: new full speed USB device using ehci_hcd and address 83
input: Razer Reclusa Keyboard as /devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4.1/1-4.1.3/1-4.1.3:1.0/input/input98
generic-usb 0003:1532:0200.005F: input,hidraw2: USB HID v1.10 Keyboard [Razer Reclusa Keyboard] on usb-0000:00:1d.7-4.1.3/input0
input: Razer Reclusa Keyboard as /devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4.1/1-4.1.3/1-4.1.3:1.1/input/input99
generic-usb 0003:1532:0200.0060: input,hidraw3: USB HID v1.10 Device [Razer Reclusa Keyboard] on usb-0000:00:1d.7-4.1.3/input1
usb 1-4.1.3: reset full speed USB device using ehci_hcd and address 83
usb 1-4.1.3: reset full speed USB device using ehci_hcd and address 83
usb 1-4.1.3: reset full speed USB device using ehci_hcd and address 83
usb 1-4.1.3: reset full speed USB device using ehci_hcd and address 83
usb 1-4.1.3: reset full speed USB device using ehci_hcd and address 83
usb 1-4.1.3: reset full speed USB device using ehci_hcd and address 83
usb 1-4.1.3: reset full speed USB device using ehci_hcd and address 83
usb 1-4.1.3: reset full speed USB device using ehci_hcd and address 83
usb 1-4.1.3: reset full speed USB device using ehci_hcd and address 83
usb 1-4.1.3: reset full speed USB device using ehci_hcd and address 83
usb 1-4.1.3: reset full speed USB device using ehci_hcd and address 83

Here is the output I get when I plug in my USB hub (without anything plugged into it), then plug in the keyboard to the hub, and finally plug in the mouse to the hub:

usb 1-4.1: new full speed USB device using ehci_hcd and address 92
hub 1-4.1:1.0: USB hub found
hub 1-4.1:1.0: 3 ports detected
usb 1-4.1.3: new full speed USB device using ehci_hcd and address 93
input: Razer Reclusa Keyboard as /devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4.1/1-4.1.3/1-4.1.3:1.0/input/input104
generic-usb 0003:1532:0200.0065: input,hidraw0: USB HID v1.10 Keyboard [Razer Reclusa Keyboard] on usb-0000:00:1d.7-4.1.3/input0
input: Razer Reclusa Keyboard as /devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4.1/1-4.1.3/1-4.1.3:1.1/input/input105
generic-usb 0003:1532:0200.0066: input,hidraw1: USB HID v1.10 Device [Razer Reclusa Keyboard] on usb-0000:00:1d.7-4.1.3/input1
usb 1-4.2: new full speed USB device using ehci_hcd and address 94
input: Logitech USB Receiver as /devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4.2/1-4.2:1.0/input/input106
generic-usb 0003:046D:C526.0067: input,hidraw2: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-0000:00:1d.7-4.2/input0
input: Logitech USB Receiver as /devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4.2/1-4.2:1.1/input/input107
generic-usb 0003:046D:C526.0068: input,hiddev0,hidraw3: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:1d.7-4.2/input1
usb 1-4.2: reset full speed USB device using ehci_hcd and address 94
usb 1-4.2: reset full speed USB device using ehci_hcd and address 94
usb 1-4.2: reset full speed USB device using ehci_hcd and address 94
usb 1-4.2: reset full speed USB device using ehci_hcd and address 94
usb 1-4.2: reset full speed USB device using ehci_hcd and address 94
usb 1-4.2: reset full speed USB device using ehci_hcd and address 94
usb 1-4.2: reset full speed USB device using ehci_hcd and address 94
usb 1-4.2: reset full speed USB device using ehci_hcd and address 94

Interesting to note is that the line that say "usb 1-4.2: reset full speed USB device using ehci_hcd and address 94" increases in the number of times it appears over time.  This happens in both scenarios, with the address number changing appropriately.  So for example, when everything is plugged in, and I type dmesg, the line appears five times.  Then when I type dmesg again, it appears 11 times.  Etc, for each subsequent dmesg call until the device is disconnected.

Thanks again.

Last edited by interceptor2012 (2010-12-28 07:11:55)

Offline

#2 2010-05-06 10:34:12

mar77i
Member
Registered: 2009-02-16
Posts: 21

Re: [SOLVED] USB Hub Only Recognizes One Input

hello interceptor2012

I just saw that the config files aren't part of the source directory in the kernel package, so I may have informed you wrong. You can of course just edit the config file, and then you need to do the following:

1) not necessary but making a restore easier is if you backup your kernel26 package /var/cache/pacman/pkg/kernel26-2.6.33.3-1-x86_64.pkg.tar.xz to your home directory.
2) replace the md5sum lines created by makepkg -g with the current ones in the PKGBUILD file.
3) makepkg will create the package for you
4) sudo pacman -U kernel26-2.6.33-*.pkg.tar.{g,x}z will install the newly build package and reboot.

if your machine doesn't do as you will after 4, you can edit the config again and continue with 2. if it doesn't boot, use a live session and either chroot or pacman redirection using --root --cachedir --config

Last edited by mar77i (2010-05-06 10:38:37)


<rickh> f(Arch) = ((Gentoo - Compiletime) + (Slackware + Depency resolution and Downloading))

Offline

#3 2010-05-06 10:51:56

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] USB Hub Only Recognizes One Input

You could try unloading the ehci driver, and only using uhci instead (or the other way around), but ofcourse that will also limit you to either usb1.1 or usb2.0
My personal experience is that usb hubs (specially unpowered ones) are just a constant source of pain tho.

Last edited by Mr.Elendig (2010-05-06 10:53:09)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#4 2010-05-06 18:07:20

interceptor2012
Member
Registered: 2010-05-03
Posts: 7

Re: [SOLVED] USB Hub Only Recognizes One Input

Mr.Elendig wrote:

You could try unloading the ehci driver, and only using uhci instead (or the other way around), but ofcourse that will also limit you to either usb1.1 or usb2.0
My personal experience is that usb hubs (specially unpowered ones) are just a constant source of pain tho.

The usb hub I have is powered, though.  I could understand if an unpowered hub didn't work properly, but I am confused as to why the powered one misbehaves.

mar77i:  I'll give it a shot later today.  I hope I can figure out exactly what to do, as I have never done anything quite like this before.

For anyone else reading this:

I believe the solution to my problem is to enable CONFIG_USB_EHCI_TT_NEWSCHED, but I am unsure how to do this.  I found a possibility that I am going to try, and if it works I'll post what I did here.  If anyone knows how to enable CONFIG_USB_EHCI_TT_NEWSCHED, please let me know.  Detailed instructions would be nice (total beginner at Arch - I've only ever used Ubuntu and Fedora).  Thanks.

Offline

#5 2010-08-09 21:45:12

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] USB Hub Only Recognizes One Input

Maybe this will help http://bugs.archlinux.org/task/20421
To fix it you have to recompile the kernel or wait until a patched one appears.

Offline

#6 2010-08-10 01:29:31

ssri
Member
Registered: 2010-02-16
Posts: 216

Re: [SOLVED] USB Hub Only Recognizes One Input

Too bad nothing has been forthcoming from upstream:

https://bugzilla.kernel.org/show_bug.cgi?id=15649

Offline

#7 2010-08-10 01:31:19

ssri
Member
Registered: 2010-02-16
Posts: 216

Re: [SOLVED] USB Hub Only Recognizes One Input

interceptor2012 wrote:

I believe the solution to my problem is to enable CONFIG_USB_EHCI_TT_NEWSCHED, but I am unsure how to do this.  I found a possibility that I am going to try, and if it works I'll post what I did here.  If anyone knows how to enable CONFIG_USB_EHCI_TT_NEWSCHED, please let me know.  Detailed instructions would be nice (total beginner at Arch - I've only ever used Ubuntu and Fedora).  Thanks.

Did and done: https://bbs.archlinux.org/viewtopic.php?id=91496

See last post for instructions.  Briefly, just enable ABS (see wiki), copy the contents of the directory /var/abs/core/kernel26, edit the PKGBUILD and uncomment the line "make menuconfig', run makepkg -c -i, enable the scheduler (press "/" to search where the option is), save the edited .config and profit,

Last edited by ssri (2010-08-10 01:35:35)

Offline

#8 2010-12-28 07:11:27

interceptor2012
Member
Registered: 2010-05-03
Posts: 7

Re: [SOLVED] USB Hub Only Recognizes One Input

Thank you very much for your help.  I sort of gave up on Arch for a while, then when I checked this thread again and found these nice helpful posts, I decided to give it another shot.  Before I started to implement the fix, I decided to test the issue one more time after upgrading the system with pacman.  Turns out that the hub issue must have been resolved in a recent kernel fix.  I have since installed Arch on a laptop, but I have not yet tested the laptop with the USB hub.  I'm hoping it will work like it did on my desktop, but if not, I will refer to these posts again.

Again, thank you very much for your help.  Arch seems to have a great community!  I am marking this thread as [solved].

Offline

Board footer

Powered by FluxBB