bugGNU GRUB - Bugs: bug #65503, No video output on some systems

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #65503: No video output on some systems

Submitter:  Daniel <nrg>
Submitted:  Thu 21 Mar 2024 10:20:10 PM UTC
   
 
Category:  User Interface Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release:  other
Release:  Reproducibility:  Every Time
Planned Release:  None

Wed 05 Jun 2024 06:53:37 PM UTC, comment #2: 

As a follow-up to my previous comment (in case anybody is listening), I found out that I could also work around the issue by printing anything on the console, before switching to gfxterm (so, without any delay). E.g. with the following:

echo "Loading bootloader..."
terminal_output gfxterm


Michael Goffioul <goffioul>
Wed 05 Jun 2024 06:18:39 PM UTC, comment #1: 

I'm having a similar issue, but on an Android system (Android-x86 variant). I'm using a vanilla build of grub-2.12. I create the grub boot image with grub-mkimage, including the following modules:

all_video part_gpt part_msdos ext2 iso9660 fat ntfs normal echo cat config file linux test search gfxmenu gfxterm font png loadenv reboot regexp minicmd memdisk tar efifwsetup halt sleep tr videoinfo help

Android-x86 uses gfxterm with a custom theme. Grub works fine in an emulator and on 2 Dell platforms (laptop and desktop). But there's no display when booting on another Intel-based platform. As described in this bug report, the grub menu is functional, it's just not visible. E.g. I can press 'C' to enter grub shell, then type 'terminal_output console'. The grub console then appears on screen. If I re-run the grub config with 'configfile /path/to/grub.cfg', then the expected grub menu appears in gfxterm.

The only working trick I've found so far is similar to the reporter, use a big fat delay. E.g. like this

# UGLY HACK: some platforms have problems switching to gfxterm right away.
# See https://savannah.gnu.org/bugs/index.php?65503
echo -n "Loading in... "
sleep -v 2
terminal_output gfxterm


Michael Goffioul <goffioul>
Thu 21 Mar 2024 10:20:10 PM UTC, original submission:  

No video output on some systems

Description

GRUB is functional but does not output video. It can be navigated blindly and does boot Linux/Windows.
The issue seems to be that gfxterm crashes if load_video hasn't had enough time to set up the video mode.

Systems

Affected
  • Thinkpad X1 Carbon Gen 3 (Intel i5-5300U, Intel HD Graphics 5500) running Arch Linux
  • VMware Fusion virtual machine running on an old Mac Pro with Arch Linux
  • Other users running Ubuntu have also reported this issue; see the source for the workaround below
Unaffected
  • My desktop PC (Intel i7-7700K, Nvidia GTX 1080) running Arch Linux
  • A VMware Workstation VM (hosted on Windows on my desktop PC) running Arch Linux

Workaround

Editing 00_header to include sleep .1 or sleep .5 between the lines load_video and insmod gfxterm. This works on both of my affected machines. However, the workaround has to be manually reapplied after each update, which are relatively frequent on Arch.
Here an excerpt (with line numbers for easy reference) of 00_header with the workaround in place:

196   set gfxmode=${GRUB_GFXMODE}
197   load_video
198   sleep .1
199   insmod gfxterm
200 EOF

The source for the workaround is this discussion on Ask Ubuntu: Grub menu working but hidden, can't make it visible.

Additional Information

  • Disabling gfxterm and using the text console instead also works, but is less visually appealing.
  • Trying to use other, different video resolutions does not work.
  • The last GRUB package on Arch that worked for me without the workaround was version 2.06-5.
  • The last unaffected version on Ubuntu is unknown to me.

Here is the /etc/defaults/grub from my Thinkpad (out-commented and empty lines removed):

GRUB_DEFAULT="saved"
GRUB_TIMEOUT="5"
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="usbcore.autosuspend=5 retbleed=stuff"
GRUB_CMDLINE_LINUX=""
GRUB_DISABLE_SUBMENU="false"
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
GRUB_DISABLE_OS_PROBER="false"
GRUB_TIMEOUT_STYLE="menu"
GRUB_TERMINAL_INPUT="console"
GRUB_TERMINAL_OUTPUT="gfxterm"
GRUB_GFXMODE="2560x1440x32"
GRUB_GFXPAYLOAD_LINUX="keep"
GRUB_DISABLE_RECOVERY="true"
export GRUB_COLOR_NORMAL="light-red/black"
export GRUB_COLOR_HIGHLIGHT="light-magenta/light-blue"
GRUB_BACKGROUND="/boot/grub/hackers.png"
GRUB_SAVEDEFAULT="true"
GRUB_FONT="/boot/grub/unicode.pf2"

I created this bug report here instead of the Arch Bugtracker because it seems to be not necessarily specific to Arch. If that is not the case, or if there is anything else I can do, please let me know.

Daniel <nrg>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by goffioul (Posted a comment)
  • -email is unavailable- added by nrg (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-72d9.
    Corresponding source code