Boot Experience - HIDPI and Fractional Scaling

While technically it is a Grub shortcoming, imo this bug report should be filed at Fedora since they are deciding how users experience the boot process. It’s up to them to decide if they want to use grub, and in that case how to deal with this font issue.

I wouldn’t get your hopes up, that ticket was already filed 4.5 years ago with no action thusfar. Grub is notoriously slow with modernizing their code…

https://bugzilla.redhat.com/show_bug.cgi?id=1964673

The upstream bug was filed based on the bugzilla report.

Has anyone tried adjusting the font size for this?

1 Like

I believe the font size can only be adjusted by generating and placing a larger bitmap font in the bootloader via grub2-mkfont.

Just tested, and GRUB_GFXMODE=auto does equate to GRUB_GFXMODE=2560x1440 for me (my native display resolution), so it’s functioning as it should. This means that by default, Red Hat must merely set GRUB_GFXMODE as 1080x720 (or similar). All that remains is to have it scale.

It doesn’t. I forgot to rebuild GRUB. I still have to hard-code GRUB_GFXMODE=2560x1440.


@litemotiv, do any guides exist to make that process easier? I can’t imagine that generating a font file is a trivial endeavour. I’d rather like to use enlarged Noto Mono if possible, but grub requirements for fonts is making me reconsider trying this altogether.

It is relatively straightforward if you have the Noto Mono TTF file available. This should be the general process:

(warning: untested)

$ grub2-mkfont -s 32 -o /boot/grub2/fonts/noto-mono.pf2 /path-to-your-noto-mono.ttf
$ echo "GRUB_FONT=/boot/grub2/fonts/noto-mono.pf2" >> /etc/default/grub
$ grub2-mkconfig -o /boot/grub2/grub.cfg

Adjust filesize (32 in example) to preference.

This will currently not work on Silverblue, since they are not using the grub config in F41.

1 Like

@litemotiv, thanks. Where did you get that from? Some documentation somewhere?

It’s a short summary of this page:

https://www.baeldung.com/linux/grub-menu-font-size

1 Like