Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] How to set a console font?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
echo.motd
n00b
n00b


Joined: 15 Nov 2014
Posts: 4

PostPosted: Sat Nov 15, 2014 9:50 pm    Post subject: [SOLVED] How to set a console font? Reply with quote

/etc/conf.d/consolefont
I set consolefont=<"my font"> but after restart console font remains unchanged.
Please advise.


Last edited by echo.motd on Mon Nov 17, 2014 7:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
potuz
Guru
Guru


Joined: 30 Jan 2010
Posts: 378

PostPosted: Sun Nov 16, 2014 1:05 am    Post subject: Reply with quote

The configuration file you're trying to use is used by a service started with openrc. If you are running rc then try adding consolefont to the boot runlevel
Code:
rc-update add consolefont boot

If you have systemd and no /etc/init.d/consolefont then you have to create a service I suppose.
Back to top
View user's profile Send private message
echo.motd
n00b
n00b


Joined: 15 Nov 2014
Posts: 4

PostPosted: Sun Nov 16, 2014 5:05 pm    Post subject: Reply with quote

Thank you,
"rc-update add consolefont boot" - works.
Is there easy way to set it earlier - before the openrc ?
Back to top
View user's profile Send private message
potuz
Guru
Guru


Joined: 30 Jan 2010
Posts: 378

PostPosted: Sun Nov 16, 2014 5:07 pm    Post subject: Reply with quote

What do you mean by "earlier"? before any init system?
Back to top
View user's profile Send private message
ManDay
Apprentice
Apprentice


Joined: 22 Jan 2008
Posts: 227

PostPosted: Sun Nov 16, 2014 5:27 pm    Post subject: Reply with quote

potuz wrote:
What do you mean by "earlier"? before any init system?


Yes, I think that's what he means. Interesting question, I think it depends on your console device though if there is a kernel parameter for it or not.
Back to top
View user's profile Send private message
echo.motd
n00b
n00b


Joined: 15 Nov 2014
Posts: 4

PostPosted: Sun Nov 16, 2014 5:39 pm    Post subject: Reply with quote

I think that should be somewhere in the kernel settings isn't it ?
I use default gentoo console without GUI.

"Earlier" I mean from the time it starts to display the booting output.
Back to top
View user's profile Send private message
potuz
Guru
Guru


Joined: 30 Jan 2010
Posts: 378

PostPosted: Sun Nov 16, 2014 7:10 pm    Post subject: Reply with quote

It depends on the driver you are using at boot. Typically on an x86 system you'd use vesafb or vga16fb or vga8fb. It could even be fbcon that you can set on your kernel options. If it was this last one that you are using then from the documentation of the driver you have:
Code:

fbcon=font:<name>

        Select the initial font to use. The value 'name' can be any of the
        compiled-in fonts: VGA8x16, 7x14, 10x18, VGA8x8, MINI4x6, RomanLarge,
        SUN8x16, SUN12x22, ProFont6x11, Acorn8x8, PEARL8x8.

   Note, not all drivers can handle font with widths not divisible by 8,
        such as vga16fb.

You can read more at
https://www.kernel.org/doc/Documentation/fb/fbcon.txt
If your console is a different one then you'll have to read the corresponding documentation in the kernel files.
Back to top
View user's profile Send private message
echo.motd
n00b
n00b


Joined: 15 Nov 2014
Posts: 4

PostPosted: Mon Nov 17, 2014 6:26 am    Post subject: Reply with quote

I use two different systems one is the laptop x86 and another is raspberry pi arm.
Actually I do not know which drivers the kernel uses on both systems during the boot.
Thank you for the link and your help. I will continue reading the documentation.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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