You are not logged in.

#1 2023-12-18 08:50:47

user11
Member
Registered: 2023-10-19
Posts: 58

A more incisive way of changing the vconsole/kernel font.

Hi, on /usr/share/kbd/consolefonts I have the file:
Unifont-APL8x16-15.psf.gz

On /etc/vconsole.conf I have set:
FONT=Unifont-APL8x16-15

On /etc/mkinitcpio.conf I have add to my hooks:
consolefont

After the last step I did
sudo mkinitcpio -P

I rebooted

The font works, but I can see, for a brief moment, the font changing from the default one to what I defined.
Anyway to not make it possible to see happen?

Thanks.

Last edited by user11 (2023-12-18 08:51:15)

Offline

#2 2023-12-18 17:44:59

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: A more incisive way of changing the vconsole/kernel font.

Is the consolefont hook placed early in the array? The hooks are run in order. This is why you should post the full configuration rather than excerpts and vague descriptions.


Jin, Jîyan, Azadî

Offline

#3 2023-12-18 19:38:12

user11
Member
Registered: 2023-10-19
Posts: 58

Re: A more incisive way of changing the vconsole/kernel font.

Hi, thanks for replying.
I switched the consolefont hook to the first spot, but it's still the same thing.

Here's what's inside the /etc/mkinitcpio.conf file:

MODULES=(btrfs)
BINARIES=(/usr/bin/btrfs)
FILES=()
HOOKS=(consolefont base udev autodetect keyboard keymap modconf block filesystems fsck)

Offline

#4 2023-12-18 20:10:10

glenjo
Member
From: Pacific NW
Registered: 2020-06-09
Posts: 53

Re: A more incisive way of changing the vconsole/kernel font.

Are you referring to the "Running early hooks" message (and a couple other lines) which are displayed during the boot process?

Offline

#5 2023-12-18 20:12:24

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: A more incisive way of changing the vconsole/kernel font.

The base hook needs to go first.

I've just tested and this works for me (ie, the sun12x22 font is the first font that appears on the TTY, there is no switch):

~$ grep -v '^$\|^#' /etc/mkinitcpio.conf
MODULES=(amdgpu nvme btrfs)
BINARIES=(/usr/bin/setfont)
FILES=()
HOOKS=(base consolefont)
COMPRESSION="cat"
~$ cat /etc/vconsole.conf
KEYMAP=uk
FONT=sun12x22
~$

Note the early KMS start for my (AMD) graphics card. Perhaps try that also?

https://wiki.archlinux.org/title/Kernel … _KMS_start


Jin, Jîyan, Azadî

Offline

#6 2023-12-18 22:48:13

user11
Member
Registered: 2023-10-19
Posts: 58

Re: A more incisive way of changing the vconsole/kernel font.

I see, thanks for all the info.

I tried to do with the base hook first and also with the early KMS start for my Intel (i915) graphics, but for the font I'm using (the GNU unifont adapted to the console format), it's still not working as I expect.

I'll just deal with it, I think.

Thanks for the support!

Offline

Board footer

Powered by FluxBB