Ask Your Question

GRUB2 finds background image but doesn't display it

asked 2018-07-19 08:21:17 -0600

andreipoe gravatar image

On a new installation of Fedora 28 KDE Spin on an x64 system, I cannot get GRUB to show a background image.

Things I have tried:

  • Using grub-customizer to set the background image.
  • Manually placing different PNG and JPG images in various places on /boot and mentioning them in /etc/default/grub. I have also tried manually converting the images to 8-bit RGB using GIMP.
  • Checking that the native resolution is set properly using videoinfo at the GRUB prompt---it is.
  • Checking that GRUB is in the gfxterm mode---it is.
  • Using a non-native resolution, as well as the native one. Every time, the background image size matched the chosen resolution. I even tried an image smaller than the set resolution.

Here is my config file:

GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_CMDLINE_LINUX="resume=/dev/mapper/fedora-swap rhgb quiet"

export GRUB_COLOR_NORMAL="white/black"
export GRUB_COLOR_HIGHLIGHT="magenta/black"

Of course, after every change to the config file I regenerate `grub.cfg:

sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

... which produces:

Found background: <given-file>

Non-exhaustive list of references that I have read: 1, 2, 3, 3, 4, 5.

Where could the problem be and what more can I try?

edit retag flag offensive close merge delete


@andreipoe, not dupe only related question, grub2-will-not-display-background-image

hhlp gravatar imagehhlp ( 2018-07-19 08:48:02 -0600 )edit

Don' t use grub-customizer, because you will run in troubles, grub-customizer has issues with undo operations (revert a change).

heliosstyx gravatar imageheliosstyx ( 2018-07-19 09:02:09 -0600 )edit

@andreipoe , Resolution_Settings and your image maybe is not a valid format of jpeg for grub2. You must transform this image in a valid jpeg : 8-bit (256 color) and non-indexed, (RGB), maybe you need to select only one resolution not a variaty of them.

hhlp gravatar imagehhlp ( 2018-07-19 09:18:37 -0600 )edit

Thank you for your comments.

@heliosstyx I know it's not ideal, and the only reason I tried it is because for other is did the trick.

@hhlp I took a fresh image an went through the color process in GIMP, but still not success. I also tried your other suggestion to only keep a single resolution---no luck.

andreipoe gravatar imageandreipoe ( 2018-07-19 10:41:55 -0600 )edit

Works for me with


These two have no effect in gfxterm mode.

export GRUB_COLOR_NORMAL="white/black"
export GRUB_COLOR_HIGHLIGHT="magenta/black"
villykruse gravatar imagevillykruse ( 2018-07-19 11:30:15 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2018-07-21 02:07:23 -0600

villykruse gravatar image

UEFI grub does not (currently) support background images. The module needed for that is not included in the signed copy of grub.

At the boot prompt you can type "c" to get a command prompt. Then try to run the command "background_image" and find that this command is not supported.

edit flag offensive delete link more


Thank you! I had actually tried background_image at some point, and indeed it didn't work, but it didn't click that the reason was missing support for this and I thought I was doing something wrong.

andreipoe gravatar imageandreipoe ( 2018-07-21 05:47:05 -0600 )edit

answered 2018-10-05 21:44:56 -0600

rawl28 gravatar image

It seems like this is possible to do but the packages needed are not installed by default. I have used the following steps and it worked.

Here is the workaround:

  1. Install the grub2-efi-x64-modules package

  2. Create directory /boot/efi/EFI/fedora/x86_64-efi/

  3. Copy /usr/lib/grub/x8664-efi/gfxtermbackground.mod to /boot/efi/EFI/fedora/x86_64-efi/

  4. Add the line "insmod gfxtermbackground" to /etc/grub.d/00header immediately after the line "insmod gfxterm"

  5. Rebuild grub2 config

found here:

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-07-19 08:16:42 -0600

Seen: 1,272 times

Last updated: Jul 21 '18