On Mon, 16 Oct 2006, Oliver Neukum wrote:

> Am Montag, 16. Oktober 2006 16:34 schrieb Alan Stern:
> > This intricate strategy points out a fact which should have been mentioned 
> > earlier.  For HID devices that are registered with the input core (is that 
> > all of them?), autosuspend should not be initiated by the USB core.  It 
> > should be initiated by the input core and handed up to the USB level.
> 
> Is that meaningful difference given that the driver controls the
> usage count? Doesn't it boil down to a request for autosuspend without
> a delay?

It means that the input core is in a better position to know when an input 
device should be suspended than the USB HID core is.  For now it's okay to 
do this at the USB level, but eventually the inactivity timers and other 
paraphernalia should be pushed down into the input level.  Note that then 
the same mechanisms could apply to other non-USB sorts of input devices as 
well.

> > > Do you have mice that do not require button push to wake up?
> > 
> > It doesn't matter.  The mouse descriptors don't specify whether motion is 
> > a wakeup event, so we have to assume that any mouse will send a wakeup 
> > request only when a button is pressed.  This makes it impossible to do 
> > idle-time suspending.
> 
> That is a bit strong. I'd say this should mean that idle-time suspending
> isn't the default, but for those devices that readily wake, it still can save
> energy.

How does the kernel find out whether a particular mouse will wake up in 
response to motion?

Alan Stern


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to