From mboxrd@z Thu Jan 1 00:00:00 1970 From: Soeren Sonnenburg Subject: Re: Problem with appletouch driver in Linux version 2.6.23-rc7 Date: Wed, 26 Sep 2007 21:56:36 +0200 Message-ID: <1190836596.1359.33.camel@localhost> References: <46F54D92.7000300@tng.de> <1190638998.12782.0.camel@localhost> <46F7BA08.6000201@tng.de> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <46F7BA08.6000201@tng.de> Sender: owner-linux-input@atrey.karlin.mff.cuni.cz List-Help: List-Owner: List-Post: List-Unsubscribe: To: Thomas Rohwer Cc: Dmitry Torokhov , linux-input@atrey.karlin.mff.cuni.cz, Matthew Garrett List-Id: linux-input@vger.kernel.org On Mon, 2007-09-24 at 15:22 +0200, Thomas Rohwer wrote: > Hello, > > > could you please re-send the patch? I for some reason have yet to see > > it ... > > here it is again, adressing also the comments from Dmitry. Thomas, Matthew and Dmitry, I think there is another bug in this. I mean whenever a mouse button is pressed or the mouse is moved the counter should be reset - no? Currently the idle counter is just increased... I mean shouldn't it be if (x || y || key) dev->idlecount=0; if (!x && !y && !key) { dev->idlecount++; if (dev->idlecount == 10) { dev->valid = 0; schedule_work(&dev->work); } } Soeren