• Jan Beulich's avatar
    x86/boot: make "vga=current" work with graphics modes · 927aee59
    Jan Beulich authored
    GrUB2 can be told to leave the screen in the graphics mode it has been
    using (or any other one), via "set gfxpayload=keep" (or suitable
    variants thereof). In this case we can avoid doing another mode switch
    ourselves. This in particular avoids possibly setting the screen to a
    less desirable mode: On one of my test systems the set of modes
    reported available by the VESA BIOS depends on whether the interposed
    KVM switch has that machine set as the active one. If it's not active,
    only modes up to 1024x768 get reported, while when active 1280x1024
    modes are also included. For things to always work with an explicitly
    specified mode (via the "vga=" option), that mode therefore needs be a
    1024x768 one.
    
    For some reason this only works for me with "multiboot2" (and
    "module2"); "multiboot" (and "module") still forces the screen into text
    mode, despite my reading of the sources suggesting otherwise.
    
    For starters I'm limiting this to graphics modes; I do think t...
    927aee59
CHANGELOG.md 6.36 KB