Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GRUB2 themes not working at all
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Dragonlord
Guru
Guru


Joined: 22 Aug 2004
Posts: 446
Location: Switzerland

PostPosted: Sat Oct 19, 2013 4:43 pm    Post subject: GRUB2 themes not working at all Reply with quote

Trying to get themes working with GRUB2. Here's the grub.cfg:

Code:
set gfxmode=1680x1050x32
insmod gfxterm
insmod vbe
insmod vga
terminal_output gfxterm
set theme=(hd0,7)/grub/themes/starfield/theme.txt
...


While booting GRUB complains about starfield.png being of an unsupported or incorrect format. I also tried making own PNG and JPG files but GRUB2 fails to read anything at all. It complains with all images and starfield.png comes from the gentoo grub2 ebuild unmodified. splash with GRUB had been already a near impossible undertaking but in GRUB2 it seems now to be broken straight from the start.

Any ideas how on earth one is supposed to get the themes working with GRUB2?

Important! The use of grub2-mkconfig is prohibited! grub.cfg edits only!
_________________
DragonDreams: Leader and Head Programmer
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1555
Location: Montréal

PostPosted: Sat Oct 19, 2013 5:04 pm    Post subject: Reply with quote

It work for me when the file command show this information about the Png format file
Code:
PNG image data, 1366 x 768, 8-bit/color RGB, non-interlaced

but not with this one
Code:
PNG image data, 1366 x 768, 8-bit grayscale, non-interlaced

Resolution should not matter.

Jpg format have'nt work. The features can be in cause. I am not sure. I have not verified and try to make any change. One thing I remember I have been force to do in the past, but not specific to Gentoo, is to remove the comments from the Jpg image with the convert command for it to work with Grub. This do not pass
Code:
JPEG image data, JFIF standard 1.01, comment: "CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 75"

but this yes
Code:
JPEG image data, JFIF standard 1.01

_________________
Paul
Back to top
View user's profile Send private message
Dragonlord
Guru
Guru


Joined: 22 Aug 2004
Posts: 446
Location: Switzerland

PostPosted: Sat Oct 19, 2013 9:47 pm    Post subject: Reply with quote

File applied to background image coming straight from the GRUB2 ebuild returns this:
Code:
starfield.png: PNG image data, 1597 x 1198, 8-bit/color RGBA, non-interlaced
.

But GRUB2 doesn't consider this valid. Looks like somebody put in an RGBA file into the ebuild?

EDIT: The menu box PNGs are though RGBA too which makes sense as they contain transparent elements. So GRUB2 has to support transparency as otherwise this menu box could not be done... but it doesn't accept them. :roll:
_________________
DragonDreams: Leader and Head Programmer
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum