[haiku-bugs] Re: [Haiku] #16753: No keyboard available at bootloader

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Thu, 28 Jan 2021 15:31:31 -0000

#16753: No keyboard available at bootloader
-------------------------------------+----------------------------------
  Reporter:  roiredxsoto             |      Owner:  kallisti5
      Type:  bug                     |     Status:  assigned
  Priority:  critical                |  Milestone:  R1/beta3
 Component:  System/Boot Loader/EFI  |    Version:  R1/beta2
Resolution:                          |   Keywords:  bootloader, keyboard
Blocked By:                          |   Blocking:
  Platform:  All                     |
-------------------------------------+----------------------------------
Comment (by beaglejoe):

 Looking a little further into this, I restored the code to head
 revision.\\
 Verified problem.\\

 In:
 src\system\boot\platform\efi\console.cpp (approx Line 237)

 {{{
 if (graphics) {
                 status = consoleControl->SetMode(consoleControl,
                         EfiConsoleControlScreenGraphics);
 }}}



 it looks like the call to set EfiConsoleControlScreenGraphics disables the
 keyboard ??

 I added a call to immediately put it back. ie:

 {{{
                 status = consoleControl->SetMode(consoleControl,
                         EfiConsoleControlScreenText);
 }}}

 Which restored keyboard function.
 This seems odd as the Console already seemed to be in graphics mode with
 working keyboard.
 Maybe because it was already in graphics mode ?
 Is there a GetMode() ??
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/16753#comment:7>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: