mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-03 06:33:39 +00:00
vboot: Handle power button press in broken screen
power button press is not being handled in broken screen (VB_SCREEN_OS_BROKEN) if the user wants to exit out of it. BUG=none BRANCH=none TEST=verified power button key functionality in broken screen in Soraka board Change-Id: I64cbb79479e3e0579aeec4e87894441acf26c9fa Signed-off-by: Divya Chellap <divya.chellappa@intel.com> Reviewed-on: https://chromium-review.googlesource.com/674886 Commit-Ready: Divya Chellappa <divya.chellappa@intel.com> Tested-by: Divya Chellappa <divya.chellappa@intel.com> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Subrata Banik <subrata.banik@intel.com>
This commit is contained in:
committed by
chrome-bot
parent
e0a9a13c82
commit
e95ceff307
@@ -1060,9 +1060,14 @@ VbError_t vb2_recovery_menu(struct vb2_context *ctx, VbCommonParams *cparams)
|
||||
VbDisplayScreen(ctx, cparams, VB_SCREEN_OS_BROKEN, 0);
|
||||
VB2_DEBUG("waiting for manual recovery\n");
|
||||
while (1) {
|
||||
VbCheckDisplayKey(ctx, cparams, VbExKeyboardRead());
|
||||
if (VbWantShutdownMenu(cparams->gbb->flags))
|
||||
key = VbExKeyboardRead();
|
||||
if (key == VB_BUTTON_POWER)
|
||||
return VBERROR_SHUTDOWN_REQUESTED;
|
||||
else {
|
||||
VbCheckDisplayKey(ctx, cparams, key);
|
||||
if (VbWantShutdownMenu(cparams->gbb->flags))
|
||||
return VBERROR_SHUTDOWN_REQUESTED;
|
||||
}
|
||||
VbExSleepMs(REC_KEY_DELAY);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user