You are not logged in.
Hi,
I have this warning every time mkinitcpio runs and it just occurred to me that that must be owing to me having skipped the "create /etc/vconsole.conf" step. If that is so, I want the default settings. And the thing is I can't find this info.
Another option is probably to remove consolefont from the hooks in /etc/mkinitcpio.conf. But I'm not sure if that's a good idea. And I bet I'll need to "resolve conflicts" every time that file changes.
Any suggestions are welcome.
Offline
https://gitlab.archlinux.org/archlinux/ … issues/139
And I bet I'll need to "resolve conflicts" every time that file changes.
You'll probably occasionally get pacnew files and then merge them (or not), but a custom mkinitcpio.conf is pretty much "normal"
Offline
I understand that changing configs is normal, but over time I came to avoid changing files owned by packages where possible (e.g. using *.d directories). I even wrote a script to help me with upgrades, but still...
And the issue with determining the default font is that it's chosen dynamically? And that the kernel doesn't say which font it chose (journalctl -b)? And that there's no getfont?
Last edited by x-yuri (2023-01-25 09:40:27)
Offline
The issue is that the consolefont hook was enabled by default and makes no sense when there's no console font defined and instead of silently ignoring this informs you about that.
Arguebly the hooks behavior is fine (assuming it was added to do something and the user made an error in not also setting a font) but in any event the message is just noise, you can ignore it.
The technically correct solution would be to remove it from mkinitcpio.conf as you neither want nor benefit from it.
Offline
Oh, initially I thought that the kernel sets a font in any case. But judging from what you're saying it appears that the kernel does so only when the consolefont hook is present and the font is set in /etc/{vconsole,locale}.conf (when a font is added to the image). Otherwise the system font (the one that comes with BIOS/UEFI) is used.
Offline
only when the consolefont hook is present
Indeed.
You can choose whether to use it or not.
More infos on the relevant WIKI's page.
<49,17,III,I> Fama di loro il mondo esser non lassa;
<50,17,III,I> misericordia e giustizia li sdegna:
<51,17,III,I> non ragioniam di lor, ma guarda e passa.
Offline
The kernel does set a font in any case:
https://wiki.archlinux.org/title/Linux_console#Fonts
But the consolefont hook only makes sense if you wish to alter that default behavior.
For non-english speakers this is probably a good idea anyway (since you only have a limited set of charaters and want those to cover the pecularities of your native tongue)
Offline
By default, the virtual console uses the kernel built-in font with a CP437 character set[1], but this can be easily changed.
Oh, I've seen this line. The thing is... which font is it exactly? `ls /usr/share/kbd/consolefonts/*437*` finds nothing. Or is it part of the kernel and can't be chosen explicitly?
Last edited by x-yuri (2023-01-27 10:49:39)
Offline
"built-in font"
And then
The kernel offers about 15 built in fonts to choose from, from which the officially supported kernels provide two: VGA 8x16 font (CONFIG_FONT_8x16) and Terminus 16x32 font (CONFIG_FONT_TER16x32). The kernel chooses the one to use based on its evaluation of the screen resolution. Another builtin font can be forced upon by kernel parameters boot parameter setting such as fbcon=font:TER16x32.
I suspect default8x16, but don't see the terminus font as file.
Offline
https://forum.manjaro.org/t/is-it-safe- … hook/87086
The hook is completely optional. I'm not sure why arch team embedded it by default.
Last edited by asklow (2024-01-01 07:47:09)
Offline
https://gitlab.archlinux.org/archlinux/ … e12a95470a
https://adeverteuil.github.io/linux-con … reenshots/
Every hook is technically optional.
The most likely reason is that the console does utf-8, but the fonts are still just 8 bit and there're weird people in this world who use a non-latin glyph sets because both, Roman and British empire didn't bother to conquer them
Offline
You're in rare form today, seth, rare form.
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. -- Doug Gwyn
Offline
Looking at my rare form sideways, it appears my brain couldn't decide between "a non-latin glyph set" and (various) "non-latin glyph sets" and my fingers figured we're just gonna have both.
Much like MS came up w/ the CRLF, at least in my head canon
Offline