Skip to main content
Topic: Fonts at system boot (Read 587 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic.

Fonts at system boot

The current boot of my computer is very annoying because of the fonts.

It looks like this: grub boots up and asks for a password (the font is too large here) > after entering the password, messages appear

Code: [Select]
Welcome to Artix Linux
Loading linux linux-hardened...
Loading Initial ramdisk...

These messages have a strange font and are also oversized. After that, the screen flashes and then shows the messages in a normal size font.

I would like to set the same font size for the entire upload process. I tried setting the screen resolution to grub but that doesn't work, the resolution I need is not available. I tried using 915resolution hack, but it didn't work either, the grub console writes that there is no such package, although it is installed. I also tried to install a terminal font for grub but it doesn't apply to these messages.

In /etc/mkinitcpio.confI have:

Code: [Select]
MODULES=(i915)
...
HOOKS=(base udev autodetect modconf kms encrypt keyboard keymap consolefont block lvm2 filesystems fsck)

What else can I do?

Re: Fonts at system boot

Reply #1
Quote
I tried setting the screen resolution to grub but that doesn't work
That's because grub only does framebuffer resolutions, pick some standard resolutions starting with 1280x800 until 2560x1440 (that's for 16:9 of course, you know your hardware) and you'll get one that works; it will be lower than native but still better than the very low default ones. For my 4k display this worked for instance:
Code: [Select]
GRUB_GFXMODE="2560x1440"
Quote
I would like to set the same font size for the entire upload process.
Code: [Select]
GRUB_GFXPAYLOAD_LINUX="keep"
Quote
I also tried to install a terminal font for grub but it doesn't apply to these messages.
Did you try by any chance from the grub-customizer GUI - Appearance settings?

Re: Fonts at system boot

Reply #2
Quote
it will be lower than native but still better

Setting a different resolution will not change the situation with screen flashing and changing fonts.

Quote
Code: [Select]
GRUB_GFXPAYLOAD_LINUX="keep"
This setting was already the default, I did not touch it.

Quote
Did you try by any chance from the grub-customizer GUI - Appearance settings?

No, I'm trying to do it without additional programs.

 

Re: Fonts at system boot

Reply #3
Then that resolution is either not applied or is not compatible when gpu driver loads, reason why you need to test all the framebuffer sizes.
Are you really sure that when the screen flashes and "changes font" it isn't actually changing resolution? Are you on laptop or monitor?
Also are you really sure you are saving the grub cfg properly?

What GPU are you using, if by that link you use a i915 intel then those parameters also work on my old thinkpad.

You can also set grub to quiet so that second stage won't be displayed.

Re: Fonts at system boot

Reply #4
Are you really sure that when the screen flashes and "changes font" it isn't actually changing resolution? Are you on laptop or monitor?
No, this is just a guess. Laptop + intel gpu.
Quote
Also are you really sure you are saving the grub cfg properly?
After making changes I do
Code: [Select]
sudo grub-mkconfig -o /boot/grub/grub.cfg
Even tried reinstalling the grub
Code: [Select]
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub /dev/sda --recheck
Perhaps this is due to full disk encryption...
Quote
You can also set grub to quiet so that second stage won't be displayed.
There is quiet in GRUB_CMDLINE_LINUX_DEFAULT if I understand correctly.



Re: Fonts at system boot

Reply #7

My /etc/mkinitcpio.conf looks like that:

Code: [Select]
MODULES=(i915)
...
FILES=(/root/secrets/ssd.bin /usr/share/kbd/consolefonts/ter-u16b.psf.gz)
...
HOOKS=(consolefont base udev autodetect modconf kms encrypt keyboard keymap block lvm2 filesystems fsck)

Created /etc/conf.d/consolefont:

Code: [Select]
consolefont="ter-u16b"
consoletranslation="8859-1_to_uni"

KEYMAP=us
FONT=$consolefont
FONTMAP=$consoletranslation

then

Code: [Select]
sudo mkinitcpio -P
sudo grub-mkconfig -o /boot/grub/grub.cfg
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub /dev/sda --recheck

reinstalled grub just in case. The second link says I should add consolefont to autoload for openrc, but I'm using dinit and didn't find it in its directories...
Nothing has changed since the reboot...