mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-11 02:15:14 +00:00
Simulation now simulates the physical signal, so uses the power state machine. Power state machine now doesn't send a spurious press/release event if the power button signal glitches and returns to its previous state. Properly handles powering back on when waking from hibernate, if the lid is open. Signed-off-by: Randall Spangler <rspangler@chromium.org> BUG=chrome-os-partner:9817 TEST=manual: All of the following should power on the system: 1) at debug console, powerbtn 2) press power button 3) lid open 4) press power+esc+refresh 5) hibernate 10, then press power button 6) hibernate 10, then open lid These should leave the system off: 1) press power+esc 2) hibernate 10, then let it wake up on its own Hold down the power button to power on the system, and keep holding it down; system should shut back down after 8 sec. Hold down power+esc+refresh, and keep holding it down; system should boot and NOT shut down after 8 sec. Change-Id: I2dde951fe67544b6a24c607f0c4ba415ccd2f82f