RE: One USB mouse problem with runtime power management enabled

2013-07-04 Thread Chen Peter-B29397
> > > > Have you opened the mouse by apps (like evtest)?, for USB mouse, > > the usbhid->intf->needs_remote_wakeup is only set at .open/.close > > API. That means if you have not opened mouse, the runtime pm status > > for mouse will changed to RPM_ACTIVE (choose_wakeup -> > pm_runtime_resume) >

Re: One USB mouse problem with runtime power management enabled

2013-07-04 Thread Alan Stern
On Thu, 4 Jul 2013, Peter Chen wrote: > > I tried doing the same thing on a slightly modified 3.10 kernel. It > > worked okay. But my mouse was attached to a UHCI controller rather > > than EHCI, which may make a difference. > > > > Have you tried running this test with 3.10? > > > > Have y

Re: One USB mouse problem with runtime power management enabled

2013-07-04 Thread Peter Chen
On Wed, Jul 03, 2013 at 12:29:08PM -0400, Alan Stern wrote: > On Wed, 3 Jul 2013, Peter Chen wrote: > > > Hi Jiri and Alan, > > > > I have run below below at 3.5.7 kernel, but after checking upstream > > kernel, it may also be existed. > > > > 1. evtest /dev/input/event1 & > > 2. Let mouse auto

Re: One USB mouse problem with runtime power management enabled

2013-07-03 Thread Alan Stern
On Wed, 3 Jul 2013, Peter Chen wrote: > Hi Jiri and Alan, > > I have run below below at 3.5.7 kernel, but after checking upstream > kernel, it may also be existed. > > 1. evtest /dev/input/event1 & > 2. Let mouse auto suspend, enable mouse as wakeup source, and let > the system enters suspend. >