Skip to documentation content

Troubleshooting & Common Pitfalls

Quick fixes for invisible PNGs, missing PF2 fonts, distro icon matching, HiDPI scaling, and boot_menu scrollbar issues.

Background or PNG assets do not appear at boot

Check these four causes in order:

  1. 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.
  2. Wrong path or casing: Linux filesystems are case-sensitive (Background.png ≠ background.png). Use lowercase filenames and place them in the same directory as theme.txt.
  3. Conflicting /etc/default/grub terminal setting: Ensure GRUB_TERMINAL_OUTPUT="gfxterm" is set and GRUB_TERMINAL="console" is commented out, then re-run update-grub / grub-mkconfig.
  4. Unsupported GRUB_GFXMODE: Verify available UEFI modes with videoinfo inside the GRUB command prompt (c).

Fonts fall back to tiny default glyphs

  • Make sure every .pf2 file sits directly inside your theme folder (next to theme.txt).
  • Verify the font string in theme.txt (item_font = "Inter Regular 20") matches the internal font name embedded in the .pf2 header, not the filename. See Typography & PF2 Fonts.
  • Confirm the .pf2 includes 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_width and icon_height are greater than 0 inside boot_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 (_n matches _nw/_ne height; _w matches _nw/_sw width).
  • Increase item_height in boot_menu if selected_item_pixmap_style top 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:

  1. Set a comfortable GRUB_GFXMODE such as 1920x1080x32 in /etc/default/grub (most 4K displays upscale 1080p cleanly by an exact 2× factor).
  2. Design a dedicated 4K variant using larger .pf2 font sizes (28–36 px menu 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.