On Mon, 13 Jun 2005, Eric Piel wrote: > Hello, > > I've noticed a regression between linux 2.6.11 (.8) and 2.6.12-rc6: > Suspending and resuming my mouse used to work perfectly on 2.6.11, doing > echo -n 1 > /sys/bus/usb/devices/usb1/1-2/power/state > and "echo -n 0..." to resume it. > > On 2.6.12-rc6 the suspend generates this printk : > usbhid 1-2:1.0: suspend 1 fail, code 0
You can ignore that message. It is bogus and doesn't bear much relation to whether the suspend actually succeeded or not. > Then the mouse seems to suspend correctly anyway (and power/state shows > the new state)... but on the resume, even if the mouse led turns on > again, the pointer will not move anymore. The same happens with any > suspend level (from 1 to 4). Trigerring the mouse resume by a mouse > click results in the same problem. > Anyone has some advice as what can cause this regression? How can I try > to debug this? I had a look at the diff but nothing shocked me :-/ The resume problem looks like a genuine bug. Try the patch below. Alan Stern Index: usb-2.6/drivers/usb/core/hub.c =================================================================== --- usb-2.6.orig/drivers/usb/core/hub.c +++ usb-2.6/drivers/usb/core/hub.c @@ -1733,7 +1733,7 @@ static int finish_port_resume(struct usb struct usb_driver *driver; intf = udev->actconfig->interface[i]; - if (intf->dev.power.power_state == PMSG_SUSPEND) + if (intf->dev.power.power_state != PMSG_SUSPEND) continue; if (!intf->dev.driver) { /* FIXME maybe force to alt 0 */ ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel