Manjaro Difference between revisions of "Make GRUB menu & boot-up/down fonts bigger/es"

Difference between revisions of "Make GRUB menu & boot-up/down fonts bigger/es"

From Manjaro
(Created page with "sudo grub-mkfont --output=/boot/grub/fonts/DejaVuSansMono20.pf2 \ --size=20 /usr/share/fonts/TTF/dejavu/DejaVuSansMono.ttf")
Tags: Mobile web edit Mobile edit
(Created page with "nota|Espero poder limpiar esta sección.")
Line 152: Line 152:
1=<span lang="en" dir="ltr" class="mw-content-ltr">Use the /usr/share/consolefonts directory to enlarge your boot up/down font</span>|
1=<span lang="en" dir="ltr" class="mw-content-ltr">Use the /usr/share/consolefonts directory to enlarge your boot up/down font</span>|
2=
2=
{{BoxInfo|<span lang="en" dir="ltr" class="mw-content-ltr">note|I look forward to cleaning up this section.</span>}}
{{BoxInfo|nota|Espero poder limpiar esta sección.}}
<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
On Artix, I had to copy the /usr/share/kbd/consolefonts/ directory into /usr/share/consolefonts . Whether I could have used the /usr/share/kbd/consolefonts directory in place or not I don't know (I didn't try). The /etc/conf.d/consolefont file uses the /usr/share/consolefonts path, so I made one.
On Artix, I had to copy the /usr/share/kbd/consolefonts/ directory into /usr/share/consolefonts . Whether I could have used the /usr/share/kbd/consolefonts directory in place or not I don't know (I didn't try). The /etc/conf.d/consolefont file uses the /usr/share/consolefonts path, so I made one.

Revision as of 10:30, 20 May 2023

Other languages:
English • ‎español • ‎русский
Advertencia
Esta pagina esta desactualizada. Si usted ha revisado o actualizado esta pagina y ha encontrado el contenido como adecuado, por favor elimine esta notificación. 2020-12-06
Nota
12-Feb-17 : Antes teníamos que agregar las fuentes de consola al final de la línea HOOKS= en nuestro archivo mkinitcpio.conf, pero ahora ya no es necesario.

Como la colección de todos los encabezados del protocolo del servidor X.Org antes se distribuían por separado, paquetes independientes han sido enrollados en Xorgproto: [1] Entonces, si ha utilizado este procedimiento para aumentar o disminuir el tamaño de las fuentes de su proceso de arranque , debe editar su archivo /etc/mkinitcpio.conf y eliminar consolefonts desde el final de la línea HOOKS=.

Si usted no hacer la edición sugerida, no causará ningún problema, aparte de ver un mensaje de error diciendo (apenas) que las fuentes de la consola no pudieron encontrarse, Cada vez que su kernel a traves de la terminal.

Introducción

Si usted utiliza una resolucion de DPI alta & si quiere leer más fácilmente su pantalla durante el proceso de arranque (& apagado), & si usted no tiene un sistema de arranque extremadamente rápido (usa SSD y similares), entonces esta pagina le mostrará como hacer las fuentes de GRUB mas grandes y como cambiar la fuente utilizada en los procesos de arranque/apagado de la consola. Esto es primeramente para aquellos usuarios que aprecian tener la opción de ver/leer los displays de arranque/apagado, cuando están en vivo. El procedimiento se esfuerza por atender a los usuarios de SystemD y OpenRC.

Que vamos hacer aquí

Este instructivo es realmente un dos en uno, la primera parte es acerca de ampliar la fuente usada por el menú GRUB en la fase inicial del proceso de arranque hasta que el controlador de video se carga.

La segunda parte es sobre identificar primero el modulo GPU a cargar, & luego utilizar la habilidad del modo de configuración del kernel (KMS) para instruirlo a cargar los módulos extremadamente temprano en el proceso de arranque. Que es lo que haremos con el modulo GPU a través del archivo /etc/mkinitcpio.conf. Luego finalizando el proceso reconstruyendo la imagen ramdisk inicial.

Después de esto necesitamos encontrar donde esta el directorio consolefonts & de necesitarlo clonar el directorio /usr/share/kbd/consolefonts en /usr/share/consolefonts. Después de esto necesitamos escoger una fuente, empeñándose en hacerlo lo más rápido e indoloro posible. Luego necesitamos decirle al archivo /etc/conf.d/consolefont que fuente es, guardar & reiniciar a una nueva situación en la que podremos leer el texto a medida que pasa. Ese es el plan.

Dale a GRUB y al proceso de arranque hasta que el módulo GPU cargue una fuente más grande

Esto requiere que escoja una fuente que le guste (fuentes mono son las mas fáciles de leer), yo escogí DejaVuSansMono20 y aquí está la linea de comandos que crea esta fuente en formato compatible con GRUB, en el tamaño que usted ha escogido & lo coloca en el directorio recién creado /boot/grub/fonts (es un comando largo & es todo en una línea):
sudo grub-mkfont --output=/boot/grub/fonts/DejaVuSansMono20.pf2 \ --size=20 /usr/share/fonts/TTF/dejavu/DejaVuSansMono.ttf

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 like me & have a bad memory):

##==========================_UTIL_==========================================
# Fuente más legible en pantalla de altos dpi, generado con las siguientes
# 2 líneas en UNA linea, comando de terminal ignore los mensajes de error¡funciona!:
# sudo grub-mkfont --output=/boot/grub/fonts/DejaVuSansMono24.pf2 \
#    --size=24 /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf
##===========================================================================

GRUB_FONT=/boot/grub/fonts/DejaVuSansMono18.pf2

Salve el archivo editado & luego ingrese lo siguiente en la terminal:

sudo update-grub


Habiendo hecho eso, si usted reinicia el menú GRUB será mas grande & lo será una corta porción del proceso de arranque, hasta que el controlador de la GPU del modulo del kernel se cargue, donde regresará a la fuente por defecto de la consola.

Use KMS para cargar el módulo del kernel de la GPU al principio del proceso de arranque

Use sudo & load /etc/mkinitcpio.conf into your text editor & find the MODULES="" line very near the top of file. Here you will have to put your GPU module name, the three choices that I can show you here are:

Intel on-board (at least all of the intel CPU's that carry a GPU/CPU):

MODULES=(i915)

AMD/ATi:

MODULES=(radeon/amdgpu)

nVidia free:

MODULES=(nouveau)

nVidia proprietary:

MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)

If your MODULES= line has any other modules on it already, just add your new one with a space separating it from the previous one.

You can save & close the file.

For our next trick, we have to identify which kernel branch you are using. Most people will be using an older; more recent; or the most recent, version of the "normally" supported kernel. Such shows itself in the /boot directory like so:

initramfs-6.1-x86_64-fallback.img

initramfs-6.1-x86_64.img
vmlinuz-6.1-x86_64

(this is for Kernel 6.1, it may be different for you)

& would therefore use the following command to rebuild their Init Ramdisk Image:

sudo mkinitcpio -p linux61

(again for kernel version 6.1, replace the version with your)

For those that are using the/a Linux Long Term Support kernel then their identifying /boot files will look like this:

initramfs-linux-lts-fallback.img

initramfs-linux-lts.img
vmlinuz-linux-lts

& would therefore use the following command to rebuild their linux-lts Init Ramdisk Image:

sudo mkinitcpio -p linux-lts

For those using more exotic kernels, you already know how to modify the above command to suit.

For Manjaro users that are using multiple kernels, you are going to need to edit multiple mkinitcpio.conf files that are named to suit each of your kernels. I don't have to bother with that on Artix (Arch/OpenRC), for better & worse. Again, your /boot directory will tell you what to do (as shown in the differences in the examples above).

Use the /usr/share/consolefonts directory to enlarge your boot up/down font

nota
Espero poder limpiar esta sección.

On Artix, I had to copy the /usr/share/kbd/consolefonts/ directory into /usr/share/consolefonts . Whether I could have used the /usr/share/kbd/consolefonts directory in place or not I don't know (I didn't try). The /etc/conf.d/consolefont file uses the /usr/share/consolefonts path, so I made one.

So the first thing that you have to do (before I find out from someone in the Manjaro forum where the consolefonts directory exists) is see whether you have to clone the directory from /usr/share/kbd/ to /usr/share/ or not. After that is sorted, then you need to choose a font. You won't like doing that. Here is a link to an old page (far fewer suitable fonts & its still too many)

Take my advice & use ter-132b this is a font that is large enough for my 15" 1440p display. I expect that it would be great on a 24" 1080p display. If it is too big, you can use a smaller number as will be easily seen in your consolefonts directory.

To tell the kernel to use the chosen custom console font you will need to open the /etc/conf.d/consolefont file & comment out (use the # at the start of the line) any line that says:

consolefont=

Then add your own line. This is what I did:

consolefont="ter-132b"

You need to make no other edits to this file, so close it.

Now from what I can make out on the ArchWiki font page: [2] The above how-to should work on SystemD, as is. I will check on the Manjaro forum & if & where needed modify this page (there shouldn't be much in it as both systemd & openrc use the same kernel).

For Artix (Arch/OpenRC) users, you would need to just once use the following command:

sudo rc-update add consolefont boot

Hopefully I haven't forgotten anything, as this is has been a multi-step process & I lost power & a good deal of the wiki page some time ago & had to do it twice! ;)

This page is still a work in progress & will be polished up as soon

as I'm given the info' that I need via the Manjaro forum. ;)
Cookies help us deliver our services. By using our services, you agree to our use of cookies.