On Thu, 14 Oct 2004, Moritz Heiber wrote:

> Hm .. so you're expecting it be a physical hardware problem?
> Thats indeed bad news. I wonder how to explain that to the IBM support
> (since I have no Windows on this box).
> That patch would be really appreciated (though I don't know wether there'll
> be any downsides .. are there any?).

The patch to prevent auto-suspend is below.  The downside is that the 
controller will always be running, always using power, and preventing your 
laptop from entering various sorts of lower-power modes.

> Thanks again .. your help and consideration is really appreciated.
> 
> Regards,
> 
> Moritz
> 
> PS: I tried booting up my system with a Sysresccd
> (http://www.sysresccd.org) which is using the latest kernel from the 2.4.x
> branch and everything was working without any problems. So .. could it
> still be a hardware problem?

I don't know.  Do the 2.4 kernels automatically suspend the controller 
after you unplug the mouse?

You know, it's possible that the problem isn't the suspend itself but 
what happens immediately afterward.  Some laptops have been known to have 
a problem with this.  (Not ones by IBM though...)

Can you post a copy of your /proc/driver/uhci/0000:00:1d.1 file?  
Actually, post several copies: with the mouse and the power cord 
both plugged in, with the power cord and no mouse (after the auto-suspend, 
so before you apply this patch), and with the mouse but no power cord.

Alan Stern


===== drivers/usb/host/uhci-hcd.c 1.134 vs edited =====
--- 1.134/drivers/usb/host/uhci-hcd.c   2004-09-30 13:58:40 -04:00
+++ edited/drivers/usb/host/uhci-hcd.c  2004-10-14 13:06:37 -04:00
@@ -1815,11 +1815,13 @@
        switch (uhci->state) {
                case UHCI_RUNNING:
 
+#if 0
                        /* global suspend if nothing connected for 1 second */
                        if (!ports_active(uhci) && suspend_allowed(uhci)) {
                                uhci->state = UHCI_SUSPENDING_GRACE;
                                uhci->state_end = jiffies + HZ;
                        }
+#endif
                        break;
 
                case UHCI_SUSPENDING_GRACE:



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to