You are not logged in.
Hi
1. Clean arch linux default installation
2. First, via wiki, I successfully set font, for example :
```
setfont /usr/share/kbd/consolefonts/ter-232n.psf.gz
```
3. Try it permanently: single line config in /etc/vconsole.conf
```
FONT=ter-232n
```
And reboot, but the default shell font is not set. What is wrong?
Last edited by maziar (2023-08-20 14:11:52)
Offline
"bash" isn't relevant here, you're looking to configure the linux console.
https://wiki.archlinux.org/title/Linux_ … figuration - the lower three paragraphs, you notably most likely will have to recreate the initramfs.
Offline
"bash" isn't relevant here, you're looking to configure the linux console.
https://wiki.archlinux.org/title/Linux_ … figuration - the lower three paragraphs, you notably most likely will have to recreate the initramfs.
Yes, I Read it
BUT
1. my hook contains: consolefont and recreates initramfs with mkinitcpio
2. no Nvidia or any other gpu installed
3. restart systemd-vconsole-setup.service .... work, but after restart, reset to default
Last edited by maziar (2023-08-19 13:06:15)
Offline
Did you run mkinicpio?
Edit: and did it produce any (relevant) errors?
Is the font in the initramfs?
Is the gpu driver (some GPU will be in the system, right? probably i915) in the initramfs?
Last edited by seth (2023-08-19 13:06:41)
Offline
Did you run mkinicpio?
Is the font in the initramfs?
Is the gpu driver (some GPU will be in the system, right? probably i915) in the initramfs?
I use encrypted disk when inputting password font similar to my set
my hook : HOOKS=(base udev autodetect modconf keyboard keymap consolefont block encrypt filesystems fsck)
restart systemd-vconsole-setup.service .... work, but after restart, reset to default
Last edited by maziar (2023-08-19 13:09:13)
Offline
This does in no way address any of questions in #4. At all.
Offline
Did you run mkinicpio?
Edit: and did it produce any (relevant) errors?
Is the font in the initramfs?
Is the gpu driver (some GPU will be in the system, right? probably i915) in the initramfs?
Did you run mkinicpio?
Edit: and did it produce any (relevant) errors?
Yes, run no relevant error show.
Is the font in the initramfs?
I think NO if initramfs config mkinitcpio.conf is default only change is :
MODULES=(vfat)
HOOKS=(base udev autodetect modconf keyboard keymap consolefont block encrypt filesystems fsck)
Is the gpu driver (some GPU will be in the system, right? Probably i915) in the initramfs?
NO
NO any gpu module in mkinitcpio.conf BUT xf86-video-intel installed
Last edited by maziar (2023-08-19 14:19:35)
Offline
Yes, run no relevant error show.
Better post the actual output…
I think NO if initramfs config mkinitcpio.conf is default only change is :
Translation: you've no idea how to check that. Just ask next time.
cat /proc/cmdline
lsblk -f
sudo lsinitcpio /boot/initramfs-linux.img | grep -iE '(i915|psf)'NO
You understand that this is a problem described in the wiki?
BUT xf86-video-intel installed
That's not a good idea but also completely irrelevant to the subject at hand.
Offline
sudo lsinitcpio /boot/initramfs-linux.img | grep -iE '(i915|psf)'
consolefont.psf
cat /proc/cmdline:
BOOT_IMAGE=/vmlinuz-linux root=UUID=e99b07e8-6f21-4451-92d0-cd4222efa6b7 rw rootflags=subvol=@ cryptdevice=UUID=d0e326ea-b5ae-4cb7-ad05-2c98b0f6af42:cryptroot root=/dev/mapper/cryptroot loglevel=3
lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
nvme0n1
├─nvme0n1p1 vfat FAT32 ESP 94C0-4F92 1G 10% /boot
├─nvme0n1p2
├─nvme0n1p3 ntfs 489CBB6D9CBB53E2
├─nvme0n1p4
├─nvme0n1p5 swap 1 84b3dab4-2511-4bba-848a-43e929452340 [SWAP]
├─nvme0n1p6 ntfs 0054B79654B78CC2
├─nvme0n1p7 crypto_LUKS 2 d0e326ea-b5ae-4cb7-ad05-2c98b0f6af42
│ └─cryptroot btrfs cryptroot e99b07e8-6f21-4451-92d0-cd4222efa6b7 274.9G 1% /var/tmp
│ /var/log
│ /var/cache
│ /home
│ /
Offline
It doesn't look like the font is in the initramfs. You also still haven't provided the output of mkinitcpio yet, please do so now.
Last edited by Trilby (2023-08-19 17:35:08)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
It doesn't look like the font is in the initramfs. You also still haven't provided the output of mkinitcpio yet, please do so now.
the mean output of mkinitcpio -p linux ?
if yes :
Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
-> -k /boot/vmlinuz-linux -g /boot/initramfs-linux.img --microcode /boot/intel-ucode.img
==> Starting build: '6.4.11-arch1-1'
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
-> Running build hook: [block]
-> Running build hook: [encrypt]
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux.img'
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
==> Using default configuration file: '/etc/mkinitcpio.conf'
-> -k /boot/vmlinuz-linux -g /boot/initramfs-linux-fallback.img -S autodetect --microcode /boot/intel-ucode.img
==> Starting build: '6.4.11-arch1-1'
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'aic94xx'
==> WARNING: Possibly missing firmware for module: 'bfa'
==> WARNING: Possibly missing firmware for module: 'qed'
==> WARNING: Possibly missing firmware for module: 'qla1280'
==> WARNING: Possibly missing firmware for module: 'qla2xxx'
==> WARNING: Possibly missing firmware for module: 'wd719x'
-> Running build hook: [encrypt]
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-fallback.img'
==> Image generation successfulOffline
So the consolefont hook runs w/o error.
Add the kms hook, run mkinitcpio again and then
lsinitcpio /boot/initramfs-linux.img | grep -iE '(font|i915|console|psf|fnt)' | curl -F 'f:1=<-' ix.ioPost the link you get.
Offline
So the consolefont hook runs w/o error.
Add the kms hook, run mkinitcpio again and thenlsinitcpio /boot/initramfs-linux.img | grep -iE '(font|i915|console|psf|fnt)' | curl -F 'f:1=<-' ix.ioPost the link you get.
consolefont.psf
hooks/consolefont
usr/bin/loadfont
usr/bin/setfontOffline
So the consolefont.psf *now* is in the initramfs, but i915 isn't.
Did you not add the kms hook?
Oc. "xf86-video-intel" could just be misleading…
lspci -kLast edited by seth (2023-08-20 08:23:13)
Offline
So the consolefont.psf *now* is in the initramfs, but i915 isn't.
Did you not add the kms hook?
Oc. "xf86-video-intel" could just be misleading…lspci -k
hook is sended in last :
my hook : HOOKS=(base udev autodetect modconf keyboard keymap consolefont block encrypt filesystems fsck)
lspci:
00:00.0 Host bridge: Intel Corporation 12th Gen Core Processor Host Bridge/DRAM Registers (rev 02)
Subsystem: ASUSTeK Computer Inc. 12th Gen Core Processor Host Bridge/DRAM Registers
Kernel driver in use: igen6_edac
Kernel modules: igen6_edac
00:01.0 PCI bridge: Intel Corporation 12th Gen Core Processor PCI Express x16 Controller #1 (rev 02)
Subsystem: ASUSTeK Computer Inc. 12th Gen Core Processor PCI Express x16 Controller
Kernel driver in use: pcieport
00:02.0 VGA compatible controller: Intel Corporation Alder Lake-P Integrated Graphics Controller (rev 0c)
DeviceName: Second VGA
Subsystem: ASUSTeK Computer Inc. Alder Lake-P Integrated Graphics Controller
Kernel driver in use: i915
Kernel modules: i915
00:04.0 Signal processing controller: Intel Corporation Alder Lake Innovation Platform Framework Processor Participant (rev 02)
Subsystem: ASUSTeK Computer Inc. Alder Lake Innovation Platform Framework Processor Participant
Kernel driver in use: proc_thermal_pci
Kernel modules: processor_thermal_device_pci
00:06.0 PCI bridge: Intel Corporation 12th Gen Core Processor PCI Express x4 Controller #0 (rev 02)
Kernel driver in use: pcieport
00:07.0 PCI bridge: Intel Corporation Alder Lake-P Thunderbolt 4 PCI Express Root Port #0 (rev 02)
Kernel driver in use: pcieport
00:08.0 System peripheral: Intel Corporation 12th Gen Core Processor Gaussian & Neural Accelerator (rev 02)
Subsystem: ASUSTeK Computer Inc. 12th Gen Core Processor Gaussian & Neural Accelerator
00:0a.0 Signal processing controller: Intel Corporation Platform Monitoring Technology (rev 01)
Kernel driver in use: intel_vsec
Kernel modules: intel_vsec
00:0d.0 USB controller: Intel Corporation Alder Lake-P Thunderbolt 4 USB Controller (rev 02)
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
00:0d.2 USB controller: Intel Corporation Alder Lake-P Thunderbolt 4 NHI #0 (rev 02)
Subsystem: Device 2222:1111
Kernel driver in use: thunderbolt
Kernel modules: thunderbolt
00:14.0 USB controller: Intel Corporation Alder Lake PCH USB 3.2 xHCI Host Controller (rev 01)
Subsystem: ASUSTeK Computer Inc. Alder Lake PCH USB 3.2 xHCI Host Controller
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
00:14.2 RAM memory: Intel Corporation Alder Lake PCH Shared SRAM (rev 01)
Subsystem: ASUSTeK Computer Inc. Alder Lake PCH Shared SRAM
00:14.3 Network controller: Intel Corporation Alder Lake-P PCH CNVi WiFi (rev 01)
DeviceName: WLAN
Subsystem: Intel Corporation Wi-Fi 6E AX211 160MHz
Kernel driver in use: iwlwifi
Kernel modules: iwlwifi
00:15.0 Serial bus controller: Intel Corporation Alder Lake PCH Serial IO I2C Controller #0 (rev 01)
Subsystem: ASUSTeK Computer Inc. Alder Lake PCH Serial IO I2C Controller
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:15.1 Serial bus controller: Intel Corporation Alder Lake PCH Serial IO I2C Controller #1 (rev 01)
Subsystem: ASUSTeK Computer Inc. Alder Lake PCH Serial IO I2C Controller
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:16.0 Communication controller: Intel Corporation Alder Lake PCH HECI Controller (rev 01)
Subsystem: ASUSTeK Computer Inc. Alder Lake PCH HECI Controller
Kernel driver in use: mei_me
Kernel modules: mei_me
00:1c.0 PCI bridge: Intel Corporation Device 51be (rev 01)
Subsystem: ASUSTeK Computer Inc. Device 1c42
Kernel driver in use: pcieport
00:1f.0 ISA bridge: Intel Corporation Alder Lake PCH eSPI Controller (rev 01)
Subsystem: ASUSTeK Computer Inc. Alder Lake PCH eSPI Controller
00:1f.3 Audio device: Intel Corporation Alder Lake PCH-P High Definition Audio Controller (rev 01)
Subsystem: ASUSTeK Computer Inc. Alder Lake PCH-P High Definition Audio Controller
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl
00:1f.4 SMBus: Intel Corporation Alder Lake PCH-P SMBus Host Controller (rev 01)
Subsystem: ASUSTeK Computer Inc. Alder Lake PCH-P SMBus Host Controller
Kernel driver in use: i801_smbus
Kernel modules: i2c_i801
00:1f.5 Serial bus controller: Intel Corporation Alder Lake-P PCH SPI Controller (rev 01)
Subsystem: ASUSTeK Computer Inc. Alder Lake-P PCH SPI Controller
Kernel driver in use: intel-spi
Kernel modules: spi_intel_pci
01:00.0 VGA compatible controller: NVIDIA Corporation GA107M [GeForce RTX 3050 Ti Mobile] (rev a1)
DeviceName: VGA
Subsystem: ASUSTeK Computer Inc. GA107M [GeForce RTX 3050 Ti Mobile]
Kernel modules: nouveau
01:00.1 Audio device: NVIDIA Corporation Device 2291 (rev a1)
Subsystem: ASUSTeK Computer Inc. Device 1c42
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
06:00.0 Non-Volatile memory controller: Sandisk Corp PC SN740 NVMe SSD (rev 01)
Subsystem: Sandisk Corp PC SN740 NVMe SSD
Kernel driver in use: nvme
Kernel modules: nvme
07:00.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge DD 2018] (rev 06)
Subsystem: Device 1c7a:de56
Kernel driver in use: pcieport
08:01.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge DD 2018] (rev 06)
Subsystem: Device 1c7a:de56
Kernel driver in use: pcieport
08:02.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge DD 2018] (rev 06)
Subsystem: Device 1c7a:de56
Kernel driver in use: pcieport
08:03.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge DD 2018] (rev 06)
Subsystem: Device 1c7a:de56
Kernel driver in use: pcieport
08:04.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge DD 2018] (rev 06)
Subsystem: Device 1c7a:de56
Kernel driver in use: pcieport
1c:00.0 USB controller: Intel Corporation JHL7540 Thunderbolt 3 USB Controller [Titan Ridge DD 2018] (rev 06)
Subsystem: Device 1c7a:de56
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
1d:00.0 Ethernet controller: Aquantia Corp. AQC107 NBase-T/IEEE 802.3bz Ethernet Controller [AQtion] (rev 02)
Subsystem: Device 1c7a:de2b
Kernel driver in use: atlantic
Kernel modules: atlantic
31:00.0 SD Host controller: Genesys Logic, Inc GL9755 SD Host Controller (rev 01)
Subsystem: ASUSTeK Computer Inc. GL9755 SD Host Controller
Kernel driver in use: sdhci-pci
Kernel modules: sdhci_pciLast edited by maziar (2023-08-20 08:32:53)
Offline
Add the kms hook, run mkinitcpio again
If the fonts appear to not change on boot, or change only temporarily, it is most likely that they got reset when graphics driver was initialized and console was switched to framebuffer. By default, all in-tree kernel drivers are loaded early
See your /etc/mkinitcpio.conf.pacnew
Offline
seth wrote:Add the kms hook, run mkinitcpio again
The wiki wrote:If the fonts appear to not change on boot, or change only temporarily, it is most likely that they got reset when graphics driver was initialized and console was switched to framebuffer. By default, all in-tree kernel drivers are loaded early
See your /etc/mkinitcpio.conf.pacnew
Thx
re adding kms fix problem
How do I read more about kms?
Last edited by maziar (2023-08-20 08:46:35)
Offline
https://wiki.archlinux.org/title/Kernel_mode_setting but the point is to load that in the initramfs before applying the console font.
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline