Grub2 boot menu low resolution

I’ve ascertained the problem and how to remediate it.

Specifically, GRUB_GFXMODE=, despite being unset, defaults to approximately 640x480 px. However, adding GRUB_GFXMODE=2560x1440 forces it to render at my monitor’s native resolution (obviously, 2560x1440 px). You may need to add GRUB_TERMINAL_OUTPUT="gfxterm" too, like the undermentioned demonstrates:

GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="gfxterm"
#GRUB_CMDLINE_LINUX=""
#GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true
GRUB_GFXMODE=2560x1440

Unfortunately, this isn’t perfect, because the value must be modified for the display in use, which can change. However, auto may remediate this if the correct value is acquired by it, and setting fallbacks (like GRUB_GFXMODE=2560x1440,1600x1200) at least prevents it rendering in a manner which unobservable.

I’m following boot - GRUB2: Use maximum detected resolution? - Ask Ubuntu for a perfect way to dynamically acquire the display resolution and apply that, but there has been no such response yet.

@tolotifant, if this works for you, please mark this as the answer.


Now, all that needs to be done is scale it. I’ve asked at the undermentioned how to accomplish this: