need grub experts

stan stanl-fedorauser at vfemail.net
Tue Jun 30 14:29:09 UTC 2015


On Mon, 29 Jun 2015 22:29:40 +0200
François Patte <francois.patte at mi.parisdescartes.fr> wrote:
> I cannot get a correct resolution for grub. Here is
> my /etc/defaul/grub:
> 
> <--------------------
> GRUB_TIMEOUT="10"
> GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
> GRUB_DEFAULT="0"
> #GRUB_SAVEDEFAULT="true"
> GRUB_DISABLE_SUBMENU="true"
> GRUB_TERMINAL_OUTPUT="gfxterm"
> GRUB_CMDLINE_LINUX="rd.md.uuid=81f15cb5:748fb5c1:42bef1a6:1ea1ce47
> rd.lvm.lv=fedora/usr rd.md.uuid=4a28174a:f38b4938:233f85f7:6ce585a8
> rd.lvm.lv=fedora/racine rd.md.uuid=9f878179:a58f5c78:f645e22e:d7d3c896
> rd.lvm.lv=systeme/swap rhgb quiet"
> GRUB_DISABLE_RECOVERY="true"
> GRUB_GFXMODE="1280x1024x32"
> GRUB_GFXPAYLOAD_LINUX="keep"
> GRUB_BACKGROUND="/boot/grub2/themes/system/fireworks.png"
> 
> #GRUB_THEME="/boot/grub2/themes/system/theme.txt"
> export GRUB_COLOR_NORMAL="light-gray/black"
> export GRUB_COLOR_HIGHLIGHT="magenta/black"
> GRUB_FONT="/boot/grub2/unicode.pf2"
> <-------------------------
> 
> So, as far as I read the grub doc, because of
> GRUB_GFXPAYLOAD_LINUX="keep"
> 
> It is suppose to apply the 1280x1024 resolution to the console during
> the boot. But it is not the case! I get this resolution only with the
> grub first screen: fireworks image and the entry list.
> 
> What is missing in my config?
> 
> Strangely, I have a "custom file": /etc/grub.d/40_custom, to boot a
> debian install:
> 
> <-------------------------------
>   menuentry 'Debian GNU/Linux, avec Linux 3.2.0-4-amd64' --class
> debian --class gnu-linux --class gnu --class os {
>         load_video
>         set gfxpayload=keep
>         insmod gzio
>         insmod mdraid09
>         insmod part_msdos
>         insmod part_msdos
>         insmod ext2
>         set root='(mduuid/eb8b5efe5a8f9369e940a0f383d63ad1)'
>         search --no-floppy --fs-uuid --set=root
> 17e0b155-4d77-4769-b568-723329c5f656
>         echo    'Chargement de Linux 3.2.0-4-amd64 ...'
>         linux   /vmlinuz-3.2.0-4-amd64
> root=/dev/mapper/debian-deb--racine ro  quiet
>         echo    'Chargement du disque mémoire initial ...'
>         initrd  /initrd.img-3.2.0-4-amd64
> }
> <-----------------------------------------
> 
> In that case, the "set gfxpayload=keep" instruction succeeds to give
> the correct resolution during the debian boot.
> 
> 
> Thanks for any help and suggestion.

It works for me without any of that in /etc/grub/default, though I used
to have it there.

$ cat /etc/default/grub
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
#GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=uneaf CONSOLEBLANK=60"

Here is a boot stanza from my /boot/grub2/grub.cfg, generated with
grub2-mkconfig -o grub.cfg
Looks a lot like the Debian stanza that works.

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Fedora' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-simple-f908bebb-66db-48db-a429-fe716bf67592' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 --hint='hd0,gpt1'  d56ad7bb-4913-45b7-a56e-562e6275b995
        else
          search --no-floppy --fs-uuid --set=root d56ad7bb-4913-45b7-a56e-562e6275b995
        fi
        linux16 /vmlinuz-4.2.0-0.rc0.git1.1.20150627.fc21.x86_64 root=UUID=f908bebb-66db-48db-a429-fe716bf67592 ro SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=uneaf CONSOLEBLANK=60 
        initrd16 /custom-4.2.0-0.rc0.git1.1.20150627.fc21.x86_64.img
}

Incidentally, though the consoleblank=60 is supposed to set the timeout
on virtual consoles to 60 minutes, it doesn't work.  I still have to
set it manually after logging in.


More information about the users mailing list