mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-26 19:25:02 +00:00
Acknowledge Ctrl+U faster
When the user hits Ctrl+U on the dev screen, we used to change the screen only after we enumerate the USB devices, load the kernel from USB mass storage and boot it (about 4 seconds on the current firmware). Let's blank the screen earlier to show we got the key press. BUG=chrome-os-partner:7563 TEST=on a Stumpy in developer, hit Ctrl+U on the dev screen with an invalid key, then a valid key. Check which screen are displayed and how long it takes to get a new display after the key strokes. Change-Id: Ifc73b56055bcd50360d71c1cb6dee052d0fdf9aa Reviewed-on: https://gerrit.chromium.org/gerrit/14395 Reviewed-by: Bill Richardson <wfrichar@chromium.org> Commit-Ready: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org>
This commit is contained in:
@@ -156,19 +156,25 @@ VbError_t VbBootDeveloper(VbCommonParams* cparams, LoadKernelParams* p) {
|
||||
VbExBeep(120, 400);
|
||||
VbExSleepMs(120);
|
||||
VbExBeep(120, 400);
|
||||
} else if (VBERROR_SUCCESS ==
|
||||
VbTryLoadKernel(cparams, p, VB_DISK_FLAG_REMOVABLE)) {
|
||||
VBDEBUG(("VbBootDeveloper() - booting USB\n"));
|
||||
VbAudioClose(audio);
|
||||
return VBERROR_SUCCESS;
|
||||
} else {
|
||||
VBDEBUG(("VbBootDeveloper() - no kernel found on USB\n"));
|
||||
VbExBeep(250, 200);
|
||||
VbExSleepMs(120);
|
||||
/* Clear recovery requests from failed kernel loading, so
|
||||
* that powering off at this point doesn't put us into
|
||||
* recovery mode. */
|
||||
VbSetRecoveryRequest(VBNV_RECOVERY_NOT_REQUESTED);
|
||||
/* Clear the screen to show we get the Ctrl+U key press. */
|
||||
VbDisplayScreen(cparams, VB_SCREEN_BLANK, 0, &vnc);
|
||||
if (VBERROR_SUCCESS ==
|
||||
VbTryLoadKernel(cparams, p, VB_DISK_FLAG_REMOVABLE)) {
|
||||
VBDEBUG(("VbBootDeveloper() - booting USB\n"));
|
||||
VbAudioClose(audio);
|
||||
return VBERROR_SUCCESS;
|
||||
} else {
|
||||
VBDEBUG(("VbBootDeveloper() - no kernel found on USB\n"));
|
||||
VbExBeep(250, 200);
|
||||
VbExSleepMs(120);
|
||||
/* Clear recovery requests from failed kernel loading, so
|
||||
* that powering off at this point doesn't put us into
|
||||
* recovery mode. */
|
||||
VbSetRecoveryRequest(VBNV_RECOVERY_NOT_REQUESTED);
|
||||
/* Show the dev mode warning screen again */
|
||||
VbDisplayScreen(cparams, VB_SCREEN_DEVELOPER_WARNING, 0, &vnc);
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user