Oliver Neukum schrieb: > Am Freitag, 16. Februar 2007 18:58 schrieb Sven Anders: >> Variant 1: >> If the completion handler decides, that there is no finger on the touchpad >> any more, it does not call usb_submit_urb() again. The completion handler >> stops. Via an kernel timer I will call the completion handler to test, if >> there is a finger on the touchpad again. If so, I will restart the interrupt >> handler and will call usb_submit_urb() until I have no finger on the pad >> again. > > How are you going to tell whether a finger is on the pad without > requesting data which means calling usb_submit_urb?
Yes, that's a good question! My idea was (because I need some of the temperature data in regular intervals anyways) to call the same function in greater intervals - so I can decide, if I touch it. It would be the best to tell the touchpad to stop sending and it should start again, but I'm not sure how to do it. Is it possible to re-init a usb device from the interrupt handler? If there is a way, I would try this - maybe the device will stop and only begin on a re-touch... Regards Sven -- Sven Anders <[EMAIL PROTECTED]> () Ascii Ribbon Campaign /\ Support plain text e-mail ANDURAS service solutions AG Innstraße 71 - 94036 Passau - Germany Web: www.anduras.de - Tel: +49 (0)851-4 90 50-0 - Fax: +49 (0)851-4 90 50-55 Rechtsform: Aktiengesellschaft - Sitz: Passau - Amtsgericht Passau HRB 6032 Mitglieder des Vorstands: Sven Anders, Marcus Junker Vorsitzender des Aufsichtsrats: Dipl. Kfm. Thomas Träger ------------------------------------------------------------------------- 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