You are not logged in.

#1 2022-08-27 10:03:05

an4rki_
Member
Registered: 2022-08-16
Posts: 50

[SOLVED] Grub Background Image Is Not Working

I am trying to set a wallpaper for Grub, here's my /etc/default/grub

# GRUB boot loader configuration

GRUB_DEFAULT=0
GRUB_TIMEOUT=6
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet"
GRUB_CMDLINE_LINUX=""

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y

# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE=menu

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=1920x1080x32,1024x768x32,auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
GRUB_COLOR_NORMAL="white/black"
GRUB_COLOR_HIGHLIGHT="white/red"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
GRUB_BACKGROUND="/home/an4rki/Wallpapers/grub.png"
#GRUB_THEME="/path/to/gfxtheme"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT=true
# Uncomment to disable submenus in boot menu
#GRUB_DISABLE_SUBMENU=y

# Probing for other operating systems is disabled for security reasons. Read
# documentation on GRUB_DISABLE_OS_PROBER, if still want to enable this
# functionality install os-prober and uncomment to detect and include other
# operating systems.
#GRUB_DISABLE_OS_PROBER=false

I get the "Found background image..." message after I run sudo grub-mkconfig -o /boot/grub/grub.cfg. All the other changes like colors and default timer take effect except the background image.

I also checked if the resolution is supported by entering the Grub console when booting up and running videoinfo. And 1920x1080x32, 1024x768x32 are both supported. The image is png which is also one of the types supported by Grub.

Last edited by an4rki_ (2022-08-28 13:40:32)


"A computer is like air conditioning - it becomes useless when you open Windows." - Linus Torvalds
Arch + DWM

Offline

#2 2022-08-27 10:12:07

Hamsterkill
Member
Registered: 2009-05-05
Posts: 67

Re: [SOLVED] Grub Background Image Is Not Working

There appears to have been some changes in how grub generates its conf file that are causing some issues in the most recent arch grub packages. Theming broke for me as well: https://bbs.archlinux.org/viewtopic.php?id=279115

Last edited by Hamsterkill (2022-08-27 10:12:40)

Offline

#3 2022-08-27 11:21:17

Maniaxx
Member
Registered: 2014-05-14
Posts: 738

Re: [SOLVED] Grub Background Image Is Not Working

an4rki_ wrote:

GRUB_BACKGROUND="/home/an4rki/Wallpapers/grub.png"

Not sure, but it might be possible that the home folder is not yet available/mounted at the time grub is trying to access it. Maybe try something like:

GRUB_BACKGROUND="/boot/grub/bootpic.png"

sys2064

Offline

#4 2022-08-27 12:07:09

an4rki_
Member
Registered: 2022-08-16
Posts: 50

Re: [SOLVED] Grub Background Image Is Not Working

@Maniaxx I tried this but unfortunately it did not work. I also tried to load the image from /grub.png, /boot/grub.png and others like from my home directory but none of these worked.

Last edited by an4rki_ (2022-08-27 12:08:09)


"A computer is like air conditioning - it becomes useless when you open Windows." - Linus Torvalds
Arch + DWM

Offline

#5 2022-08-27 17:21:03

Maniaxx
Member
Registered: 2014-05-14
Posts: 738

Re: [SOLVED] Grub Background Image Is Not Working

Maybe grub doesn't like that specific png file. Jpgs are kinda picky, not sure about png.
Try this one, it works here.


sys2064

Offline

#6 2022-08-28 04:30:54

an4rki_
Member
Registered: 2022-08-16
Posts: 50

Re: [SOLVED] Grub Background Image Is Not Working

Try this one, it works here.

It worked!

Maybe grub doesn't like that specific png file.

I tried several other images, some worked others didn't. All of them 1920x1080, png.


"A computer is like air conditioning - it becomes useless when you open Windows." - Linus Torvalds
Arch + DWM

Offline

#7 2022-08-28 06:37:49

Maniaxx
Member
Registered: 2014-05-14
Posts: 738

Re: [SOLVED] Grub Background Image Is Not Working

Try to re-save them with Gimp/export/png.


sys2064

Offline

#8 2022-08-28 13:38:40

an4rki_
Member
Registered: 2022-08-16
Posts: 50

Re: [SOLVED] Grub Background Image Is Not Working

Exporting the image as PNG in GIMP solved the issue.
Thanks @Maniaxx Marking the thread as solved.

Last edited by an4rki_ (2022-08-28 13:39:52)


"A computer is like air conditioning - it becomes useless when you open Windows." - Linus Torvalds
Arch + DWM

Offline

Board footer

Powered by FluxBB