Сделайте шрифт меню GRUB и загрузки/выключения более крупным
Views
Actions
Namespaces
Variants
Tools
Вторая часть заключается в том, чтобы сначала определить модуль GPU для загрузки, а затем использовать возможности Kernel Mode Setting (KMS) ядра Linux для указания ему загружать модули на самом раннем этапе процесса загрузки. Именно это мы и сделаем с модулем GPU через файл /etc/mkinitcpio.conf. Затем завершим этот процесс восстановлением начального образа ramdisk.
После этого нам нужно найти каталог consolefonts и, если нужно, клонировать каталог /usr/share/kbd/consolefonts в /usr/share/consolefonts. После этого нам нужно выбрать шрифт, хотя я постараюсь сделать это как можно быстрее и безболезненнее. Затем нам нужно указать файлу /etc/conf.d/consolefont, что это за шрифт, сохранить и перезагрузиться в новой ситуации, где мы сможем действительно читать текст по мере его прохождения. Таков план.sudo grub-mkfont --output=/boot/grub/fonts/DejaVuSansMono20.pf2 \ --size=20 /usr/share/fonts/TTF/dejavu/DejaVuSansMono.ttf
Затем нам нужно открыть файл /etc/default/grub в текстовом редакторе от root (используйте sudo) и добавить следующую строку (или строки, если у вас, как и у меня, плохая память):
##==========================_HANDY_========================================== # Более читабельный шрифт на экране с высоким dpi, созданный с помощью # следующих 2 строк на ОДНОЙ строке, команда терминала (игнорируйте сообщения # об ошибках - это работает! # 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
Сохраните отредактированный файл, а затем введите следующее в приглашении терминала:
sudo update-grub
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.
Вы можете сохранить и закрыть файл.
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-linux-fallback.img
initramfs-linux.img vmlinuz-linux
& would therefore use the following command to rebuild their Init Ramdisk Image:
sudo mkinitcpio -p linux
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).
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=
Затем добавьте свою собственную строку. Вот что я сделал:
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).
Для пользователей Artix (Arch/OpenRC) достаточно один раз использовать следующую команду:
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. ;)