Changeset 0cef3a67


Ignore:
Timestamp:
03/17/2023 02:56:23 PM (14 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.0, 12.1, kea, ken/TL2024, ken/tuningfonts, lazarus, lxqt, plabs/newcss, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18, xry111/xf86-video-removal
Children:
c346469
Parents:
37d53b1
git-author:
Xi Ruoyao <xry111@…> (03/17/2023 02:49:47 PM)
git-committer:
Xi Ruoyao <xry111@…> (03/17/2023 02:56:23 PM)
Message:

grub-efi: Fix "blind mode" issue

Move "insmod all_video" out of the "if loadfont" statement. It's enough
for the kernel to use EFI FB.

The "terminal_output gfxterm" statement has to be guarded by "if
loadfont", or it can garble the display if unicode.pf2 not available.

"gfxmode" seems no-use on EFI. According to upstream doc it's only
used for VGA BIOS Extension (as the name suggests, not available in EFI
environment).

Location:
postlfs/filesystems/uefi-bootloaders
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • postlfs/filesystems/uefi-bootloaders/grub-efi.xml

    r37d53b1 r0cef3a67  
    234234      data is not available at the time GRUB is built, GRUB won't install
    235235      any font for the boot loader.  The GRUB boot menu will be displayed
    236       using a coarse font and the early stage of kernel initialization will be
    237       in <quote>blind mode</quote> &mdash; you can't see any kernel messages before
    238       the graphics card driver is initialized.  It will be very difficult to
    239       diagnose some boot issues, especially if the graphics driver is
    240       built as module.</para>
     236      using a coarse font or in a smaller region on the screen.</para>
    241237    </warning>
    242238
  • postlfs/filesystems/uefi-bootloaders/grub-setup.xml

    r37d53b1 r0cef3a67  
    458458set root=(hd0,2)
    459459
     460insmod all_video
    460461if loadfont /boot/grub/fonts/unicode.pf2; then
    461   set gfxmode=auto
    462   insmod all_video
    463462  terminal_output gfxterm
    464463fi
Note: See TracChangeset for help on using the changeset viewer.