help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Choosing grub2 video modes


From: Alex Regan
Subject: Re: Choosing grub2 video modes
Date: Wed, 10 Jun 2015 18:49:28 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

Hi,

I've tried setting GRUB_GFXMODE=640x480 in /etc/default/grub then
recreating grub.cfg, but that also doesn't appear to work.


Set also gfxpayload_linux to resolution. Either through "set
gfxpayload="or GRUB_GFXPAYLOAD_LINUX

Perhaps I'm misunderstanding what that's supposed to do, because that
doesn't work either. I had already tried "set gfxpayload=800x600" and
have now also tried GRUB_GFXPAYLOAD_LINUX=800x600 and regenerated the
grub.cfg, and that also doesn't work.

Set *both* gfxmode and gfxpayload to resolution?

Are you suggesting that I do both of these, or are you questioning whether I'm doing both?

This is my /etc/sysconfig/grub:

GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
#GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rd.md.uuid=bde3f430:15091bce:874aaa0e:e48f341a rd.md.uuid=921fb4bb:6329d29b:734b1584:7f4d3dba "
GRUB_DISABLE_RECOVERY="true"
GRUB_GFXMODE=800x600
GRUB_GFXPAYLOAD_LINUX=800x600

I added GRUB_GFXPAYLOAD_LINUX when just GRUB_GFXMODE alone didn't work.

I've also edited grub.cfg manually and added "set gfxpayload=640x480":

menuentry 'Fedora (4.0.4-303.fc22.x86_64+debug) 22 (Twenty Two)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.0.4-303.fc22.x86_64+debug-advanced-f9576b28-3d0b-425a-9a4b-d371df2216cc' {
        load_video
        set gfxpayload=640x480
        insmod gzio
        insmod part_msdos
        insmod part_msdos
        insmod part_msdos
        insmod part_msdos
        ...

Try commenting out GRUB_TERMINAL_INPUT=console

This made no difference.

And if you use any theme, you should comment out things like these
GRUB_COLOR_NORMAL="light-gray/black"
GRUB_COLOR_HIGHLIGHT="green/black"

I'm not using any theme here.

I've included my whole grub.cfg here, in hopes that helps.

Thanks,
Alex

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

### BEGIN /etc/grub.d/00_header ###
set pager=1

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="${saved_entry}"
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 part_msdos
insmod part_msdos
insmod part_msdos
insmod diskfilter
insmod mdraid1x
insmod raid5rec
insmod ext2
set root='mduuid/bde3f43015091bce874aaa0ee48f341a'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='mduuid/bde3f43015091bce874aaa0ee48f341a' f9576b28-3d0b-425a-9a4b-d371df2216cc
else
search --no-floppy --fs-uuid --set=root f9576b28-3d0b-425a-9a4b-d371df2216cc
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
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 'Fedora (4.0.4-303.fc22.x86_64) 22 (Twenty Two)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.0.4-303.fc22.x86_64-advanced-f9576b28-3d0b-425a-9a4b-d371df2216cc' {
        load_video
        set gfxpayload=640x480
        insmod gzio
        insmod part_msdos
        insmod part_msdos
        insmod part_msdos
        insmod part_msdos
        insmod diskfilter
        insmod mdraid1x
        insmod ext2
        set root='mduuid/921fb4bb6329d29b734b15847f4d3dba'
        if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='mduuid/921fb4bb6329d29b734b15847f4d3dba' 7355ab60-de58-4677-ae1b-7d16c86ec999
        else
search --no-floppy --fs-uuid --set=root 7355ab60-de58-4677-ae1b-7d16c86ec999
        fi
linux16 /vmlinuz-4.0.4-303.fc22.x86_64 root=UUID=f9576b28-3d0b-425a-9a4b-d371df2216cc ro rd.md.uuid=bde3f430:15091bce:874aaa0e:e48f341a rd.md.uuid=921fb4bb:6329d29b:734b1584:7f4d3dba
        initrd16 /initramfs-4.0.4-303.fc22.x86_64.img
}
menuentry 'Fedora (4.0.4-303.fc22.x86_64+debug) 22 (Twenty Two)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.0.4-303.fc22.x86_64+debug-advanced-f9576b28-3d0b-425a-9a4b-d371df2216cc' {
        load_video
        set gfxpayload=640x480
        insmod gzio
        insmod part_msdos
        insmod part_msdos
        insmod part_msdos
        insmod part_msdos
        insmod diskfilter
        insmod mdraid1x
        insmod ext2
        set root='mduuid/921fb4bb6329d29b734b15847f4d3dba'
        if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='mduuid/921fb4bb6329d29b734b15847f4d3dba' 7355ab60-de58-4677-ae1b-7d16c86ec999
        else
search --no-floppy --fs-uuid --set=root 7355ab60-de58-4677-ae1b-7d16c86ec999
        fi
linux16 /vmlinuz-4.0.4-303.fc22.x86_64+debug root=UUID=f9576b28-3d0b-425a-9a4b-d371df2216cc ro rd.md.uuid=bde3f430:15091bce:874aaa0e:e48f341a rd.md.uuid=921fb4bb:6329d29b:734b1584:7f4d3dba
        initrd16 /initramfs-4.0.4-303.fc22.x86_64+debug.img
}
menuentry 'Fedora (0-rescue-743d673215404852b4e2a2ed8a48e825) 22 (Twenty Two)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-743d673215404852b4e2a2ed8a48e825-advanced-f9576b28-3d0b-425a-9a4b-d371df2216cc' {
        load_video
        set gfxpayload=640x480
        insmod gzio
        insmod part_msdos
        insmod part_msdos
        insmod part_msdos
        insmod part_msdos
        insmod diskfilter
        insmod mdraid1x
        insmod ext2
        set root='mduuid/921fb4bb6329d29b734b15847f4d3dba'
        if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='mduuid/921fb4bb6329d29b734b15847f4d3dba' 7355ab60-de58-4677-ae1b-7d16c86ec999
        else
search --no-floppy --fs-uuid --set=root 7355ab60-de58-4677-ae1b-7d16c86ec999
        fi
linux16 /vmlinuz-0-rescue-743d673215404852b4e2a2ed8a48e825 root=UUID=f9576b28-3d0b-425a-9a4b-d371df2216cc ro rd.md.uuid=bde3f430:15091bce:874aaa0e:e48f341a rd.md.uuid=921fb4bb:6329d29b:734b1584:7f4d3dba
        initrd16 /initramfs-0-rescue-743d673215404852b4e2a2ed8a48e825.img
}
if [ "x$default" = 'Fedora (4.0.4-303.fc22.x86_64) 22 (Twenty Two)' ]; then default='Advanced options for Fedora>Fedora (4.0.4-303.fc22.x86_64) 22 (Twenty Two)'; fi;
### END /etc/grub.d/10_linux ###

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

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

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

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### 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 ###




reply via email to

[Prev in Thread] Current Thread [Next in Thread]