On Thu, 2006-07-13 at 10:48 -0400, Alan Stern wrote: > On Wed, 12 Jul 2006, Robert Watkins wrote: > > > > Looks like the keyboard got disconnected here. Did you unplug it and try > > > again? > > The dmesg output starts, I think soon before, me unplugging the > > keyboard, which I then reconnected via the cable. I only unpluged once. > > Okay. > > > > There should have been more after this. What happened to the "Cannot > > > enable port 1" messages? > > There is a lot more of the same, please see the attached file > > dmesg_cable+kb. > > The "Cannot enable port 1" messages are not there. Could the patch you > > suggested have made the difference? > > It should not have had this effect. Just to be sure, you can try taking > the patch back out and see if the behavior changes. > I rebuilt 2.6.17.4 sans patch and still didn't get the "Cannot enable.." messages. However removing the ehci-hcd module did. An unexpected feature.
> > > Have you tried plugging the cable/keyboard into a different Linux > > > computer? > > I've just tried the same keyboard and extension cable on a borrowed > > laptop, running Knoppix 5.0 which has a 2.6.17 linux. The keyboard > > worked happily with the extension cable. usbview showed a single ohci > > controller on the laptop and no ehci at all. > > That definitely indicates there's nothing terribly wrong with the cable or > the keyboard. > > > I tried the same Knoppix CD with my new PC. The keyboard still did not > > work with an extension cable, even though it works with the BIOS, grub > > and the same Knoppix CD on a laptop. > > And this indicates that there's something funny with the PC's USB > hardware, or the connection between the PC and the cable, although it > doesn't explain why things work okay with the BIOS. > > The log messages don't point to any software problem. What they say is > that the keyboard is repeatedly being connected, disconnected, connected, > disconnected,... over and over again. (I mean electrically disconnected > from the USB bus, not physically unplugged from the port.) For example, > maybe the extension cable doesn't make a firm contact with the pins in the > computer's USB port. > > I can't tell how quickly these events occurred because your log doesn't > contain any timestamps. If you set CONFIG_PRINTK_TIME then the kernel > will add timestamps to the log entries. > I get this and more of the same repeated with the keyboard plugged in via the cable: [17179722.508000] ohci_hcd 0000:00:13.0: GetStatus roothub.portstatus [0] = 0x00010301 CSC LSDA PPS CCS [17179722.508000] hub 2-0:1.0: port 1, status 0301, change 0001, 1.5 Mb/s [17179722.636000] hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x301 [17179722.708000] ohci_hcd 0000:00:13.0: GetStatus roothub.portstatus [0] = 0x00130100 PRSC PESC CSC PPS [17179722.760000] hub 2-0:1.0: state 7 ports 4 chg 0000 evt 0002 [17179722.760000] ohci_hcd 0000:00:13.0: GetStatus roothub.portstatus [0] = 0x00030100 PESC CSC PPS [17179722.760000] hub 2-0:1.0: port 1, status 0100, change 0003, 12 Mb/s [17179722.888000] hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x100 [17179722.888000] hub 1-0:1.0: state 7 ports 8 chg 0000 evt 0002 [17179722.888000] ehci_hcd 0000:00:13.2: GetStatus port 1 status 001403 POWER sig=k CSC CONNECT [17179722.888000] hub 1-0:1.0: port 1, status 0501, change 0001, 480 Mb/s [17179723.016000] hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x501 [17179723.016000] ehci_hcd 0000:00:13.2: port 1 low speed --> companion [17179723.072000] ehci_hcd 0000:00:13.2: GetStatus port 1 status 003002 POWER OWNER sig=se0 CSC [17179723.264000] hub 2-0:1.0: state 7 ports 4 chg 0000 evt 0002 [17179723.264000] ohci_hcd 0000:00:13.0: GetStatus roothub.portstatus [0] = 0x00010301 CSC LSDA PPS CCS [17179723.264000] hub 2-0:1.0: port 1, status 0301, change 0001, 1.5 Mb/s [17179723.392000] hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x301 [17179723.464000] ohci_hcd 0000:00:13.0: GetStatus roothub.portstatus [0] = 0x00130100 PRSC PESC CSC PPS [17179723.516000] hub 2-0:1.0: state 7 ports 4 chg 0000 evt 0002 [17179723.516000] ohci_hcd 0000:00:13.0: GetStatus roothub.portstatus [0] = 0x00030100 PESC CSC PPS [17179723.516000] hub 2-0:1.0: port 1, status 0100, change 0003, 12 Mb/s [17179723.644000] hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x100 [17179723.644000] hub 1-0:1.0: state 7 ports 8 chg 0000 evt 0002 [17179723.644000] ehci_hcd 0000:00:13.2: GetStatus port 1 status 001403 POWER sig=k CSC CONNECT [17179723.644000] hub 1-0:1.0: port 1, status 0501, change 0001, 480 Mb/s [17179723.772000] hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x501 [17179723.772000] ehci_hcd 0000:00:13.2: port 1 low speed --> companion [17179723.828000] ehci_hcd 0000:00:13.2: GetStatus port 1 status 003002 POWER OWNER sig=se0 CSC [17179724.020000] hub 2-0:1.0: state 7 ports 4 chg 0000 evt 0002 [17179724.020000] ohci_hcd 0000:00:13.0: GetStatus roothub.portstatus [0] = 0x00010301 CSC LSDA PPS CCS If I remmod ehci_hcd it changes to this: [17179814.596000] ohci_hcd 0000:00:13.0: GetStatus roothub.portstatus [0] = 0x00130301 PRSC PESC CSC LSDA PPS CCS [17179814.596000] hub 2-0:1.0: port_wait_reset: err = -22 [17179814.596000] hub 2-0:1.0: port 1 not enabled, trying reset again... [17179814.596000] hub 2-0:1.0: Cannot enable port 1. Maybe the USB cable is bad? [17179814.668000] ohci_hcd 0000:00:13.0: GetStatus roothub.portstatus [0] = 0x00130301 PRSC PESC CSC LSDA PPS CCS [17179814.668000] hub 2-0:1.0: port_wait_reset: err = -22 [17179814.668000] hub 2-0:1.0: port 1 not enabled, trying reset again... [17179814.888000] ohci_hcd 0000:00:13.0: GetStatus roothub.portstatus [0] = 0x00130301 PRSC PESC CSC LSDA PPS CCS [17179814.888000] hub 2-0:1.0: port_wait_reset: err = -22 [17179814.888000] hub 2-0:1.0: port 1 not enabled, trying reset again... [17179815.108000] ohci_hcd 0000:00:13.0: GetStatus roothub.portstatus [0] = 0x00130301 PRSC PESC CSC LSDA PPS CCS [17179815.108000] hub 2-0:1.0: port_wait_reset: err = -22 [17179815.108000] hub 2-0:1.0: port 1 not enabled, trying reset again... [17179815.328000] ohci_hcd 0000:00:13.0: GetStatus roothub.portstatus [0] = 0x00130301 PRSC PESC CSC LSDA PPS CCS [17179815.328000] hub 2-0:1.0: port_wait_reset: err = -22 [17179815.328000] hub 2-0:1.0: port 1 not enabled, trying reset again... [17179815.548000] ohci_hcd 0000:00:13.0: GetStatus roothub.portstatus [0] = 0x00130301 PRSC PESC CSC LSDA PPS CCS [17179815.548000] hub 2-0:1.0: port_wait_reset: err = -22 [17179815.548000] hub 2-0:1.0: port 1 not enabled, trying reset again... [17179815.548000] hub 2-0:1.0: Cannot enable port 1. Maybe the USB cable is bad? [17179815.620000] ohci_hcd 0000:00:13.0: GetStatus roothub.portstatus [0] = 0x00130301 PRSC PESC CSC LSDA PPS CCS [17179815.620000] hub 2-0:1.0: port_wait_reset: err = -22 [17179815.620000] hub 2-0:1.0: port 1 not enabled, trying reset again... It's nice to see those "Maybe..." messages again. I tried inserting and removing ehci-hcd a few time. The "Maybe..." message only appears when the module is removed. > Either this electrical activity really is happening or else the OHCI > controller only thinks it is. The only way to tell the difference is by > using a USB analyzer of some sort... but even that wouldn't tell us _why_ > it is happening. > > I don't have any good ideas on what to do. One possibility is to try > using a different extension cable. Or instead of using an extension, > get a USB hub. I've re-tried an older style Belkin cable. There's no LED on it. Same results. My PC normally live in a different room to the monitor and keyboard. Its main use is as a MythTV, so it's nice to have the noisey beast out of ear shot. I join 2 x 10' cables to get the USB connection though a wall and the ceiling. Could I do that with a hub? Many Thanks, Rob ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
