Re: [PATCH] appletouch powersaving - please apply for 2.6.23-rc1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 17 Jul 2007 09:10:18 +0200
Soeren Sonnenburg <[email protected]> wrote:

> the attached minimally intrusive patch is based on Matthew Garret's
> patch 'Make appletouch shut up when it has nothing to say' patches (e.g.
> http://lkml.org/lkml/2007/5/13/117): Matthews description follows /
> second paragraph lists my additional changes.
> 
> The appletouch geyser3 devices found in the Intel Macs (and possibly some later 
> PPC ones?) send a constant stream of packets after the first touch. This 
> results in the kernel waking up around once every couple of milliseconds 
> to process them, making it almost impossible to spend any significant 
> period of time in C3 state on a dynamic HZ kernel. Sending the mode 
> initialization code makes the device shut up until it's touched again. 
> This patch does so after receiving 10 packets with no interesting 
> content.
> 
> In addition it now empties the work queue via cancel_work_sync on module
> exit, keeps all error checking and only reports BTN_LEFT presses if bit
> 1 in the status byte (last byte in packet) is set. This fixes the random
> left clicks issue. Furthermore it invalidates touchpad data before the
> mode switch, which fixes the touchpad runs amok issue.

Please feed this through scripts/checkpatch.pl and consider addressing
all the things which it reports.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux