gaia: Lid should be open for power button press to take effect

Due to the way the machine is constructed, the power button can still
be pressed if the lid is closed. This can cause TPM failures.

Ignore power button presses that occur when the lid is not open.

TEST=tested by using a magnet to simulate lid closed and pressing power

Change-Id: Ida9acd728f49caae4ed63f6c067d27c9b458a679
Signed-off-by: David Hendricks <>
Reviewed-by: Randall Spangler <>
1 file changed