Am Donnerstag, 15. Februar 2007 21:33 schrieb Sven Anders: > Oliver Neukum schrieb: > > Am Donnerstag, 15. Februar 2007 10:27 schrieb Sven Anders: > >> My problem is: If I decide (upon the data I received from the touchpad), > >> that > >> there isn't a finger any longer on the pad, I want to stop the calling of > >> the > >> 'atp_complete' function until I'm sure the touchpad is touched again. Then > >> I > >> want the data again till it's released again. > >> > >> After I suspend and resume the computer this works. How can I archive this > >> within the interrupt-handler-code? > > > > You do this by implementing autosuspend support in your driver. > > However, this is a relatiely new and untested feature. > > Is there any documentation? > Do I need a patch or is this integrated in any of the latest kernels? > How is the decision made, that the interface can be suspended?
Not so quick. You first need to establish why your device keeps sending data. And whether it can do remote wakeup. > > >> Another possibility (for me) would be to make the interval (in the > >> untouched > >> times) > >> longer. Is this possible? > > > > Yes, you can increase the interval. > > Can I do it in the interrupt-handler? > What do I have to call to set it? You have to increase the interval given to usb_fill_interrupt_urb() when you resubmit. Regards Oliver ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel