You are not logged in.

#1 2024-04-29 15:25:55

LudwigJ
Member
Registered: 2021-02-25
Posts: 6

[SOLVED] How can I set the default console font?

I recently bought a new high resolution monitor and added the line GRUB_GFXMODE=2560x1440 in /etc/default/grub. This works and I get a nice high resolution for the console, but then the kernel decides to use a larger (16x32) font (https://wiki.archlinux.org/title/Linux_console, "The kernel chooses the [font] to use based on its evaluation of the screen resolution.")

I don't know how to keep the default 8x16 font. I tried adding GRUB_CMDLINE_LINUX="fbcon=font:8x16" to /etc/default/grub, but it doesn't work.

Last edited by LudwigJ (2024-05-03 13:13:03)

Offline

#2 2024-04-30 06:23:04

zaxdan69
Member
Registered: 2016-06-04
Posts: 275

Re: [SOLVED] How can I set the default console font?

You can set the font in /etc/vconsole.conf file like this:

FONT=ter-728n

but you need to know which font is used by default. You can find the installed fonts in /usr/share/kbd/consolefonts directory, and choose from them.
Also you can switch to a tty, login, and use "setfont" command to test some fonts:
https://man.archlinux.org/man/setfont.8

Offline

#3 2024-05-03 13:11:33

LudwigJ
Member
Registered: 2021-02-25
Posts: 6

Re: [SOLVED] How can I set the default console font?

Sorry for the late response, that did the trick, thank you.
I still don't understand why the fbcon=font option in GRUB doesn't work, though.

Offline

#4 2024-05-04 18:05:01

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,771
Website

Re: [SOLVED] How can I set the default console font?

LudwigJ wrote:

I still don't understand why the fbcon=font option in GRUB doesn't work, though.

https://bbs.archlinux.org/viewtopic.php?id=275225

EDIT: sorry, that's not actually relevant, I didn't read the thread to the end.

I think you just need to set the name correctly so try something like

fbcon=font:VGA8x16

The list of accepted names is given in https://www.kernel.org/doc/Documentation/fb/fbcon.txt.

Last edited by Head_on_a_Stick (2024-05-04 18:11:53)

Offline

Board footer

Powered by FluxBB