You are not logged in.

#1 2024-04-07 21:13:09

szczot3k
Member
Registered: 2024-04-07
Posts: 3

[SOLVED] tty font gets overridden

Hi,
I'm trying to set the tty font (powerline patched) via /etc/vconsole.conf, but it only works for a short while while booting, and gets overridden somewhere in the boot process.

What I've verified so far:
0. Set the font in /etc/vconsole.conf:

# Written by systemd-localed(8) or systemd-firstboot(1), read by systemd-localed
# and systemd-vconsole-setup(8). Use localectl(1) to update this file.
KEYMAP=pl2
FONT=ter-powerline-v32n
XKBLAYOUT=pl

1. setfont ter-powerline-v32n works (only for the current boot)
2. /usr/share/kbd/consolefonts has my font

-rw-r--r-- 1 root root 5929 Mar 11 22:16 /usr/share/kbd/consolefonts/ter-powerline-v32n.psf.gz

3. /etc/mkinicpio.conf has the consolefont hook

HOOKS=(base udev autodetect keyboard keymap consolefont modconf block encrypt filesystems fsck)

3.1. And I've regenerated the UKI
4. `journalctl -b` - didn't find anything useful - https://bpa.st/E43A

Any ideas? Read through the wiki topic, didn't find anything that would help here.

Last edited by szczot3k (2024-04-08 17:01:02)

Offline

#2 2024-04-08 08:20:17

seth
Member
Registered: 2012-09-03
Posts: 51,689

Re: [SOLVED] tty font gets overridden

a short while while booting, and gets overridden somewhere in the boot process

More when the initramfs transitions to the installed system or when agetty starts (right before you get to login - or maybe even only afterwards)?
Anything for

grep -r setfont /etc/systemd/system/

Online

#3 2024-04-08 15:47:14

szczot3k
Member
Registered: 2024-04-07
Posts: 3

Re: [SOLVED] tty font gets overridden

it seems like it's happening when initramfs transitions to the installed system  (there's still a ~second of delay before I can login) but also could be when agetty starts
grepping /etc/systemd/system/ for setfont yields nothing

Offline

#4 2024-04-08 16:33:08

seth
Member
Registered: 2012-09-03
Posts: 51,689

Re: [SOLVED] tty font gets overridden

So vconsole is applied (through the consolefont hook) in the initramfs but not to the installed system - that's kinda the opposite of what one might expect.
What happens if you remove /etc/vconsole.conf (but don't rebuild the initramfs)?

Do you have https://wiki.archlinux.org/title/Kernel … _KMS_start ?
Or does the framebuffer resolution change after the initramfs?

Online

#5 2024-04-08 17:00:41

szczot3k
Member
Registered: 2024-04-07
Posts: 3

Re: [SOLVED] tty font gets overridden

turns out adding a kms hook into mkinitcpio helped - the framebuffer resolution did in fact change after the initramfs, and now I'm pretty sure that I was just taking it for "applying the wrong font", thank you so much, that was a dumb mistake!

Offline

Board footer

Powered by FluxBB