View previous topic :: View next topic |
Author |
Message |
echo.motd n00b
Joined: 15 Nov 2014 Posts: 4
|
Posted: Sat Nov 15, 2014 9:50 pm Post subject: [SOLVED] How to set a console font? |
|
|
/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 |
|
|
potuz Guru
Joined: 30 Jan 2010 Posts: 378
|
Posted: Sun Nov 16, 2014 1:05 am Post subject: |
|
|
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 |
|
|
echo.motd n00b
Joined: 15 Nov 2014 Posts: 4
|
Posted: Sun Nov 16, 2014 5:05 pm Post subject: |
|
|
Thank you,
"rc-update add consolefont boot" - works.
Is there easy way to set it earlier - before the openrc ? |
|
Back to top |
|
|
potuz Guru
Joined: 30 Jan 2010 Posts: 378
|
Posted: Sun Nov 16, 2014 5:07 pm Post subject: |
|
|
What do you mean by "earlier"? before any init system? |
|
Back to top |
|
|
ManDay Apprentice
Joined: 22 Jan 2008 Posts: 247
|
Posted: Sun Nov 16, 2014 5:27 pm Post subject: |
|
|
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 |
|
|
echo.motd n00b
Joined: 15 Nov 2014 Posts: 4
|
Posted: Sun Nov 16, 2014 5:39 pm Post subject: |
|
|
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 |
|
|
potuz Guru
Joined: 30 Jan 2010 Posts: 378
|
Posted: Sun Nov 16, 2014 7:10 pm Post subject: |
|
|
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 |
|
|
echo.motd n00b
Joined: 15 Nov 2014 Posts: 4
|
Posted: Mon Nov 17, 2014 6:26 am Post subject: |
|
|
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 |
|
|
|