On Mon, 16 Oct 2006, Dmitry Torokhov wrote: > On 10/16/06, Oliver Neukum <[EMAIL PROTECTED]> wrote: > > Am Montag, 16. Oktober 2006 05:54 schrieben Sie: > > > > Both there's agreement in principle that PID devices should not be > > > > subject > > > > to autosuspend based on inactivity? > > > > > > Hmm, why? > > > > It was my understanding that a PID effect is started with a command > > describing the effect and its duration. Thus hid core cannot tell whether > > a pid device is performing an effect. > > > > Hmm, you could add hooks into input_ff_upload() and input_ff_erase() > and maybe in input_ff_events() to handle autocenter and gain cases... > And then say that device that does not have any effects uploaded to it > can be autosuspended... And you use input_dev->ff to check whjether > device supports force-feedback or not. I am CCing Anssi Hannula as he > recently overhauled entire FF support.
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. > > > > For what it's worth it sort of works now, however testing with an > > > > MS Intellimouse Explorer I found that I really needed to use a button > > > > to wake it up. > > > > > > I am afraid that this is a showstopper... While it is accepted that button > > > press is needed to wake up from system suspend I doubt uses will like the > > > need to press button to wake up their mice ;(;( > > > > For this particular marque of mouse it is. For the general case not > > necessarily so. > > 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. 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