On Mon, 25 Jun 2007, Jiri Kosina wrote: > On Mon, 25 Jun 2007, Alan Stern wrote: > > > These logs look correct. The difference might have something to do with > > the timing of the USB messages relative to the keystrokes. Or maybe the > > keyboard itself has some weird 2-second timer. > > Hi Alan, > > thanks for looking at it. I have tried with two different keyboards, both > behave in the very same way - i.e. on OHCI, or when connected through 1.1 > hub to UHCI, everything works nicely. Only when connected directly to UHCI > root hub, the keystrokes are lost if pressed within that 2-sec period, > etc. > > I'd be inclined to rule out purely keyboard issue here. > > I'll put some printk()s into the uhci root hub code to understand better > what is going on. If you have any idea, please let me know.
I tried with a keyboard here (manual suspend, not using Oliver's changes). The keyboard is different from yours becaue it has a built-in hub. Nevertheless, it almost always happens that keystrokes can get lost during a resume. It depends on how fast I type and which devices have been suspended: the keyboard along, the keyboard and its internal hub, or both plus the root hub. With usbmon it's possible to see exactly what packets are transferred. The packets used for doing the resume always follow the same pattern. The only difference is the Interrupt data carrying the keystroke information. The device simply does not send the data. It'll be a lot easier to show you all this in person. And maybe I'll see something new when trying out your keyboard. Alan Stern ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel