help-grub
[Top][All Lists]
Advanced

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

Grub Console Font


From: SMF Forum 1
Subject: Grub Console Font
Date: Tue, 27 Feb 2024 12:07:30 +0000
User-agent: Evolution 3.46.4

I am having trouble with getting an acceptable grub boot screen I don't
seem to be able to get the fonts right. The graphics card in the
machine is an AMD A8-5600K APU with Radeon(tm) HD Graphics and is VBE
3.0 compliant the best VBE resolution is 1600x1200 I think (See Grub1-
R.jpg and Grub2-R.jpg). The boot menu is very difficult to read but the
entries are all viable and the different OS's boot to 1920x1080@60 (the
display is a recent Samsung TV its preferred resolution is
1920x1080i@50 but linux does not like that and I get a scrambled
display so I force the 1920x1080@60). Looking at the boot screen
(Grub3-R.jpg) the background is acceptable (1600x1200 ?) but the text
is difficult to read and gives me the impression that the console font
is no better that 640x480 resolution.
The version of grub has been updated to 2.12 and I am using the latest
grub-customizer from github. This machine is probably the oldest I have
in use (2015?) I have no problems with my other machines their grub
boot screens look great on them.

Below is the grub.cfg file from the machine in question and to be
honest it is looking a little worst for wear from all my attempts to
improve things.

Ignore the EFI entry in the grub.cfg file the machine is not EFI
compliant and the entry will be removed once I get the fonts sorted.

Any help or clarifications would be gratefully received.

#
# 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
  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="GNU/Linux, with Linux 6.1.54"
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,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --
hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  a2cd56d4-3cc8-4396-
bc03-fb57e28f2f57
else
  search --no-floppy --fs-uuid --set=root a2cd56d4-3cc8-4396-bc03-
fb57e28f2f57
fi
    font="/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=1920x1080@60
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --
hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  a2cd56d4-3cc8-4396-
bc03-fb57e28f2f57
else
  search --no-floppy --fs-uuid --set=root a2cd56d4-3cc8-4396-bc03-
fb57e28f2f57
fi
insmod gfxmenu
loadfont ($root)/grub/themes/Ariel/dejavu_10.pf2
loadfont ($root)/grub/themes/Ariel/dejavu_12.pf2
loadfont ($root)/grub/themes/Ariel/dejavu_14.pf2
loadfont ($root)/grub/themes/Ariel/dejavu_16.pf2
loadfont ($root)/grub/themes/Ariel/dejavu_bold_14.pf2
insmod png
set theme=($root)/grub/themes/Ariel/theme.txt
export theme
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=30
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=30
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux_proxy ###



if [ "x$default" = 'GNU/Linux, with Linux 6.1.54' ]; then
default='Advanced options for GNU/Linux>GNU/Linux, with Linux 6.1.54';
fi;
### END /etc/grub.d/10_linux_proxy ###

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

### BEGIN /etc/grub.d/40_custom_proxy ###
menuentry "GNU/Linux, with Linux 6.1.54" --class gnu-linux --class gnu
--class os $menuentry_id_option 'gnulinux-6.4.5-advanced-4a7c8ca1-90ff-
46fb-86eb-1a929777d43f' {
                load_video
                insmod part_msdos
                insmod gzio
                insmod ext2
                insmod video_fb
                insmod video
                insmod vbe
                insmod vga
                echo    'Loading Linux 6.1.54 ...'
                linux    /vmlinuz-6.1.54 ro root=/dev/sdb4
mousedev.tap_time=0 Once_param=1 video=radeon:modeset=1 video=HDMI-A-
1:1920x1080@60
        
        
}
### END /etc/grub.d/40_custom_proxy ###

### BEGIN /etc/grub.d/44_custom_proxy ###
menuentry "GNU/Linux, with Linux Recovery" --class gnu-linux --class
gnu --class os $menuentry_id_option 'gnulinux-6.3.11-recovery-bc3c96eb-
0e5e-4133-846c-5cdc4cef927f' {
                load_video
                insmod part_msdos
                insmod gzio
                insmod ext2
                echo    'Loading Linux 6.1.25 ...'
                linux    /vmlinuz-6.1.25 ro root=/dev/sdb4
mousedev.tap_time=0 Once_param=1 video=radeon:modeset=1: video=HDMI-A-
1:1920x1080@60
}
### END /etc/grub.d/44_custom_proxy ###

### BEGIN /etc/grub.d/45_custom_proxy ###
menuentry "Windows 10"{
        insmod part_msdos
        insmod chain
        insmod ntfs
        insmod fat
        set root='(hd1,1)'
        chainloader +1
}
menuentry "Repair"{
        loopback loop /grub/repair.iso
        echo    'Loading Repair ISO ...'
        linux (loop)/isolinux/lfskernel_R64 initrd=initrd.xz
reboot=bios video=radeon:modeset=1 video=HDMI-A-1:1920x1080@60
isorepair=sda1:/grub/repair.iso Once_param=1 
        initrd (loop)/isolinux/initrd.xz
}
### END /etc/grub.d/45_custom_proxy ###

### BEGIN /etc/grub.d/46_custom_proxy ###
menuentry "Memtest"{
        linux16 /grub/memtest86+-5.31b.bin
}
### END /etc/grub.d/46_custom_proxy ###

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

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

### BEGIN /etc/grub.d/49_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/49_uefi-firmware ###

### BEGIN /etc/grub.d/50_custom_proxy ###

Attachment: Grub1-R.jpg
Description: JPEG image

Attachment: Grub2-R.jpg
Description: JPEG image

Attachment: Grub3-R.jpg
Description: JPEG image


reply via email to

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