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 27 Nov 2024 01:53:53 PM UTC, comment #4: 

I'm facing that issue as well on an Apple iMac 9.1.

In relation with goffioul's comment at https://savannah.gnu.org/bugs/index.php?65503#comment2, I also noticed that with GRUB 2.12 the greetings 'Welcome to GRUB!' is not displayed anymore.

Below the detail of the report for Debian:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1088356

Grub doesn't show the splash screen and boot menu on my system with grub
2.12-5 on trixie, while it works fine with 2.06 from bookworm.

This problem happens when booting on the trixie installation medium
(ISO) as well as when booting from the grub that is installed on the
systems at the end of the installer.

This a regression in 2.12 since it worked fine on bookworm/grub 2.06.

The hardware only supports the "1920x1200x32" as per the output of
'videoinfo'.

However, I noticed that when adding "set debug=video" to
/boot/grub/grub.cfg the splash screen & boot menu are displayed properly
in both cases (system boot or installation medium boot). This is
surprising since I didn't change anything else in the configuration.


Debug output (with debug=video) is as follows with the grub installed on
the system
-------------------------------------------------------------------
video/efi_gop.c:388:video: GOP: keeping mode 0
video/efi_gop.c:493:video: GOP: initialising FB @ 0xc00100000 1920x1280x32
video/efi_gop.c:520:video: GOP: Success



Debug output (with debug=video) is as follows when booting on the grub
of the installation medium (it forces 800x600 resolution).
------------------------------------------------------------------
video/efi_gop.c:397:video: GOP: 1 modes detected
video/efi_gop.c:410:video: GOP: mode 0: 1920x1200
video/efi_gop.c:428:video: GOP: mode 0: depth 32
video/efi_gop.c:434:video: GOP: mode 0: rejected
video/efi_gop.c:453:video: GOP: no mode found
video/efi_gop.c:388:video: GOP: keeping mode 0
video/efi_gop.c:493:video: GOP: initialising FB @ 0xc00100000 1920x1280x32
video/efi_gop.c:520:video: GOP: Success


Output of videoinfo:
--------------------
List of supported video modes:
Legend: mask/position=red/green/blue/reserved
Adapter 'Bochs PCI Video Driver':
  No info available
Adapter 'Cirrus CLGD 5446 PCI Video Driver':
  No info available
Adapter 'EFI GOP driver':

  • 0x000 1920 x 1200 x 32 (7680)  Direct color, mask: 8/8/8/8  pos: 16/8/0/24

Adapter 'EFI UGA driver':
  No info available


Regards




-- Package-specific info:

********************* BEGIN /proc/mounts
/dev/sdc11 / ext4 rw,relatime,errors=remount-ro 0 0
/dev/sda1 /boot/efi vfat
rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro

  1. 0

/dev/sda4 /media/XYZTUV/bookworm ext4
rw,nosuid,nodev,relatime,errors=remount-ro 0 0
********************* END /proc/mounts

********************* BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
set root='hd2,gpt11'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt11
--hint-efi=hd2,gpt11 --hint-baremetal=ahci2,gpt11
4d963560-852e-4fe3-b77d-db539d1c7586
else
  search --no-floppy --fs-uuid --set=root
4d963560-852e-4fe3-b77d-db539d1c7586
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=fr_FR
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=5
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_gpt
insmod ext2
set root='hd2,gpt11'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt11
--hint-efi=hd2,gpt11 --hint-baremetal=ahci2,gpt11
4d963560-852e-4fe3-b77d-db539d1c7586
else
  search --no-floppy --fs-uuid --set=root
4d963560-852e-4fe3-b77d-db539d1c7586
fi
insmod png
if background_image
/usr/share/desktop-base/emerald-theme/grub/grub-4x3.png; then
  set color_normal=white/black
  set color_highlight=black/white
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux GNU/Linux' --class debian --class gnu-linux
--class gnu --class os $menuentry_id_option
'gnulinux-simple-4d963560-852e-4fe3-b77d-db539d1c7586' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd2,gpt11'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt11
--hint-efi=hd2,gpt11 --hint-baremetal=ahci2,gpt11
4d963560-852e-4fe3-b77d-db539d1c7586
else
  search --no-floppy --fs-uuid --set=root
4d963560-852e-4fe3-b77d-db539d1c7586
fi
echo 'Loading Linux 6.11.9-amd64 ...'
linux /boot/vmlinuz-6.11.9-amd64
root=UUID=4d963560-852e-4fe3-b77d-db539d1c7586 ro tsc=unstable quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-6.11.9-amd64
}
submenu 'Advanced options for Debian GNU/Linux GNU/Linux'
$menuentry_id_option
'gnulinux-advanced-4d963560-852e-4fe3-b77d-db539d1c7586' {
menuentry 'Debian GNU/Linux GNU/Linux, with Linux 6.11.9-amd64' --class
debian --class gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-6.11.9-amd64-advanced-4d963560-852e-4fe3-b77d-db539d1c7586' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd2,gpt11'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt11
--hint-efi=hd2,gpt11 --hint-baremetal=ahci2,gpt11
4d963560-852e-4fe3-b77d-db539d1c7586
else
  search --no-floppy --fs-uuid --set=root
4d963560-852e-4fe3-b77d-db539d1c7586
fi
echo 'Loading Linux 6.11.9-amd64 ...'
linux /boot/vmlinuz-6.11.9-amd64
root=UUID=4d963560-852e-4fe3-b77d-db539d1c7586 ro tsc=unstable quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-6.11.9-amd64
}
menuentry 'Debian GNU/Linux GNU/Linux, with Linux 6.11.9-amd64
(recovery mode)' --class debian --class gnu-linux --class gnu --class os
$menuentry_id_option
'gnulinux-6.11.9-amd64-recovery-4d963560-852e-4fe3-b77d-db539d1c7586' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd2,gpt11'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt11
--hint-efi=hd2,gpt11 --hint-baremetal=ahci2,gpt11
4d963560-852e-4fe3-b77d-db539d1c7586
else
  search --no-floppy --fs-uuid --set=root
4d963560-852e-4fe3-b77d-db539d1c7586
fi
echo 'Loading Linux 6.11.9-amd64 ...'
linux /boot/vmlinuz-6.11.9-amd64
root=UUID=4d963560-852e-4fe3-b77d-db539d1c7586 ro single dis_ucode_ldr
tsc=unstable
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-6.11.9-amd64
}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/25_bli ###
if [ "$grub_platform" = "efi" ]; then
  insmod bli
fi
### END /etc/grub.d/25_bli ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Debian GNU/Linux 12 (bookworm) (on /dev/sda4)' --class debian
--class gnu-linux --class gnu --class os $menuentry_id_option
'osprober-gnulinux-simple-462f57b4-136e-4c18-8c55-e4bc59cfb7aa' {
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4
--hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4
462f57b4-136e-4c18-8c55-e4bc59cfb7aa
else
  search --no-floppy --fs-uuid --set=root
462f57b4-136e-4c18-8c55-e4bc59cfb7aa
fi
linux /boot/vmlinuz-6.1.0-28-amd64
root=UUID=462f57b4-136e-4c18-8c55-e4bc59cfb7aa ro tsc=unstable
trace_clock=global quiet zswap.enabled=1 mem_sleep_default=deep
module_blacklist=nouveau
initrd /boot/initrd.img-6.1.0-28-amd64
}
submenu 'Advanced options for Debian GNU/Linux 12 (bookworm) (on
/dev/sda4)' $menuentry_id_option
'osprober-gnulinux-advanced-462f57b4-136e-4c18-8c55-e4bc59cfb7aa' {
menuentry 'Debian GNU/Linux, with Linux 6.1.0-28-amd64 (on /dev/sda4)'
--class gnu-linux --class gnu --class os $menuentry_id_option
'osprober-gnulinux-/boot/vmlinuz-6.1.0-28-amd64--462f57b4-136e-4c18-8c55-e4bc59cfb7aa'
{
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4
--hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4
462f57b4-136e-4c18-8c55-e4bc59cfb7aa
else
  search --no-floppy --fs-uuid --set=root
462f57b4-136e-4c18-8c55-e4bc59cfb7aa
fi
linux /boot/vmlinuz-6.1.0-28-amd64
root=UUID=462f57b4-136e-4c18-8c55-e4bc59cfb7aa ro tsc=unstable
trace_clock=global quiet zswap.enabled=1 mem_sleep_default=deep
module_blacklist=nouveau
initrd /boot/initrd.img-6.1.0-28-amd64
}
menuentry 'Debian GNU/Linux, with Linux 6.1.0-28-amd64 (recovery mode)
(on /dev/sda4)' --class gnu-linux --class gnu --class os
$menuentry_id_option
'osprober-gnulinux-/boot/vmlinuz-6.1.0-28-amd64-root=UUID=462f57b4-136e-4c18-8c55-e4bc59cfb7aa
ro single tsc=unstable
trace_clock=global-462f57b4-136e-4c18-8c55-e4bc59cfb7aa' {
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4
--hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4
462f57b4-136e-4c18-8c55-e4bc59cfb7aa
else
  search --no-floppy --fs-uuid --set=root
462f57b4-136e-4c18-8c55-e4bc59cfb7aa
fi
linux /boot/vmlinuz-6.1.0-28-amd64
root=UUID=462f57b4-136e-4c18-8c55-e4bc59cfb7aa ro single tsc=unstable
trace_clock=global
initrd /boot/initrd.img-6.1.0-28-amd64
}
menuentry 'Debian GNU/Linux, with Linux 6.1.0-27-amd64 (on /dev/sda4)'
--class gnu-linux --class gnu --class os $menuentry_id_option
'osprober-gnulinux-/boot/vmlinuz-6.1.0-27-amd64--462f57b4-136e-4c18-8c55-e4bc59cfb7aa'
{
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4
--hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4
462f57b4-136e-4c18-8c55-e4bc59cfb7aa
else
  search --no-floppy --fs-uuid --set=root
462f57b4-136e-4c18-8c55-e4bc59cfb7aa
fi
linux /boot/vmlinuz-6.1.0-27-amd64
root=UUID=462f57b4-136e-4c18-8c55-e4bc59cfb7aa ro tsc=unstable
trace_clock=global quiet zswap.enabled=1 mem_sleep_default=deep
module_blacklist=nouveau
initrd /boot/initrd.img-6.1.0-27-amd64
}
menuentry 'Debian GNU/Linux, with Linux 6.1.0-27-amd64 (recovery mode)
(on /dev/sda4)' --class gnu-linux --class gnu --class os
$menuentry_id_option
'osprober-gnulinux-/boot/vmlinuz-6.1.0-27-amd64-root=UUID=462f57b4-136e-4c18-8c55-e4bc59cfb7aa
ro single tsc=unstable
trace_clock=global-462f57b4-136e-4c18-8c55-e4bc59cfb7aa' {
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4
--hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4
462f57b4-136e-4c18-8c55-e4bc59cfb7aa
else
  search --no-floppy --fs-uuid --set=root
462f57b4-136e-4c18-8c55-e4bc59cfb7aa
fi
linux /boot/vmlinuz-6.1.0-27-amd64
root=UUID=462f57b4-136e-4c18-8c55-e4bc59cfb7aa ro single tsc=unstable
trace_clock=global
initrd /boot/initrd.img-6.1.0-27-amd64
}
menuentry 'Debian GNU/Linux, with Linux 5.10.0-33-amd64 (on /dev/sda4)'
--class gnu-linux --class gnu --class os $menuentry_id_option
'osprober-gnulinux-/boot/vmlinuz-5.10.0-33-amd64--462f57b4-136e-4c18-8c55-e4bc59cfb7aa'
{
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4
--hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4
462f57b4-136e-4c18-8c55-e4bc59cfb7aa
else
  search --no-floppy --fs-uuid --set=root
462f57b4-136e-4c18-8c55-e4bc59cfb7aa
fi
linux /boot/vmlinuz-5.10.0-33-amd64
root=UUID=462f57b4-136e-4c18-8c55-e4bc59cfb7aa ro tsc=unstable
trace_clock=global quiet zswap.enabled=1 mem_sleep_default=deep
module_blacklist=nouveau
initrd /boot/initrd.img-5.10.0-33-amd64
}
menuentry 'Debian GNU/Linux, with Linux 5.10.0-33-amd64 (recovery mode)
(on /dev/sda4)' --class gnu-linux --class gnu --class os
$menuentry_id_option
'osprober-gnulinux-/boot/vmlinuz-5.10.0-33-amd64-root=UUID=462f57b4-136e-4c18-8c55-e4bc59cfb7aa
ro single tsc=unstable
trace_clock=global-462f57b4-136e-4c18-8c55-e4bc59cfb7aa' {
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4
--hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4
462f57b4-136e-4c18-8c55-e4bc59cfb7aa
else
  search --no-floppy --fs-uuid --set=root
462f57b4-136e-4c18-8c55-e4bc59cfb7aa
fi
linux /boot/vmlinuz-5.10.0-33-amd64
root=UUID=462f57b4-136e-4c18-8c55-e4bc59cfb7aa ro single tsc=unstable
trace_clock=global
initrd /boot/initrd.img-5.10.0-33-amd64
}
}

menuentry 'Windows Boot Manager (on /dev/sdb1)' --class windows --class
os $menuentry_id_option 'osprober-efi-2860-11F4' {
insmod part_gpt
insmod fat
set root='hd1,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt1
--hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1  2860-11F4
else
  search --no-floppy --fs-uuid --set=root 2860-11F4
fi
chainloader /efi/Microsoft/Boot/bootmgfw.efi
}
menuentry 'Mac OS X (32-bit) (on /dev/sdb2)' --class osx --class darwin
--class os $menuentry_id_option 'osprober-xnu-32-b59e47458fc06712'  {
insmod part_gpt
insmod hfsplus
set root='hd1,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2
--hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  b59e47458fc06712
else
  search --no-floppy --fs-uuid --set=root b59e47458fc06712
fi
        load_video
        set do_resume=0
        if [ /var/vm/sleepimage -nt10 / ]; then
           if xnu_resume /var/vm/sleepimage; then
             set do_resume=1
           fi
        fi
        if [ $do_resume = 0 ]; then
           xnu_uuid b59e47458fc06712 uuid
           if [ -f /Extra/DSDT.aml ]; then
              acpi -e /Extra/DSDT.aml
           fi
           if [ /kernelcache -nt /System/Library/Extensions ]; then
              xnu_kernel /kernelcache boot-uuid=${uuid} rd=*uuid
           elif [ -f /System/Library/Kernels/kernel ]; then
              xnu_kernel /System/Library/Kernels/kernel
boot-uuid=${uuid} rd=*uuid
              xnu_kextdir /System/Library/Extensions
           else
              xnu_kernel /mach_kernel boot-uuid=${uuid} rd=*uuid
              if [ /System/Library/Extensions.mkext -nt
/System/Library/Extensions ]; then
                xnu_mkext /System/Library/Extensions.mkext
              else
                xnu_kextdir /System/Library/Extensions
              fi
           fi
           if [ -f /Extra/Extensions.mkext ]; then
              xnu_mkext /Extra/Extensions.mkext
           fi
           if [ -d /Extra/Extensions ]; then
              xnu_kextdir /Extra/Extensions
           fi
           if [ -f /Extra/devprop.bin ]; then
              xnu_devprop_load /Extra/devprop.bin
           fi
           if [ -f /Extra/splash.jpg ]; then
              insmod jpeg
              xnu_splash /Extra/splash.jpg
           fi
           if [ -f /Extra/splash.png ]; then
              insmod png
              xnu_splash /Extra/splash.png
           fi
           if [ -f /Extra/splash.tga ]; then
              insmod tga
              xnu_splash /Extra/splash.tga
           fi
        fi
}
menuentry 'Mac OS X (64-bit) (on /dev/sdb2)' --class osx --class darwin
--class os $menuentry_id_option 'osprober-xnu-64-b59e47458fc06712'  {
insmod part_gpt
insmod hfsplus
set root='hd1,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2
--hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  b59e47458fc06712
else
  search --no-floppy --fs-uuid --set=root b59e47458fc06712
fi
        load_video
        set do_resume=0
        if [ /var/vm/sleepimage -nt10 / ]; then
           if xnu_resume /var/vm/sleepimage; then
             set do_resume=1
           fi
        fi
        if [ $do_resume = 0 ]; then
           xnu_uuid b59e47458fc06712 uuid
           if [ -f /Extra/DSDT.aml ]; then
              acpi -e /Extra/DSDT.aml
           fi
           if [ /kernelcache -nt /System/Library/Extensions ]; then
              xnu_kernel64 /kernelcache boot-uuid=${uuid} rd=*uuid
           elif [ -f /System/Library/Kernels/kernel ]; then
              xnu_kernel64 /System/Library/Kernels/kernel
boot-uuid=${uuid} rd=*uuid
              xnu_kextdir /System/Library/Extensions
           else
              xnu_kernel64 /mach_kernel boot-uuid=${uuid} rd=*uuid
              if [ /System/Library/Extensions.mkext -nt
/System/Library/Extensions ]; then
                xnu_mkext /System/Library/Extensions.mkext
              else
                xnu_kextdir /System/Library/Extensions
              fi
           fi
           if [ -f /Extra/Extensions.mkext ]; then
              xnu_mkext /Extra/Extensions.mkext
           fi
           if [ -d /Extra/Extensions ]; then
              xnu_kextdir /Extra/Extensions
           fi
           if [ -f /Extra/devprop.bin ]; then
              xnu_devprop_load /Extra/devprop.bin
           fi
           if [ -f /Extra/splash.jpg ]; then
              insmod jpeg
              xnu_splash /Extra/splash.jpg
           fi
           if [ -f /Extra/splash.png ]; then
              insmod png
              xnu_splash /Extra/splash.png
           fi
           if [ -f /Extra/splash.tga ]; then
              insmod tga
              xnu_splash /Extra/splash.tga
           fi
        fi
}
menuentry 'Mac OS X (32-bit) (on /dev/sdb7)' --class osx --class darwin
--class os $menuentry_id_option 'osprober-xnu-32-c6f7a1e48cda65e6'  {
insmod part_gpt
insmod hfsplus
set root='hd1,gpt7'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt7
--hint-efi=hd1,gpt7 --hint-baremetal=ahci1,gpt7  c6f7a1e48cda65e6
else
  search --no-floppy --fs-uuid --set=root c6f7a1e48cda65e6
fi
        load_video
        set do_resume=0
        if [ /var/vm/sleepimage -nt10 / ]; then
           if xnu_resume /var/vm/sleepimage; then
             set do_resume=1
           fi
        fi
        if [ $do_resume = 0 ]; then
           xnu_uuid c6f7a1e48cda65e6 uuid
           if [ -f /Extra/DSDT.aml ]; then
              acpi -e /Extra/DSDT.aml
           fi
           if [ /kernelcache -nt /System/Library/Extensions ]; then
              xnu_kernel /kernelcache boot-uuid=${uuid} rd=*uuid
           elif [ -f /System/Library/Kernels/kernel ]; then
              xnu_kernel /System/Library/Kernels/kernel
boot-uuid=${uuid} rd=*uuid
              xnu_kextdir /System/Library/Extensions
           else
              xnu_kernel /mach_kernel boot-uuid=${uuid} rd=*uuid
              if [ /System/Library/Extensions.mkext -nt
/System/Library/Extensions ]; then
                xnu_mkext /System/Library/Extensions.mkext
              else
                xnu_kextdir /System/Library/Extensions
              fi
           fi
           if [ -f /Extra/Extensions.mkext ]; then
              xnu_mkext /Extra/Extensions.mkext
           fi
           if [ -d /Extra/Extensions ]; then
              xnu_kextdir /Extra/Extensions
           fi
           if [ -f /Extra/devprop.bin ]; then
              xnu_devprop_load /Extra/devprop.bin
           fi
           if [ -f /Extra/splash.jpg ]; then
              insmod jpeg
              xnu_splash /Extra/splash.jpg
           fi
           if [ -f /Extra/splash.png ]; then
              insmod png
              xnu_splash /Extra/splash.png
           fi
           if [ -f /Extra/splash.tga ]; then
              insmod tga
              xnu_splash /Extra/splash.tga
           fi
        fi
}
menuentry 'Mac OS X (64-bit) (on /dev/sdb7)' --class osx --class darwin
--class os $menuentry_id_option 'osprober-xnu-64-c6f7a1e48cda65e6'  {
insmod part_gpt
insmod hfsplus
set root='hd1,gpt7'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt7
--hint-efi=hd1,gpt7 --hint-baremetal=ahci1,gpt7  c6f7a1e48cda65e6
else
  search --no-floppy --fs-uuid --set=root c6f7a1e48cda65e6
fi
        load_video
        set do_resume=0
        if [ /var/vm/sleepimage -nt10 / ]; then
           if xnu_resume /var/vm/sleepimage; then
             set do_resume=1
           fi
        fi
        if [ $do_resume = 0 ]; then
           xnu_uuid c6f7a1e48cda65e6 uuid
           if [ -f /Extra/DSDT.aml ]; then
              acpi -e /Extra/DSDT.aml
           fi
           if [ /kernelcache -nt /System/Library/Extensions ]; then
              xnu_kernel64 /kernelcache boot-uuid=${uuid} rd=*uuid
           elif [ -f /System/Library/Kernels/kernel ]; then
              xnu_kernel64 /System/Library/Kernels/kernel
boot-uuid=${uuid} rd=*uuid
              xnu_kextdir /System/Library/Extensions
           else
              xnu_kernel64 /mach_kernel boot-uuid=${uuid} rd=*uuid
              if [ /System/Library/Extensions.mkext -nt
/System/Library/Extensions ]; then
                xnu_mkext /System/Library/Extensions.mkext
              else
                xnu_kextdir /System/Library/Extensions
              fi
           fi
           if [ -f /Extra/Extensions.mkext ]; then
              xnu_mkext /Extra/Extensions.mkext
           fi
           if [ -d /Extra/Extensions ]; then
              xnu_kextdir /Extra/Extensions
           fi
           if [ -f /Extra/devprop.bin ]; then
              xnu_devprop_load /Extra/devprop.bin
           fi
           if [ -f /Extra/splash.jpg ]; then
              insmod jpeg
              xnu_splash /Extra/splash.jpg
           fi
           if [ -f /Extra/splash.png ]; then
              insmod png
              xnu_splash /Extra/splash.png
           fi
           if [ -f /Extra/splash.tga ]; then
              insmod tga
              xnu_splash /Extra/splash.tga
           fi
        fi
}
menuentry 'Windows Boot Manager (on /dev/sdc2)' --class windows --class
os $menuentry_id_option 'osprober-efi-897A-4622' {
insmod part_gpt
insmod fat
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2
--hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2  897A-4622
else
  search --no-floppy --fs-uuid --set=root 897A-4622
fi
chainloader /efi/Microsoft/Boot/bootmgfw.efi
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
if [ "$grub_platform" = "efi" ]; then
fwsetup --is-supported
if [ "$?" = 0 ]; then
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
fi
fi
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/35_fwupd ###
### END /etc/grub.d/35_fwupd ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply
type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###
********************* END /boot/grub/grub.cfg

********************* BEGIN /proc/mdstat
cat: /proc/mdstat: No such file or directory
********************* END /proc/mdstat

********************* BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Nov 27 11:13
ata-PNY_CS2230_500GB_SSD_PNY24382409180100176 -> ../../sdc
lrwxrwxrwx 1 root root 10 Nov 27 11:13
ata-PNY_CS2230_500GB_SSD_PNY24382409180100176-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 11 Nov 27 11:13
ata-PNY_CS2230_500GB_SSD_PNY24382409180100176-part10 -> ../../sdc10
lrwxrwxrwx 1 root root 11 Nov 27 11:13
ata-PNY_CS2230_500GB_SSD_PNY24382409180100176-part11 -> ../../sdc11
lrwxrwxrwx 1 root root 10 Nov 27 11:13
ata-PNY_CS2230_500GB_SSD_PNY24382409180100176-part2 -> ../../sdc2
lrwxrwxrwx 1 root root 10 Nov 27 11:13
ata-PNY_CS2230_500GB_SSD_PNY24382409180100176-part3 -> ../../sdc3
lrwxrwxrwx 1 root root 10 Nov 27 11:13
ata-PNY_CS2230_500GB_SSD_PNY24382409180100176-part4 -> ../../sdc4
lrwxrwxrwx 1 root root 10 Nov 27 11:13
ata-PNY_CS2230_500GB_SSD_PNY24382409180100176-part5 -> ../../sdc5
lrwxrwxrwx 1 root root 10 Nov 27 11:13
ata-PNY_CS2230_500GB_SSD_PNY24382409180100176-part6 -> ../../sdc6
lrwxrwxrwx 1 root root 10 Nov 27 11:13
ata-PNY_CS2230_500GB_SSD_PNY24382409180100176-part7 -> ../../sdc7
lrwxrwxrwx 1 root root 10 Nov 27 11:13
ata-PNY_CS2230_500GB_SSD_PNY24382409180100176-part8 -> ../../sdc8
lrwxrwxrwx 1 root root 10 Nov 27 11:13
ata-PNY_CS2230_500GB_SSD_PNY24382409180100176-part9 -> ../../sdc9
lrwxrwxrwx 1 root root  9 Nov 27 11:13
ata-Samsung_SSD_850_EVO_250GB_S2R6NX0JA34146X -> ../../sda
lrwxrwxrwx 1 root root 10 Nov 27 11:13
ata-Samsung_SSD_850_EVO_250GB_S2R6NX0JA34146X-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Nov 27 11:13
ata-Samsung_SSD_850_EVO_250GB_S2R6NX0JA34146X-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Nov 27 11:13
ata-Samsung_SSD_850_EVO_250GB_S2R6NX0JA34146X-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Nov 27 11:13
ata-Samsung_SSD_850_EVO_250GB_S2R6NX0JA34146X-part4 -> ../../sda4
lrwxrwxrwx 1 root root  9 Nov 27 11:13
ata-WDC_WD6400AAKS-40H2B0_WD-WMASY5663037 -> ../../sdb
lrwxrwxrwx 1 root root 10 Nov 27 11:13
ata-WDC_WD6400AAKS-40H2B0_WD-WMASY5663037-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Nov 27 11:13
ata-WDC_WD6400AAKS-40H2B0_WD-WMASY5663037-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Nov 27 11:13
ata-WDC_WD6400AAKS-40H2B0_WD-WMASY5663037-part3 -> ../../sdb3
lrwxrwxrwx 1 root root 10 Nov 27 11:13
ata-WDC_WD6400AAKS-40H2B0_WD-WMASY5663037-part4 -> ../../sdb4
lrwxrwxrwx 1 root root 10 Nov 27 11:13
ata-WDC_WD6400AAKS-40H2B0_WD-WMASY5663037-part5 -> ../../sdb5
lrwxrwxrwx 1 root root 10 Nov 27 11:13
ata-WDC_WD6400AAKS-40H2B0_WD-WMASY5663037-part6 -> ../../sdb6
lrwxrwxrwx 1 root root 10 Nov 27 11:13
ata-WDC_WD6400AAKS-40H2B0_WD-WMASY5663037-part7 -> ../../sdb7
lrwxrwxrwx 1 root root  9 Nov 27 11:13
usb-Realtek_RTL9210B-CG_012345678906-0:0 -> ../../sdc
lrwxrwxrwx 1 root root 10 Nov 27 11:13
usb-Realtek_RTL9210B-CG_012345678906-0:0-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 11 Nov 27 11:13
usb-Realtek_RTL9210B-CG_012345678906-0:0-part10 -> ../../sdc10
lrwxrwxrwx 1 root root 11 Nov 27 11:13
usb-Realtek_RTL9210B-CG_012345678906-0:0-part11 -> ../../sdc11
lrwxrwxrwx 1 root root 10 Nov 27 11:13
usb-Realtek_RTL9210B-CG_012345678906-0:0-part2 -> ../../sdc2
lrwxrwxrwx 1 root root 10 Nov 27 11:13
usb-Realtek_RTL9210B-CG_012345678906-0:0-part3 -> ../../sdc3
lrwxrwxrwx 1 root root 10 Nov 27 11:13
usb-Realtek_RTL9210B-CG_012345678906-0:0-part4 -> ../../sdc4
lrwxrwxrwx 1 root root 10 Nov 27 11:13
usb-Realtek_RTL9210B-CG_012345678906-0:0-part5 -> ../../sdc5
lrwxrwxrwx 1 root root 10 Nov 27 11:13
usb-Realtek_RTL9210B-CG_012345678906-0:0-part6 -> ../../sdc6
lrwxrwxrwx 1 root root 10 Nov 27 11:13
usb-Realtek_RTL9210B-CG_012345678906-0:0-part7 -> ../../sdc7
lrwxrwxrwx 1 root root 10 Nov 27 11:13
usb-Realtek_RTL9210B-CG_012345678906-0:0-part8 -> ../../sdc8
lrwxrwxrwx 1 root root 10 Nov 27 11:13
usb-Realtek_RTL9210B-CG_012345678906-0:0-part9 -> ../../sdc9
lrwxrwxrwx 1 root root  9 Nov 27 11:13 wwn-0x50014ee00102f531 -> ../../sdb
lrwxrwxrwx 1 root root 10 Nov 27 11:13 wwn-0x50014ee00102f531-part1 ->
../../sdb1
lrwxrwxrwx 1 root root 10 Nov 27 11:13 wwn-0x50014ee00102f531-part2 ->
../../sdb2
lrwxrwxrwx 1 root root 10 Nov 27 11:13 wwn-0x50014ee00102f531-part3 ->
../../sdb3
lrwxrwxrwx 1 root root 10 Nov 27 11:13 wwn-0x50014ee00102f531-part4 ->
../../sdb4
lrwxrwxrwx 1 root root 10 Nov 27 11:13 wwn-0x50014ee00102f531-part5 ->
../../sdb5
lrwxrwxrwx 1 root root 10 Nov 27 11:13 wwn-0x50014ee00102f531-part6 ->
../../sdb6
lrwxrwxrwx 1 root root 10 Nov 27 11:13 wwn-0x50014ee00102f531-part7 ->
../../sdb7
lrwxrwxrwx 1 root root  9 Nov 27 11:13 wwn-0x5002538d425bdef5 -> ../../sda
lrwxrwxrwx 1 root root 10 Nov 27 11:13 wwn-0x5002538d425bdef5-part1 ->
../../sda1
lrwxrwxrwx 1 root root 10 Nov 27 11:13 wwn-0x5002538d425bdef5-part2 ->
../../sda2
lrwxrwxrwx 1 root root 10 Nov 27 11:13 wwn-0x5002538d425bdef5-part3 ->
../../sda3
lrwxrwxrwx 1 root root 10 Nov 27 11:13 wwn-0x5002538d425bdef5-part4 ->
../../sda4
********************* END /dev/disk/by-id

********************* BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Nov 27 11:13
088e44e9-0505-3249-af3f-0a87e2bc51ac -> ../../sdb2
lrwxrwxrwx 1 root root 10 Nov 27 11:13 2860-11F4 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Nov 27 11:13 423D5D323728495C -> ../../sdb6
lrwxrwxrwx 1 root root 10 Nov 27 11:13 44BC2AD7BC2AC372 -> ../../sdb4
lrwxrwxrwx 1 root root 10 Nov 27 11:13
462f57b4-136e-4c18-8c55-e4bc59cfb7aa -> ../../sda4
lrwxrwxrwx 1 root root 11 Nov 27 11:13
4d963560-852e-4fe3-b77d-db539d1c7586 -> ../../sdc11
lrwxrwxrwx 1 root root 10 Nov 27 11:13 5AAC6A67AC6A3E1F -> ../../sdc6
lrwxrwxrwx 1 root root 10 Nov 27 11:13
64646339-842d-3cb1-a2e1-495051322f90 -> ../../sdb5
lrwxrwxrwx 1 root root 10 Nov 27 11:13 67E3-17ED -> ../../sda1
lrwxrwxrwx 1 root root 10 Nov 27 11:13 6C63-3334 -> ../../sdc8
lrwxrwxrwx 1 root root 10 Nov 27 11:13 6F4B-87E6 -> ../../sdc4
lrwxrwxrwx 1 root root 10 Nov 27 11:13 6F73-FC35 -> ../../sdc9
lrwxrwxrwx 1 root root 10 Nov 27 11:13
70463210-18fc-4a31-bd21-c4b3cfcc969c -> ../../sdb3
lrwxrwxrwx 1 root root 10 Nov 27 11:13 72AC-A4E3 -> ../../sdc3
lrwxrwxrwx 1 root root 10 Nov 27 11:13 897A-4622 -> ../../sdc2
lrwxrwxrwx 1 root root 10 Nov 27 11:13
9895d523-9a3e-3807-8b02-093056290d36 -> ../../sda3
lrwxrwxrwx 1 root root 10 Nov 27 11:13 CE5D-0454 -> ../../sdc7
lrwxrwxrwx 1 root root 11 Nov 27 11:13 D5E3-3588 -> ../../sdc10
lrwxrwxrwx 1 root root 10 Nov 27 11:13 ECAE8AA4AE8A66C4 -> ../../sdc5
lrwxrwxrwx 1 root root 10 Nov 27 11:13 F107-2727 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Nov 27 11:13
ab51b673-0143-375c-ab03-1e454d23ddc5 -> ../../sda2
lrwxrwxrwx 1 root root 10 Nov 27 11:13
b62dfc14-2019-332c-a144-56a2eabdd316 -> ../../sdb7
********************* END /dev/disk/by-uuid

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.11.9-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE
not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages grub-efi-amd64 depends on:
ii  debconf [debconf-2.0]  1.5.87
ii  grub-efi-amd64-bin     2.12-5
ii  grub2-common           2.12-5
ii  ucf                    3.0043+nmu1

grub-efi-amd64 recommends no packages.

grub-efi-amd64 suggests no packages.

-- debconf information:

  • grub2/gnumach_cmdline: tsc=unstable
  • grub2/enable_os_prober: true

  grub2/kfreebsd_cmdline_default: quiet

  • grub2/linux_cmdline_default: quiet

  grub2/force_efi_extra_removable: false

  • grub2/linux_cmdline: tsc=unstable

  grub2/kfreebsd_cmdline:
  grub2/update_nvram: true


tenzap <tenzap>
Thu 24 Oct 2024 02:48:24 PM UTC, comment #3: 
eqagunn <eqagunn>
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 tenzap (Posted a comment)
  • -email is unavailable- added by eqagunn (Posted a comment)
  • -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.14-3b9d.
    Corresponding source code