On Thu, 19 Feb 2004, Alan Stern wrote:

> I think it's safe to assume you didn't actually unplug the keyboard while 
> your computer was asleep, so there must be something else causing the USB 
> controller to report that change in the connection status.  I don't know 
> what it might be, though.

On further thought, it seems likely that your keyboard simply shuts itself 
off rather than suspending.  After all, it doesn't need to retain any 
information during the suspend, and there's no reason for it to draw any 
power from the USB bus (being a bus-powered device).

> In itself that's not so bad.  If the system, seeing that something was
> indeed plugged in, had gone ahead and reinitialized the keyboard you
> probably wouldn't have noticed that anything unusual had happened.  It's
> not clear why it didn't do that; I'll have to get back to you later on
> this one.

I still don't see any reason why the keyboard wasn't detected and 
reinitialized after the resume.  The patch below will add a little extra 
diagnostic information to your system log; maybe that will help indicate 
where the problem lies.

Alan Stern


===== hub.c 1.136 vs edited =====
--- 1.136/drivers/usb/core/hub.c        Wed Feb 18 06:00:29 2004
+++ edited/drivers/usb/core/hub.c       Fri Feb 20 17:06:27 2004
@@ -910,6 +910,7 @@
                if (portstatus & USB_PORT_STAT_ENABLE)
                        hub_port_disable(hub, port);
 
+               printk(KERN_INFO "%s: nothing connected\n", __FUNCTION__);
                return;
        }
 
@@ -920,6 +921,7 @@
                hub_port_disable(hub, port);
                return;
        }
+       printk(KERN_INFO "%s: port debounce successful\n", __FUNCTION__);
 
        /* root hub ports have a slightly longer reset period
         * (from USB 2.0 spec, section 7.1.7.5)



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to