Enlarge the font sizes of the boot process - both GRUB & after GRUB (tty)

Here is where you can post tips and tricks to share with other users of MX. Do not ask for help in this Forum.
Message
Author
User avatar
handy
Posts: 611
Joined: Mon Apr 23, 2018 2:00 pm

Enlarge the font sizes of the boot process - both GRUB & after GRUB (tty)

#1 Post by handy »

This morning I got around to enlarging the fonts of the GRUB menu (same method as other non-Debian based distros that I've used), followed by the console font that kicks in after the kernel modules are loaded (KMS). I'll go through each of the two processes below:

1.) This is how you do the GRUB fonts (for those of us that don't use a GUI program to do it for us ;) ):

This one requires you to choose a font that you like (mono fonts are easiest to read). For my 1080p display I choose the DejaVuSansMono20 , here is the command line that creates this font in a GRUB compatible format, in the size that you have chosen & places it in what can be a newly created /boot/grub/fonts directory, though this directory exists already in antiX at least (its a long one line command):

Code: Select all

 sudo grub-mkfont --output=/boot/grub/fonts/DejaVuSansMono20.pf2 \ --size=20 /usr/share/fonts/TTF/dejavu/DejaVuSansMono.ttf
On using the above command in the CLI you will get an error - IGNORE the error. :)

Then we need to open the /etc/default/grub file in our text editor as root (use sudo) & add the following line (or lines, if your memory is as bad as mine):

Code: Select all

 ##==========================_HANDY_================
 # More readable font on high dpi screen, generated with the following
 # 2 lines on ONE line, terminal command (ignore the error messages it works!:
 # sudo grub-mkfont --output=/boot/grub/fonts/DejaVuSansMono20.pf2 \
 #    --size=20 /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf
 ##==================================================
 
 GRUB_FONT=/boot/grub/fonts/DejaVuSansMono20.pf2
Save the edited file & then enter the following at the Terminal prompt:

Code: Select all

 sudo update-grub
Having done that, if you reboot the GRUB menu will be bigger & so will a shortish portion of the boot process, up until the GPU driver kernel module is loaded (KMS), where you'll go back to the default console font.
__________________________________

2.) Now we can use a second process to enlarge the console font, which has the effect of making the text in the boot process that is shown after GRUB (& after the KMS font size change has kicked in) larger & easier to read on higher res' displays.

This process is quite a bit quicker & simpler than it is on Arch systems (I only learned about this "Debian" way, today - the day I wrote this ;) ):

To resize the font used on the boot messages/console we need to configure the font on tty console with the following command:

Code: Select all

sudo dpkg-reconfigure console-setup
Move your way through the requester (it will make sense when you see it) leave all settings as they are but when you get offered the opportunity to change the font, choose a font type, as you need to do that so as to be offered a requester where you can chose the size. On my 1080p res' display I went for the largest size & it is fine, as in it is not too big. You can use trial & error with this one if needs be.

That's it, as simple as that. :D

You have to of course reboot to make it work... :)
Last edited by handy on Sun Aug 05, 2018 7:54 pm, edited 5 times in total.
1_MSI: MAG B560 TORP', i5, RAM 16GB, GTX 1070 Ti 12GB, M2 238GB + USB, MX-23 Fb to Openbox
2_Lenovo: Ideapad 520S, i5, RAM 8GB, GPU i620, HDD 1TB, MX-21 - Openbox
3_Clevo: P150SM-A, i7, RAM 16GB, nVidia 8600, 2x 1TB HDD & M.2 256 GB, MX-21 - Openbox

User avatar
Jerry3904
Administrator
Posts: 21952
Joined: Wed Jul 19, 2006 6:13 am

Re: Enlarge the font sizes of the boot process - both GRUB & after GRUB (tty)

#2 Post by Jerry3904 »

Thanks, nice how-to
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
asqwerth
Developer
Posts: 7231
Joined: Sun May 27, 2007 5:37 am

Re: Enlarge the font sizes of the boot process - both GRUB & after GRUB (tty)

#3 Post by asqwerth »

Nice, handy.

I always wondered about the font change partway through the boot up.

Your tutorial explained why that happened very well.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

User avatar
handy
Posts: 611
Joined: Mon Apr 23, 2018 2:00 pm

Re: Enlarge the font sizes of the boot process - both GRUB & after GRUB (tty)

#4 Post by handy »

Thanks guys. :)

I wasn't sure whether my post was just a repeat of stuff that was already here or not, so I appreciate the feedback. It is unfortunately too easy to not be able to find info' in a forum (especially as the amount of content it holds keeps on growing). That is why I like wikis. It is just a pain that you need to get enough people to use the things instead of just posting the same old questions over & over again in forums. Also, getting people to contribute content, & then there's the maintenance over time... as time goes by things go out of date & people move on to other distros/OS's...
1_MSI: MAG B560 TORP', i5, RAM 16GB, GTX 1070 Ti 12GB, M2 238GB + USB, MX-23 Fb to Openbox
2_Lenovo: Ideapad 520S, i5, RAM 8GB, GPU i620, HDD 1TB, MX-21 - Openbox
3_Clevo: P150SM-A, i7, RAM 16GB, nVidia 8600, 2x 1TB HDD & M.2 256 GB, MX-21 - Openbox

User avatar
Jerry3904
Administrator
Posts: 21952
Joined: Wed Jul 19, 2006 6:13 am

Re: Enlarge the font sizes of the boot process - both GRUB & after GRUB (tty)

#5 Post by Jerry3904 »

I intend to move this to the Wiki, just wanted to see user feedback first.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
handy
Posts: 611
Joined: Mon Apr 23, 2018 2:00 pm

Re: Enlarge the font sizes of the boot process - both GRUB & after GRUB (tty)

#6 Post by handy »

Cool. Jerry I'll post some other stuff that may be of use for the wiki, see how it goes. No ego in it, use whatever you think is suitable. ;)
1_MSI: MAG B560 TORP', i5, RAM 16GB, GTX 1070 Ti 12GB, M2 238GB + USB, MX-23 Fb to Openbox
2_Lenovo: Ideapad 520S, i5, RAM 8GB, GPU i620, HDD 1TB, MX-21 - Openbox
3_Clevo: P150SM-A, i7, RAM 16GB, nVidia 8600, 2x 1TB HDD & M.2 256 GB, MX-21 - Openbox

User avatar
Jerry3904
Administrator
Posts: 21952
Joined: Wed Jul 19, 2006 6:13 am

Re: Enlarge the font sizes of the boot process - both GRUB & after GRUB (tty)

#7 Post by Jerry3904 »

That would really be awesome, it gets lonely in there...
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
Richard
Posts: 1577
Joined: Fri Dec 12, 2008 10:31 am

Re: Enlarge the font sizes of the boot process - both GRUB & after GRUB (tty)

#8 Post by Richard »

I tried the 2nd part, config the console font, which worked as expected.
Thanks for another how-to.
Thinkpad T430 & Dell Latitude E7450, both with MX-21.3.1
kernal 5.10.0-26-amd64 x86_64; Xfce-4.18.0; 8 GB RAM
Intel Core i5-3380M, Graphics, Audio, Video; & SSDs.

User avatar
handy
Posts: 611
Joined: Mon Apr 23, 2018 2:00 pm

Re: Enlarge the font sizes of the boot process - both GRUB & after GRUB (tty)

#9 Post by handy »

Jerry3904 wrote: Sun Aug 05, 2018 9:58 am That would really be awesome, it gets lonely in there...
I understand that one, been in that lonely place on the Manjaro wiki myself. Lately there looks to be a bit more going on over there than there had been, but after ~ 5 years or so contributing to that wiki I've moved on (have been for a while now). I of course wish them the best of luck with it & do still participate in their forum in a very minor way.

@Richard, glad to hear it worked for you. :)
1_MSI: MAG B560 TORP', i5, RAM 16GB, GTX 1070 Ti 12GB, M2 238GB + USB, MX-23 Fb to Openbox
2_Lenovo: Ideapad 520S, i5, RAM 8GB, GPU i620, HDD 1TB, MX-21 - Openbox
3_Clevo: P150SM-A, i7, RAM 16GB, nVidia 8600, 2x 1TB HDD & M.2 256 GB, MX-21 - Openbox

markwiering
Posts: 43
Joined: Sun Aug 04, 2019 6:22 pm

Re: Enlarge the font sizes of the boot process - both GRUB & after GRUB (tty)

#10 Post by markwiering »

Hello there,

The font size of GRUB is fine for me; I followed your second step instead.
I ran

Code: Select all

sudo dpkg-reconfigure console-setup
and then I press Next until I could modify the font size.
Here, the largest I can go with is 16x32, which is already a very small font. Why is this the largest font I can choose? :confused:

Isn't there any other way to increase the font of the tty terminal screen? :confused:
You do not have the required permissions to view the files attached to this post.

Post Reply

Return to “Tips & Tricks by users”