Troubleshooting & Common Pitfalls
Quick fixes for invisible PNGs, missing PF2 fonts, distro icon matching, HiDPI scaling, and boot_menu scrollbar issues.
On this page
Background or PNG assets do not appear at boot
Check these four causes in order:
- Indexed/Interlaced PNG or Progressive JPEG: Re-export all PNGs as truecolor 8-bit/channel non-interlaced RGB/RGBA, and JPEGs as Baseline. See Image Formats & PNG Color Depth.
- Wrong path or casing: Linux filesystems are case-sensitive (
Background.png≠background.png). Use lowercase filenames and place them in the same directory astheme.txt. - Conflicting
/etc/default/grubterminal setting: EnsureGRUB_TERMINAL_OUTPUT="gfxterm"is set andGRUB_TERMINAL="console"is commented out, then re-runupdate-grub/grub-mkconfig. - Unsupported
GRUB_GFXMODE: Verify available UEFI modes withvideoinfoinside the GRUB command prompt (c).
Fonts fall back to tiny default glyphs
- Make sure every
.pf2file sits directly inside your theme folder (next totheme.txt). - Verify the font string in
theme.txt(item_font = "Inter Regular 20") matches the internal font name embedded in the.pf2header, not the filename. See Typography & PF2 Fonts. - Confirm the
.pf2includes the Unicode range required by your menu entries (non-Latin characters require including those glyph ranges during conversion).
OS icons do not show in boot_menu
GRUB resolves icons from icons/<class>.png based on each menuentry --class token inside /boot/grub/grub.cfg:
inspect-classes.sh
# Inspect the exact --class names present in your grub.cfg
sudo grep -E "menuentry .*--class" /boot/grub/grub.cfg | head -n 10
- Ensure
icon_widthandicon_heightare greater than0insideboot_menu. - Name each icon file after the class token (
ubuntu.png,arch.png,fedora.png,windows.png,gnu-linux.png) and export it as 8-bit RGBA PNG.
Visible seams or clipped text on 9-slice boxes
- Verify all 9 slice heights/widths align (
_nmatches_nw/_neheight;_wmatches_nw/_swwidth). - Increase
item_heightinboot_menuifselected_item_pixmap_styletop and bottom slices clip your text vertically. - Review the 9-Slice Boxes Guide.
Theme looks tiny on 4K / HiDPI displays
GRUB 2 does not apply automatic 2× HiDPI scaling. You have two clean solutions:
- Set a comfortable
GRUB_GFXMODEsuch as1920x1080x32in/etc/default/grub(most 4K displays upscale1080pcleanly by an exact2×factor). - Design a dedicated 4K variant using larger
.pf2font sizes (28–36 pxmenu items), larger icons (48×48), and percentage-based container coordinates.
Cannot resize a container or move children freely
You are likely using an hbox or vbox, which auto-calculates its bounds from its children per GRUB's gui_box.c. Use Ctrl + Click to select and resize individual children, or switch the container to canvas for manual (left, top, width, height) control. Full explanation in Containers: hbox, vbox & canvas.