通过 DisplayPort 的 GRUB 黑屏

通过 DisplayPort 的 GRUB 黑屏

我的电脑规格:

  • 主板:华硕Maximus V Gene
  • CPU:英特尔酷睿i7 3770
  • GPU:nVidia GeForce GTX 780 Ti
  • 显示器:三星 C27JG50QQI 27" 144Hz

操作系统:

  • Arch Linux 5.3.7-arch1-1-ARCH

我必须使用 DisplayPort 连接,因为我的 GPU 只能通过此连接提供 144 Hz 频率。

我的问题是,在操作系统启动之前我无法在监视器上看到任何内容。但是当 GRUB 加载时,我可以看到带有背光的黑屏。显示器工作(电源指示灯不闪烁),但没有显示任何内容。

当操作系统加载时,一切都运行完美。如果我尝试通过 HDMI 连接第二台显示器,DP 显示器将休眠(电源 LED 闪烁),直到操作系统启动;在第二个(HDMI)显示器上我可以看到一切:BIOS、GRUB 等。

仅当通过 DisplayPort 连接时,该问题才会出现。任何其他 GPU 接口都可以正常工作。

BIOS 模式同时启用 UEFI 和 Legacy。主板和 GPU BIOS 是默认的,我不想更新它们。我不需要定期更改 BIOS 设置,但我想查看 GRUB 菜单。

如何尝试配置 GRUB 来加载任何驱动程序或特殊模式来解决此问题?

这是我当前的 GRUB 配置:

#
# 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 ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  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_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos5' --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  64927bd4-fea7-4e9c-9a30-18bd16b6f52a
else
  search --no-floppy --fs-uuid --set=root 64927bd4-fea7-4e9c-9a30-18bd16b6f52a
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=en_US
  insmod gettext
fi
terminal_input console
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos5' --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  64927bd4-fea7-4e9c-9a30-18bd16b6f52a
else
  search --no-floppy --fs-uuid --set=root 64927bd4-fea7-4e9c-9a30-18bd16b6f52a
fi
insmod gfxmenu
loadfont ($root)/boot/grub/themes/Vimix/unifont-regular-16.pf2
insmod jpeg
insmod png
set theme=($root)/boot/grub/themes/Vimix/theme.txt
export theme
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
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-64927bd4-fea7-4e9c-9a30-18bd16b6f52a' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos5'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos5' --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  64927bd4-fea7-4e9c-9a30-18bd16b6f52a
    else
      search --no-floppy --fs-uuid --set=root 64927bd4-fea7-4e9c-9a30-18bd16b6f52a
    fi
    echo    'Loading Linux linux ...'
    linux   /boot/vmlinuz-linux root=UUID=64927bd4-fea7-4e9c-9a30-18bd16b6f52a rw  quiet video=DP-1:e
    echo    'Loading initial ramdisk ...'
    initrd  /boot/intel-ucode.img /boot/initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-64927bd4-fea7-4e9c-9a30-18bd16b6f52a' {
    menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-64927bd4-fea7-4e9c-9a30-18bd16b6f52a' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos5'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos5' --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  64927bd4-fea7-4e9c-9a30-18bd16b6f52a
        else
          search --no-floppy --fs-uuid --set=root 64927bd4-fea7-4e9c-9a30-18bd16b6f52a
        fi
        echo    'Loading Linux linux ...'
        linux   /boot/vmlinuz-linux root=UUID=64927bd4-fea7-4e9c-9a30-18bd16b6f52a rw  quiet video=DP-1:e
        echo    'Loading initial ramdisk ...'
        initrd  /boot/intel-ucode.img /boot/initramfs-linux.img
    }
    menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-64927bd4-fea7-4e9c-9a30-18bd16b6f52a' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos5'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos5' --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  64927bd4-fea7-4e9c-9a30-18bd16b6f52a
        else
          search --no-floppy --fs-uuid --set=root 64927bd4-fea7-4e9c-9a30-18bd16b6f52a
        fi
        echo    'Loading Linux linux ...'
        linux   /boot/vmlinuz-linux root=UUID=64927bd4-fea7-4e9c-9a30-18bd16b6f52a rw  quiet video=DP-1:e
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initramfs-linux-fallback.img
    }
}

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

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


### 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.
menuentry "Windows 10" --class windows --class os {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set E2D01551D0152CF3
chainloader +1
}
### 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 ###

答案1

不幸的是,GPU BIOS 有一个内置的优先级顺序,它会探测输出连接器,以便在启动时找到“主”显示器。第一个连接的显示器将收到启动消息,而任何其他显示器将不会收到图像,直到加载操作系统并且其 GPU 驱动程序激活其他连接器。

更改优先级顺序需要更改 GPU BIOS。显然,一些 GPU 供应商过去有时会根据要求定制 BIOS 版本,因为所需的更改似乎不是很复杂。

但 DisplayPort 连接的显示器被唤醒这一事实似乎表明它的存在至少检测正确。 144 Hz 功能可能会混淆 BIOS,并且无法配置 DisplayPort 输出以获取正确的信号。

第一批 144 Hz 平板电脑显示器似乎已于 2012 年上市; GeForce 700系列仅仅一年后就发布了,所以我认为当时支持144 Hz的显示器还相当罕见,并且700系列的GPU BIOS很可能在144 Hz支持方面存在一些错误。

假设,向 GRUB 添加驱动程序就像将驱动程序模块(我们称之为video_nvidia.mod)拖放到 GRUB 中/boot/grub/i386-pc,添加insmod video_nvidia到 GRUB 配置中,然后添加该模块可能支持的任何配置设置一样简单。但问题是,据我所知,还没有人为GRUB制作这样的驱动程序!

答案2

我偶然发现了这个奇怪的问题,经过一天的谷歌搜索答案,我自己找到了一个解决方法,即在我的 Windows 操作系统上启动后更新 GPU 固件,并安装适用于 Display Port 1.3 和 1.4 的 NVIDIA 图形固件更新工具。

它可以在以下位置下载:https://www.nvidia.com/en-us/drivers/nv-uefi-update-x64/。在 Windows 上安装它,下次重新启动后,grub 引导加载程序将显示以及 BIOS 启动屏幕。

答案3

我也有同样的问题VGA compatible controller: Intel Corporation IvyBridge GT2 [HD Graphics 4000]。我无法进入 BIOS,并且在 GRUB 阶段看不到任何内容。更改 grub 配置中的任何显示选项不会改变任何内容。

相关内容