Bug 133751

Summary: usb disconnect/reconnect of keyboard & mouse does not work
Product: [Fedora] Fedora Reporter: Adam Wiggins <hiro>
Component: kernelAssignee: Pete Zaitcev <zaitcev>
Status: CLOSED INSUFFICIENT_DATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: brmiller, davej, jonstanley
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: MassClosed
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-01-20 04:41:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Adam Wiggins 2004-09-27 07:26:11 UTC
I have a KVM which switches between my G5 and my Fedora box.  Since 
installing FC3t3 switching away to the G5 and then back does not 
restore keyboard and mouse functionality.  Here is the relevant 
contents of /var/log/messages: 
 
Sep 27 00:20:22 edge kernel: usb 2-1: USB disconnect, address 2 
Sep 27 00:20:22 edge kernel: usb 2-1.1: USB disconnect, address 3 
Sep 27 00:20:22 edge hal.hotplug[4896]: DEVPATH is not set 
Sep 27 00:20:22 edge hal.hotplug[4941]: DEVPATH is not set 
Sep 27 00:20:22 edge hal.hotplug[4976]: DEVPATH is not set 
Sep 27 00:20:22 edge kernel: drivers/usb/input/hid-core.c: can't 
resubmit intr, 0000:00:10.0-1.3/input1, status -19 
Sep 27 00:20:22 edge kernel: drivers/usb/input/hid-core.c: can't 
resubmit intr, 0000:00:10.0-1.3/input0, status -19 
Sep 27 00:20:22 edge kernel: usb 2-1.3: USB disconnect, address 4 
 
Nothing I will do restores the keyboard & mouse, a reboot is 
required.  This worked properly on FC2. 
 
You don't need a KVM to simulate this, just unplug and replug the 
keyboard or mouse.

Comment 1 Bill Nottingham 2004-09-27 16:01:59 UTC
Sep 27 00:20:22 edge kernel: drivers/usb/input/hid-core.c: can't 
resubmit intr, 0000:00:10.0-1.3/input1, status -19 
Sep 27 00:20:22 edge kernel: drivers/usb/input/hid-core.c: can't 
resubmit intr, 0000:00:10.0-1.3/input0, status -19 

This appears to be a kernel issue.

Comment 2 Amit Bhutani 2004-12-15 00:50:26 UTC
Issue reproducible on RHEL 4 Beta 2 (kernel-2.6.9-1.648_EL). No KVM 
involved here. Just disconnect USB Keyboard and the following message 
is displayed:
"drivers/usb/input/hid-core.c: can't resubmit intr, 0000:00:1d.2-
1.2/input0, status -19"

Currently regressing with latest kernel drop for RHEL 4.

Comment 3 Amit Bhutani 2004-12-20 20:39:37 UTC
Issue reproducible with the latest kernel drop of RHEL 4 (-906). 
Issue was initially reported while dis-connecting USB kerboard that 
has a USB mouse connected to it's internal hub. Trying to reproduce 
the issue with a plain USB keyboard and USB mouse.

The issue that I am reporting does not affect functionality though. 
Besides from the same kernel message that is displayed on the 
console, there is no loss of functionality here unlike the original 
report. Keyboard and Mouse both resume normal functionality when re-
plugged. Should I be opening a seperate issue to track my issue which 
maybe different from the originally reported issue ? Please advice.

Comment 4 Brendan Miller 2004-12-23 21:01:42 UTC
Just installed FC3 (kernel 2.6.9-1.667) on x86_64 machine with a Happy
Hacking USB keyboard and Microsoft Notebook Optical mouse.  Mouse is
plugged into USB hub built-in to keyboard.  Periodically (usually at
night while I'm asleep), Something Bad happens and keyboard is no
longer usable.  Mouse works, but system is in weird state and cannot
shut down safely.  Have to power cycle to fix it.

These are the messages in the log:

Dec 23 01:46:26 ideq hal.hotplug[4962]: DEVPATH is not set
Dec 23 01:46:26 ideq hal.hotplug[4963]: DEVPATH is not set
Dec 23 01:46:26 ideq kernel: hub 3-0:1.0: port 3 disabled by hub
(EMI?), re-enabling...                                               
                         Dec 23 01:46:27 ideq kernel: usb 3-3: USB
disconnect, address 6
Dec 23 01:46:27 ideq kernel: usb 3-3.1: USB disconnect, address 7
Dec 23 01:46:27 ideq kernel: drivers/usb/input/hid-core.c: can't
resubmit intr, 0000:00:02.1-3.3/input0, status -19
Dec 23 01:46:27 ideq kernel: usb 3-3.3: USB disconnect, address 8
Dec 23 01:46:27 ideq kernel: usb 3-3: new full speed USB device using
address 9
Dec 23 01:46:27 ideq kernel: hub 3-3:1.0: USB hub found
Dec 23 01:46:27 ideq kernel: hub 3-3:1.0: 3 ports detected
Dec 23 01:46:28 ideq kernel: usb 3-3.1: new full speed USB device
using address 10
Dec 23 01:46:28 ideq hal.hotplug[5152]: DEVPATH is not set
Dec 23 01:46:28 ideq kernel: input: USB HID v1.00 Keyboard [Chicony 
PFU-65 USB Keyboard] on usb-0000:00:02.1-3.1
Dec 23 01:46:29 ideq kernel: usb 3-3.3: new low speed USB device using
address 11
Dec 23 01:46:29 ideq hal.hotplug[5234]: DEVPATH is not set
Dec 23 01:46:29 ideq kernel: input: USB HID v1.00 Mouse [Microsoft
Microsoft 3-Button Mouse with IntelliEye?] on usb-0000:00:02.1-3.3

Looks similar to this bug report, and the only thing that turned up on
a google search.


Comment 5 Brendan Miller 2005-02-09 01:37:28 UTC
I'm now on kernel 2.6.10-1.760_FC3 and the problem with the lockup is
gone.  I think it went away with an earlier 2.6.10 packaging as well
as updating some of the usb/haldaemon/hotplug stuff...

Anyway, I don't know if this is related or not, but I still get (every
2 hours or so) these kinds of messages:

Feb  7 19:37:24 ideq kernel: hub 2-0:1.0: port 3 disabled by hub
(EMI?), re-enabling...
Feb  7 19:37:24 ideq kernel: usb 2-3: USB disconnect, address 47
Feb  7 19:37:24 ideq kernel: usb 2-3.1: USB disconnect, address 48
Feb  7 19:37:24 ideq hal.hotplug[15624]: DEVPATH is not set
Feb  7 19:37:24 ideq kernel: drivers/usb/input/hid-core.c: can't
resubmit intr, 0000:00:02.0-3.3/input0, status -19
Feb  7 19:37:24 ideq kernel: usb 2-3.3: USB disconnect, address 49
Feb  7 19:37:24 ideq hal.hotplug[15717]: DEVPATH is not set
Feb  7 19:37:24 ideq kernel: usb 2-3: new full speed USB device using
ohci_hcd and address 50
Feb  7 19:37:25 ideq kernel: hub 2-3:1.0: USB hub found
Feb  7 19:37:25 ideq kernel: hub 2-3:1.0: 3 ports detected
Feb  7 19:37:26 ideq kernel: usb 2-3.1: new full speed USB device
using ohci_hcd and address 51
Feb  7 19:37:26 ideq hal.hotplug[15829]: DEVPATH is not set
Feb  7 19:37:26 ideq kernel: input: USB HID v1.00 Keyboard [Chicony 
PFU-65 USB Keyboard] on usb-0000:00:02.0-3.1
Feb  7 19:37:27 ideq kernel: usb 2-3.3: new low speed USB device using
ohci_hcd and address 52
Feb  7 19:37:27 ideq kernel: input: USB HID v1.00 Mouse [Microsoft
Microsoft 3-Button Mouse with IntelliEye?] on usb-0000:00:02.0-3.3
Feb  7 19:37:27 ideq hal.hotplug[15911]: DEVPATH is not set

Any clues?

Comment 6 Brendan Miller 2005-02-16 01:26:16 UTC
Still happens on kernel-2.6.10-1.766_FC3... help?

Comment 7 Dave Jones 2005-07-15 18:53:01 UTC
An update has been released for Fedora Core 3 (kernel-2.6.12-1.1372_FC3) which
may contain a fix for your problem.   Please update to this new kernel, and
report whether or not it fixes your problem.

If you have updated to Fedora Core 4 since this bug was opened, and the problem
still occurs with the latest updates for that release, please change the version
field of this bug to 'fc4'.

Thank you.

Comment 8 Adam Wiggins 2005-07-21 21:47:51 UTC
The behavior is identical on 2.6.12-1.1372_FC3. 
 
Actually something I discovered after the additional bug report is that there 
is a way to restore keyboard & mouse without a reboot: by doing a complete 
back-forth cycle twice (rather than just once) it will reconnect.  So an odd 
number of disconnect/reconnect cycles produces a non-functional keyboard and 
mouse, whereas an even number restores functionality.  Here's what the 
messages log of a complete back, forth, back, forth looks like: 
 
Jul 21 14:36:52 edge hal.hotplug[4989]: DEVPATH is not set 
Jul 21 14:36:52 edge hal.hotplug[5038]: DEVPATH is not set 
Jul 21 14:36:52 edge kernel: usb 2-2: USB disconnect, address 2 
Jul 21 14:36:52 edge kernel: usb 2-2.1: USB disconnect, address 3 
Jul 21 14:36:52 edge kernel: usb 2-2.3: USB disconnect, address 4 
Jul 21 14:36:52 edge hal.hotplug[5079]: DEVPATH is not set 
Jul 21 14:37:53 edge kernel: usb 2-2: new full speed USB device using uhci_hcd 
and address 5 
Jul 21 14:37:53 edge kernel: hub 2-2:1.0: USB hub found 
Jul 21 14:37:53 edge kernel: hub 2-2:1.0: 3 ports detected 
Jul 21 14:37:53 edge kernel: usb 2-2.1: new low speed USB device using 
uhci_hcd and address 6 
Jul 21 14:37:54 edge hal.hotplug[5229]: DEVPATH is not set 
Jul 21 14:37:54 edge kernel: input: USB HID v1.10 Mouse [Logitech USB Mouse] 
on usb-0000:00:10.0-2.1 
Jul 21 14:37:54 edge kernel: usb 2-2.3: new full speed USB device using 
uhci_hcd and address 7 
Jul 21 14:37:54 edge hal.hotplug[5265]: DEVPATH is not set 
Jul 21 14:37:54 edge kernel: input: USB HID v1.10 Keyboard [Mitsumi Electric 
Apple Extended USB Keyboard] on usb-0000:00:10.0-2.3 
Jul 21 14:37:54 edge hal.hotplug[5318]: DEVPATH is not set 
Jul 21 14:37:54 edge kernel: input: USB HID v1.10 Device [Mitsumi Electric 
Apple Extended USB Keyboard] on usb-0000:00:10.0-2.3 
 

Comment 9 Adam Wiggins 2005-08-04 09:51:53 UTC
It gets more interesting. 
 
Today I had a second PC hooked up to the KVN temporarily for an install.  To 
my surprise, switching back and forth between the two works fine.  Apparently 
it's just switching to Mac OS X and back to Linux that doesn't work 50% of the 
time.  Very weird...I'm tempted to track down a non-Apple USB keyboard and see 
what happens trying to switch that, in case it's some really weird feature in 
the keyboard. 
 
Also, possible related: whenever I switch to the Fedora box I get some really 
serious CPU hogging (or something) such that the mouse pointer jumps around 
and if xmms is playing something the music skips really badly for 3 - 5 
seconds.  This was all the more noticeable because the other box (Gentoo) that 
I now have plugged in does not exhibit this behavior. 
 

Comment 10 Pete Zaitcev 2005-10-18 08:25:28 UTC
Is the FC4 the same? The CPU hogging is probably the thundering of hotplug
processes on FC3, which we replaced with udev in FC4.


Comment 11 Adam Wiggins 2005-10-18 10:54:11 UTC
It's still the same on FC4 (kernel 2.6.12-1.1398_FC4).  I have since upgraded my
computer to be a dual core x86_64 so the CPU slowdown is much less noticeable,
but it's still there.  The mouse stutters for perhaps half a second now, as
opposed to a couple of seconds before.  I still have to switch back and forth
twice to get it to recognize the keyboard and mouse after switching to the G5. 
Here's the current dmesg for one switch (i.e. back and forth twice):

usb 2-1: USB disconnect, address 40
usb 2-1.1: USB disconnect, address 41
drivers/usb/input/hid-core.c: can't resubmit intr, 0000:00:02.0-1.3/input0,
status -19
drivers/usb/input/hid-core.c: can't resubmit intr, 0000:00:02.0-1.3/input1,
status -19
usb 2-1.3: USB disconnect, address 42
usb 1-1: new high speed USB device using ehci_hcd and address 25
usb 1-1: device not accepting address 25, error -71
ohci_hcd 0000:00:02.0: wakeup
usb 1-1: new high speed USB device using ehci_hcd and address 27
usb 1-1: device not accepting address 27, error -71
ohci_hcd 0000:00:02.0: wakeup
hub 1-0:1.0: connect-debounce failed, port 1 disabled
usb 2-1: new full speed USB device using ohci_hcd and address 43
hub 2-1:1.0: USB hub found
hub 2-1:1.0: 3 ports detected
usb 2-1.1: new low speed USB device using ohci_hcd and address 44
input: USB HID v1.10 Mouse [Logitech USB Mouse] on usb-0000:00:02.0-1.1
usb 2-1.3: new full speed USB device using ohci_hcd and address 45
input: USB HID v1.10 Keyboard [Mitsumi Electric Apple Extended USB Keyboard] on
usb-0000:00:02.0-1.3
input: USB HID v1.10 Device [Mitsumi Electric Apple Extended USB Keyboard] on
usb-0000:00:02.0-1.3


Comment 12 Pete Zaitcev 2005-10-18 19:05:12 UTC
Thanks for testing. I see how it works now. The -19 is correct, it
happens because the disconnect method had no chance to run when
HID resubmits the interrupt URB. But upon reconnect, it's a -71.

It would be very helpful if you did the following:
 - get a Rawhide kernel. It's compatible. Current is 1.1616_FC5.
   You do not have to use it, just run it once. Keep the old one!
 - install kernel-doc, too
 - install it, and get a usbmon trace as in
/usr/share/doc/kernel-doc-2.6.13/Documentation/usb/usbmon.txt
 - Attach the file, do not drop it into comment box, please!

I cannot guarantee, unfortunately, what happens exactly. But I hope
that something like QUIRK_NOGET will fix it. Maybe all that happens
is that the keyboard has no time to reboot under certain conditions.


Comment 13 Dave Jones 2006-01-16 22:21:13 UTC
This is a mass-update to all currently open Fedora Core 3 kernel bugs.

Fedora Core 3 support has transitioned to the Fedora Legacy project.
Due to the limited resources of this project, typically only
updates for new security issues are released.

As this bug isn't security related, it has been migrated to a
Fedora Core 4 bug.  Please upgrade to this newer release, and
test if this bug is still present there.

This bug has been placed in NEEDINFO_REPORTER state.
Due to the large volume of inactive bugs in bugzilla, if this bug is
still in this state in two weeks time, it will be closed.

Should this bug still be relevant after this period, the reporter
can reopen the bug at any time. Any other users on the Cc: list
of this bug can request that the bug be reopened by adding a
comment to the bug.

Thank you.


Comment 14 Dave Jones 2006-02-03 06:03:52 UTC
This is a mass-update to all currently open kernel bugs.

A new kernel update has been released (Version: 2.6.15-1.1830_FC4)
based upon a new upstream kernel release.

Please retest against this new kernel, as a large number of patches
go into each upstream release, possibly including changes that
may address this problem.

This bug has been placed in NEEDINFO_REPORTER state.
Due to the large volume of inactive bugs in bugzilla, if this bug is
still in this state in two weeks time, it will be closed.

Should this bug still be relevant after this period, the reporter
can reopen the bug at any time. Any other users on the Cc: list
of this bug can request that the bug be reopened by adding a
comment to the bug.

If this bug is a problem preventing you from installing the
release this version is filed against, please see bug 169613.

Thank you.


Comment 15 Philippe Rigault 2006-03-07 13:41:45 UTC
This happens to me with FC5t3 on x86_64  
 
kernel-2.6.15-1_1955_FC5 
 
 
  
   

Comment 16 Dave Jones 2006-09-17 03:02:51 UTC
[This comment added as part of a mass-update to all open FC4 kernel bugs]

FC4 has now transitioned to the Fedora legacy project, which will continue to
release security related updates for the kernel.  As this bug is not security
related, it is unlikely to be fixed in an update for FC4, and has been migrated
to FC5.

Please retest with Fedora Core 5.

Thank you.


Comment 17 Dave Jones 2006-10-16 19:20:59 UTC
A new kernel update has been released (Version: 2.6.18-1.2200.fc5)
based upon a new upstream kernel release.

Please retest against this new kernel, as a large number of patches
go into each upstream release, possibly including changes that
may address this problem.

This bug has been placed in NEEDINFO state.
Due to the large volume of inactive bugs in bugzilla, if this bug is
still in this state in two weeks time, it will be closed.

Should this bug still be relevant after this period, the reporter
can reopen the bug at any time. Any other users on the Cc: list
of this bug can request that the bug be reopened by adding a
comment to the bug.

In the last few updates, some users upgrading from FC4->FC5
have reported that installing a kernel update has left their
systems unbootable. If you have been affected by this problem
please check you only have one version of device-mapper & lvm2
installed.  See bug 207474 for further details.

If this bug is a problem preventing you from installing the
release this version is filed against, please see bug 169613.

If this bug has been fixed, but you are now experiencing a different
problem, please file a separate bug for the new problem.

Thank you.

Comment 18 Jon Stanley 2008-01-20 04:41:07 UTC
(this is a mass-close to kernel bugs in NEEDINFO state)

As indicated previously there has been no update on the progress of this bug
therefore I am closing it as INSUFFICIENT_DATA. Please re-open if the issue
still occurs for you and I will try to assist in its resolution. Thank you for
taking the time to report the initial bug.

If you believe that this bug was closed in error, please feel free to reopen
this bug.