Bug 105998

Summary: after usb mouse/keybouard disconnect cannot use them
Product: [openSUSE] SUSE LINUX 10.0 Reporter: László Attila Tóth <panther>
Component: KernelAssignee: Vojtech Pavlik <vojtech>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: 70phr3
Version: Beta 2   
Target Milestone: ---   
Hardware: i686   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description László Attila Tóth 2005-08-20 10:58:10 UTC
I use usb mouse and keyboard, which worked in suse 9.3, but now after their
disconnect, I cannot use them again. The system doesn't see them (in lsusb).

/etc/sysconfig/hotplug is the same as in 9.3

In /var/log/message:
Aug 20 12:25:25 zeratul kernel: uhci_hcd 0000:00:1d.1: remove, state 1
Aug 20 12:25:25 zeratul kernel: usb usb2: USB disconnect, address 1
Aug 20 12:25:25 zeratul kernel: uhci_hcd 0000:00:1d.1: USB bus 2 deregistered
Aug 20 12:25:25 zeratul kernel: ACPI: PCI interrupt for device 0000:00:1d.1 disabled
Aug 20 12:25:25 zeratul kernel: uhci_hcd 0000:00:1d.0: remove, state 1
Aug 20 12:25:25 zeratul kernel: usb usb1: USB disconnect, address 1
Aug 20 12:25:25 zeratul kernel: uhci_hcd 0000:00:1d.0: USB bus 1 deregistered
Aug 20 12:25:25 zeratul kernel: ACPI: PCI interrupt for device 0000:00:1d.0 disabled
Aug 20 12:25:25 zeratul kernel: input.c: calling hotplug without a hotplug agent
defined

output of lspci | grep USB
0000:00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM
(ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 03)
0000:00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM
(ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 03)
0000:00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM
(ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 03)
0000:00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2
EHCI Controller (rev 03)
Comment 1 Olaf Kirch 2005-08-22 07:30:22 UTC
Vojtech, any clue? 
Comment 2 Vojtech Pavlik 2005-08-22 08:59:54 UTC
It seems like the connect events are not being detected, which is surprising.
Are there any messages in the kernel log when the devices are plugged in?
Comment 3 László Attila Tóth 2005-08-22 09:33:56 UTC
dmesg output:
usb 1-1: USB disconnect, address 2
input.c: calling hotplug without a hotplug agent defined
(no more messages after plugging in)

After a suspend to disk /resume it works, but on the running system it doesn't.
Comment 4 Vojtech Pavlik 2005-08-22 14:58:29 UTC
The messages above show that not just the USB devices were removed, but
also USB modules for the host controller were removed from the kernel.
Can you verify that is what happens? In that case some hotplug script is the
culprit - if an USB host controller module isn't present, it can't detect
a new USB device being plugged in, obviously.

To check if USB HCD modules are loaded, use

lsmod | grep hcd
Comment 5 László Attila Tóth 2005-08-22 15:46:53 UTC
~ # lsmod | grep hcd
uhci_hcd               32016  0
usbcore               112640  4 uhci_hcd,usbserial,usbhid

The same before and after unplugging my mouse. But when the mouse is not plugged
in, I still can use my usb keyboard.

Other: Now both of them is unplugged, lsusb has a problem
~ # lsusb
Duplicate product spec at line 2453 product 0846:4240 WG111 WiFi
Bus 003 Device 001: ID 0000:0000

part of /var/share/usb.ids with that line (the last but one):
0846  NetGear, Inc.
        1001  EA101 Ethernet [klsi]
        4110  MA111 WiFi (v1)
        4200  WG121 WiFi (v1)
        4210  WG121 WiFi (v2)
        4220  WG111 WiFi (v1)
        4240  WG111 WiFi (v2)
        4230  MA111 WiFi
        4240  WG111 WiFi
        6a00  WG111 WiFi (v2)
Comment 6 Vojtech Pavlik 2005-08-22 15:51:30 UTC
Yes, I know about the usb.ids bug. It's not relevant to your problem.
You can just remove the offending line(s) in the usb.ids file.
Comment 7 Vojtech Pavlik 2005-08-22 15:53:00 UTC
Do I understand you correctly that the issue doesn't manifest itself until
you remove both the keyboard and mouse, or is unplugging & re-plugging the
mouse while keeping the keyboard plugged enough to make the mouse stop
working?
Comment 8 László Attila Tóth 2005-08-22 16:25:35 UTC
If either mouse or keyboard is unplugged, I cannot use them again. It doesn't
depend on the state of the other device. It can be plugged or unplugged, the
issue is the same.
Comment 9 László Attila Tóth 2005-08-26 08:34:08 UTC
In beta3 it works.
Comment 10 Christopher Lovett 2005-10-11 02:58:00 UTC
I'm using 10.0 GM and I can boot with my mouse plugged in, but once removed it
no longer works.  Dmesg gives this output:

   hub 2-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?

This is repeated over and over until the device is removed.  Like I stated
though, the mouse works perfectly if entered at boot-time.
Comment 11 Vojtech Pavlik 2006-01-11 10:47:39 UTC
Ok, if it works in beta3, I think we can close this. Christopher, your problem
seems different, please open a new bug for this if needed.