User avatar
Phixxy
Posts: 30
Joined: Thu Jul 05, 2012 7:25 am

Boot Text Color

Tue Jul 17, 2012 9:48 pm

Is there a way to change the color of the text when the Raspberry Pi is booting up?

User avatar
jojopi
Posts: 3141
Joined: Tue Oct 11, 2011 8:38 pm

Re: Boot Text Color

Tue Jul 17, 2012 10:12 pm

Yes! Add the following to the end of the first line of /boot/cmdline.txt:

Code: Select all

 vt.default_red=0,255,255,255,255,255,255 vt.default_grn=0,102,102,102,102,102,102,102 vt.default_blu=0,51,51,51,51,51,51,51

User avatar
Phixxy
Posts: 30
Joined: Thu Jul 05, 2012 7:25 am

Re: Boot Text Color

Tue Jul 17, 2012 10:16 pm

jojopi wrote:Yes! Add the following to the end of the first line of /boot/cmdline.txt:

Code: Select all

 vt.default_red=0,255,255,255,255,255,255 vt.default_grn=0,102,102,102,102,102,102,102 vt.default_blu=0,51,51,51,51,51,51,51
I would paste all of that? or just

Code: Select all

vt.default_grn=0,102,102,102,102,102,102,102
If i wanted green text. Id rather have purple if thats possible.

EDIT: I pasted all of the code, it made the font an orangey color. So this does work. How can I change it to a pinkish/purple color?

User avatar
Phixxy
Posts: 30
Joined: Thu Jul 05, 2012 7:25 am

Re: Boot Text Color

Tue Jul 17, 2012 11:02 pm

For some reason it wont let me edit my above post. I got purple text by adding

Code: Select all

vt.default_grn=0,102,102,102,102,102,102
at the end of the first line of /boot/cmdline.txt
I'm not sure why the one labeled "grn" makes the color purple. Blu made the color pale yellow, and red makes it a pale orange. Thanks everyone above this post =)

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: Boot Text Color

Wed Jul 18, 2012 1:01 am

I found a brief bit of documentation here http://redsymbol.net/linux_boot_parameters/2.6.25/
And it seems the default colours are here http://lxr.free-electrons.com/source/dr ... vt.c#L1049
Basically it looks like the console has a 16-colour palette, and these commands let you set the red, green and blue components of each colour in the palette.
I.e. colour0 has value (red0, green0, blue0), colour5 has value (red5, green5, blue5), etc.
So by setting just vt.default_grn, the red and blue channels will keep their default values as show in the second of my links, and you're changing just the green component of the colours.

Just for reference, I made a colourstrip of the default colours, according to the vt.c file linked above 8-)
Attachments
Linux_VT_colours.png
Taste the rainbow
Linux_VT_colours.png (283 Bytes) Viewed 7253 times

User avatar
Phixxy
Posts: 30
Joined: Thu Jul 05, 2012 7:25 am

Re: Boot Text Color

Wed Jul 18, 2012 1:54 am

So by limiting the green, i mixed blue and red, to make purple. Makes sense now. Thanks a ton, now I can fine tune the color I want. =)

User avatar
Phixxy
Posts: 30
Joined: Thu Jul 05, 2012 7:25 am

Re: Boot Text Color

Wed Jul 18, 2012 2:32 am

Again, I cannot edit my above post. Why is this?

Anyway. Warning to anyone that is going to try to change their boot font colors, DO NOT change the zero in the sequence of numbers. Doing this will change the background color of the terminal and can make everything un-readable. I had to ssh into my raspberry pi to change it back.

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 12595
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Boot Text Color

Wed Jul 18, 2012 2:35 am

Phixxy wrote:Again, I cannot edit my above post. Why is this?

Anyway. Warning to anyone that is going to try to change their boot font colors, DO NOT change the zero in the sequence of numbers. Doing this will change the background color of the terminal and can make everything un-readable. I had to ssh into my raspberry pi to change it back.
If this is one of your first edits you cannot edit your previous post, in the future you will!
That or a naughty moderator made an edit the same time you did. :roll:

And yes, black on black is a bit hard to read. LOL. :lol:

itimpi
Posts: 1090
Joined: Sun Sep 25, 2011 11:44 am
Location: Potters Bar, United Kingdom
Contact: Website

Re: Boot Text Color

Wed Jul 18, 2012 2:36 am

mahjongg wrote:
Phixxy wrote:Again, I cannot edit my above post. Why is this?

Anyway. Warning to anyone that is going to try to change their boot font colors, DO NOT change the zero in the sequence of numbers. Doing this will change the background color of the terminal and can make everything un-readable. I had to ssh into my raspberry pi to change it back.
If this is one of your first three edits you cannot edit your previous post, in the future you will!
There is also a timeout (I think it is 30 minutes) after which posts cannot be edited regardless of how many posts you have made.

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 12595
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Boot Text Color

Wed Jul 18, 2012 2:39 am

Yes, that too, (although it doesn't apply to me anymore, but I remember that from when I was a wee lad). :P

User avatar
Phixxy
Posts: 30
Joined: Thu Jul 05, 2012 7:25 am

Re: Boot Text Color

Wed Jul 18, 2012 2:42 am

itimpi wrote:
mahjongg wrote:
Phixxy wrote:Again, I cannot edit my above post. Why is this?

Anyway. Warning to anyone that is going to try to change their boot font colors, DO NOT change the zero in the sequence of numbers. Doing this will change the background color of the terminal and can make everything un-readable. I had to ssh into my raspberry pi to change it back.
If this is one of your first three edits you cannot edit your previous post, in the future you will!
There is also a timeout (I think it is 30 minutes) after which posts cannot be edited regardless of how many posts you have made.
Purple on purple is hard to read also.

Thanks everyone for helping me out. This is why I have loved the linux community since I started toying around with linux. Hopefully I will get a more serious attitude in learning about linux more. I do like playing around without a gui, something new to me.

JacketAlTrades
Posts: 4
Joined: Sat Jan 31, 2015 1:41 am

Re: Boot Text Color

Sat Jan 31, 2015 2:04 am

OK, so I know this is what I need, but I don't seem to be grasping it right. I want to get a green text, similar to the 3rd from the left color from the color palette above. I have tried adding the red and blue=0 comments, so that would "zero out" those colors and allow only green, but instead I only get a deep yellow colored text. Any help would be greatly appreciated.
Thanks All!

Return to “Beginners”