freebsd-dev/stand/lua
Kyle Evans 5f8cfbe134 UEFI: Ditch console mode setting, choose optimal GOP mode later in boot
boot1 is too early to be deciding a good resolution. Console modes don't map
cleanly/predictably to actual screen resolutions, and GOP does not reflect
the actual screen resolution after a console mode change. Rip it out.

Add an efi-autoresizecons command to loader to choose an optimal screen
resolution based on the current environment. We'll explicitly execute this
later, preferably before we draw anything of value but after we load config
and pick up any tunables we may need to decide where we're going.

This method also allows us to actually pass the correct framebuffer
information on to the kernel.

UGA autoresizing is not implemented because it doesn't have the kind of mode
enumeration that GOP does. If an interested person with relevant hardware
could get in contact, we can take a look at implementing UGA autoresize.

This effectively "fixes" the breakage caused by r327058, but doesn't
actually set the resolution correctly until the interpreter calls
efi-autoresizcons. The lualoader version of this has been included for
reference; the forth equivalent will follow.

Reviewed by:	imp (with some hestitation), manu
Differential Revision:	https://reviews.freebsd.org/D14788
2018-03-21 20:36:57 +00:00
..
cli.lua lualoader: Return status in cli_execute_unparsed properly 2018-03-07 22:05:23 +00:00
color.lua lualoader: Clear up some possible naming confusion 2018-03-21 15:09:47 +00:00
config.lua lualoader: Add primitive hook module, use it to untangle bogus reference 2018-03-21 03:07:16 +00:00
core.lua UEFI: Ditch console mode setting, choose optimal GOP mode later in boot 2018-03-21 20:36:57 +00:00
core.lua.8 core.lua(8): Update to reflect recently added function clearCachedKernels 2018-03-21 03:16:14 +00:00
drawer.lua lualoader: Use printc when we expect ANSI escape sequences 2018-03-21 18:02:56 +00:00
hook.lua lualoader: Add primitive hook module, use it to untangle bogus reference 2018-03-21 03:07:16 +00:00
loader.lua UEFI: Ditch console mode setting, choose optimal GOP mode later in boot 2018-03-21 20:36:57 +00:00
Makefile lualoader: Add primitive hook module, use it to untangle bogus reference 2018-03-21 03:07:16 +00:00
menu.lua lualoader: Clear up some possible naming confusion 2018-03-21 15:09:47 +00:00
menu.lua.8 Add menu.lua(8), but do not add to distribution 2018-03-02 05:36:04 +00:00
password.lua lualoader: Use global printc instead of loader.printc 2018-03-02 16:06:20 +00:00
screen.lua lualoader: Clear up some possible naming confusion 2018-03-21 15:09:47 +00:00