0002-Bind-ctrl-H-to-hold-the-developer-mode-screen.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. From c65fe3366205ad8391803e7c5c35332f2b757d5f Mon Sep 17 00:00:00 2001
  2. From: Hal Emmerich <hal@halemmerich.com>
  3. Date: Sun, 8 Dec 2019 20:00:12 -0600
  4. Subject: [PATCH] Bind ctrl + H to hold the developer mode screen
  5. ---
  6. firmware/lib/vboot_ui.c | 9 ++++++++-
  7. 1 file changed, 8 insertions(+), 1 deletion(-)
  8. diff --git a/firmware/lib/vboot_ui.c b/firmware/lib/vboot_ui.c
  9. index 98cd1cd6..c84452b7 100644
  10. --- a/firmware/lib/vboot_ui.c
  11. +++ b/firmware/lib/vboot_ui.c
  12. @@ -167,6 +167,7 @@ VbError_t vb2_developer_ui(struct vb2_context *ctx)
  13. uint32_t use_usb = 0;
  14. uint32_t use_legacy = 0;
  15. uint32_t ctrl_d_pressed = 0;
  16. + uint32_t hold = 0;
  17. VB2_DEBUG("Entering\n");
  18. @@ -314,6 +315,12 @@ VbError_t vb2_developer_ui(struct vb2_context *ctx)
  19. ctrl_d_pressed = 1;
  20. goto fallout;
  21. break;
  22. + case 0x08:
  23. + /* Ctrl+H = hold */
  24. + VB2_DEBUG(("VbBootDeveloper() - "
  25. + "hold developer mode screen\n"));
  26. + hold = 1;
  27. + break;
  28. case 0x0c:
  29. VB2_DEBUG("VbBootDeveloper() - "
  30. "user pressed Ctrl+L; Try legacy boot\n");
  31. @@ -360,7 +367,7 @@ VbError_t vb2_developer_ui(struct vb2_context *ctx)
  32. VbCheckDisplayKey(ctx, key);
  33. break;
  34. }
  35. - } while(vb2_audio_looping());
  36. + } while(hold || vb2_audio_looping());
  37. fallout:
  38. --
  39. 2.20.1