suppress "onkey" events on resume [Was: Re: Where are actions configured for buttons...
commitbce8d71ef46e7cf3431d5e32c9a452d2250efa00
author\\\\\\\"Mike (mwester)\\\\\\ <mwester@dls.net>
Tue, 14 Oct 2008 04:46:34 +0000 (14 05:46 +0100)
committerMike Westerhof <mwester@dls.net>
Tue, 14 Oct 2008 05:04:56 +0000 (14 00:04 -0500)
treebe71da29bb192b4e6b50ad5c869206686622dc37
parent884babacebf3b7048e5f87f8d612dead20845799
suppress "onkey" events on resume [Was: Re: Where are actions configured for buttons in FSO?]

Michael 'Mickey' Lauer wrote:
...
> The problem is (and this is the reason why I'm crossposting this to the
> kernel mailing list), the kernel is not swallowing the power button
> presses that triggers the resume, so you need some "real" programming
> (as opposed to the expressional complexity of our rules) in order to
> prevent falling asleep right after resume.
>
> Kernel-guys, can we change that?

suppress-resume-onkey-event.patch

This suppresses the key press and key release events from the
power button, in the case where the power button is the wake
event for the GTA01 or GTA02 device.

Signed-off-by: Mike Westerhof <mwester@dls.net>
drivers/i2c/chips/pcf50606.c
drivers/i2c/chips/pcf50633.c