Files
OpenCellular/chip
Randall Spangler 8c742b2fc3 link: Ignore keyboard when lid is closed
The lid is flexible enough that it's possible to press keys by
squeezing the laptop.  To keep this from waking the device from
suspend or powering it on, don't scan the keyboard or power button
when the lid is closed.

BUG=chrome-os-partner:15252
BRANCH=link
TEST=manual

- boot system
- use a magnet near the search key to trigger the lid-closed switch
- press space, then power.  neither one should trigger resume
- remove magnet.  system resumes
- space and power should work as expected again
- log out
- use magnet to trigger lid-closed switch (looking at EC console output is
  handy here).  system should shut down
- pressing power should not boot the system
- remove magnet; system will boot
- pressing power should work as expected again

Change-Id: I92080237b0a2f21774301df3d8e866878697b793
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/35425
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
2012-10-12 14:24:39 -07:00
..
2012-10-11 23:32:26 -07:00