[Q] Grub2 won't change font colors

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
User avatar
inate71
Level 2
Level 2
Posts: 59
Joined: Sat Aug 10, 2013 11:54 am

[Q] Grub2 won't change font colors

Post by inate71 »

I can't get the font colors to change at all; the only thing I've managed to accomplish is getting a custom background on the Grub screen.

I tried grub-customizer but that doesn't work.
I tried what was suggested here: http://askubuntu.com/questions/433839/h ... s-for-grub, but that doesn't work.
User avatar
inate71
Level 2
Level 2
Posts: 59
Joined: Sat Aug 10, 2013 11:54 am

Re: [Q] Grub2 won't change font colors

Post by inate71 »

Bumper cars.
User avatar
inate71
Level 2
Level 2
Posts: 59
Joined: Sat Aug 10, 2013 11:54 am

Re: [Q] Grub2 won't change font colors

Post by inate71 »

Bump?

I tried additional things, but that didn't work either.
User avatar
Flemur
Level 18
Level 18
Posts: 8727
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: [Q] Grub2 won't change font colors

Post by Flemur »

I tried grub-customizer but that doesn't work.

Did it make the GUI ugly, and hard to read and navigate, and not accomplish what you wanted? If so, it's working perfectly.

Here is color setting from my "/boot/grub/grub.cfg" file:

Code: Select all

# grub.cfg
#
default=0   # 0=first one
timeout=3
#
set         color_normal=yellow/black
set    menu_color_normal=black/light-gray
set menu_color_highlight=yellow/dark-gray
#
menuentry 'Mint 17 sda1' {
    root=(hd0,1)
    linux   /boot/vmlinuz-3.13.0-24-generic root=LABEL=MINT ro
    initrd  /boot/initrd.img-3.13.0-24-generic
}
...etc...
I have yet to see a downside from editing the grub.cfg file directly and not messing with grub-customizer and update-grub.
Just make a copy of the original file in case you make a mistake...
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
User avatar
inate71
Level 2
Level 2
Posts: 59
Joined: Sat Aug 10, 2013 11:54 am

Re: [Q] Grub2 won't change font colors

Post by inate71 »

Flemur wrote:I tried grub-customizer but that doesn't work.

Did it make the GUI ugly, and hard to read and navigate and not accomplish what you wanted? If so, it's working perfectly.

Here is color setting from my "/boot/grub/grub.cfg" file:

Code: Select all

# grub.cfg
#
default=0   # 0=first one
timeout=3
#
set         color_normal=yellow/black
set    menu_color_normal=black/light-gray
set menu_color_highlight=yellow/dark-gray
#
menuentry 'Mint 17 sda1' {
    root=(hd0,1)
    linux   /boot/vmlinuz-3.13.0-24-generic root=LABEL=MINT ro
    initrd  /boot/initrd.img-3.13.0-24-generic
}
...etc...
I have yet to see a downside from editing the grub.cfg file directly and not messing with grub-customizer and update-grub.
Just make a copy of the original file in case you make a mistake...
No, it just never sets the colors I've specified. I wanted a yellow highlight--but it's always the default white highlight. However....

I think I found the issue. I think these lines caused my changes to be overridden.

Code: Select all

### BEGIN /etc/grub.d/06_mint_theme ###
set menu_color_normal=white/black
set menu_color_highlight=white/light-gray
### END /etc/grub.d/06_mint_theme ###
User avatar
WinterTroubles
Level 6
Level 6
Posts: 1472
Joined: Fri Apr 11, 2014 6:25 am
Location: UK

Re: [Q] Grub2 won't change font colors

Post by WinterTroubles »

inate71

Did you ever resolve changing font colours in grub?

I ask as I was looking for the solution myself and found your post in my search.. I have since found the solution thanks to clues in this post on Ubuntu forums. As it seems you were almost there from your post above I guess you solved it, however, I'll post what worked for me in case you didn't manage to find the next step, and for anyone else searching.

In Mint I manually edited

Code: Select all

/etc/grub.d/06_mint_theme
Changing these lines

Code: Select all

set menu_color_normal=white/black
set menu_color_highlight=black/light-grey
Where the first of each colour pair is the font colour and the second is the text background colour. Black is equivalent to transparent when used as text background colour, so a highlight colour pair of light-magenta/light-cyan will give you a selected line colour of light-magenta text over a light-cyan highlight... and a migraine :mrgreen:

And then running

Code: Select all

sudo update-grub
in terminal, without this any changes aren't actually made on the grub screen.

This is due to the path grub uses to select font colours, I believe, the 06_mint_theme overrides the settings created by Grub Customizer.

Hope this helps someone, even if you actually found the solution inate71 :)
Last edited by WinterTroubles on Fri Jan 02, 2015 4:41 pm, edited 1 time in total.
17.1Cinn/17.1Xfce

If solved please edit the subject line of your first post to include [Solved] so other users know there's a solution in the topic.

GNU Terry Pratchett
User avatar
inate71
Level 2
Level 2
Posts: 59
Joined: Sat Aug 10, 2013 11:54 am

Re: [Q] Grub2 won't change font colors

Post by inate71 »

That was the fix! I figured it out shortly after posting this and neglected to update the post. Everything you outlined is the correct fix.
User avatar
WinterTroubles
Level 6
Level 6
Posts: 1472
Joined: Fri Apr 11, 2014 6:25 am
Location: UK

Re: [Q] Grub2 won't change font colors

Post by WinterTroubles »

inate71 wrote:That was the fix! I figured it out shortly after posting this and neglected to update the post. Everything you outlined is the correct fix.
Glad to hear solved it without having to wait two months :D

Could you possibly mark this topic as solved, see the red line in my signature below, please.. as that will help others seeking the same answer, many thanks :)
17.1Cinn/17.1Xfce

If solved please edit the subject line of your first post to include [Solved] so other users know there's a solution in the topic.

GNU Terry Pratchett
Post Reply

Return to “Installation & Boot”