Failed to start Virtual console Setup error message

Hi all,

On booting, I keep getting an error message FAILED Failed to start Virtual Console Setup.

Now to be clear, it is not interfering with anything in any way. The error message briefly displays on its own against a black boot screen and then disappears, after which everything works perfectly. I just find it annoying. I read somewhere it has something to do with a font missing or something.

There is a similar post on this forum but I find it difficult to follow.

I am running Manjaro 6.6.34-1 LTS kernel, although the error message does not seem specific to any particular kernel.

Could somebody please walk me step-by-step through removing that annoying boot message? (Yes, I could just ignore it.)

Thank you for your time.

Hi @newbietolinux

I made some notes a while ago when I too became a little pedantic about this message. The following is a result of my research at the time:

consolefont

The consolefont hook is enabled by default. If no console font is defined, a warning message is triggered. While this warning can be safely ignored, it does serve as a reminder that further configuration is possible, otherwise, there is no real benefit in keeping the hook, unless you actually wish to specify a font.

The technically correct solution would be to remove the consolefont build hook from /etc/mkinitcpio.conf; otherwise, your only resolve is to ignore the warning (treat it as noise), or configure a console font.

What I did to change the default console font

In this instance I’ll simply fill in the blanks with sensible defaults (for me).

1. Provide a console font name in /etc/vconsole.conf:

cat /etc/vconsole.conf

# This was my initial output (not overly exciting)
KEYMAP=au
FONT=
FONT_MAP=
  • The virtual console typically uses CP437 by default (for reference only).

  • The console font name is taken from the list in /usr/share/kbd/consolefonts/.

    • List compatible terminal fonts:

      ls -l /usr/share/kbd/consolefonts/ | grep -i ".psfu.gz"
      
  • The KEYMAP value was changed from au to us (defaults to us if left empty).

sudo nano /etc/vconsole.conf

# These are the changes made (my typical defaults)
KEYMAP=us
FONT=default8x16
FONT_MAP=UTF-8

2. Add setfont to the BINARIES array in /etc/mkinitcpio.conf:

If the consolefont build hook is enabled and a console font is specified in /etc/vconsole.conf, then setfont must be added to the BINARIES array in /etc/mkinitcpio.conf.

sudo nano /etc/mkinitcpio.conf

# Added setfont to the BINARIES array
BINARIES=(setfont)

3. Check that graphics the driver is referenced in

# Verify the graphic driver is set (AMD:amdgpu / radeon, Nvidia:nouveau, Intel:i915)
BINARIES=(radeon)

4. Check that locale is set properly in /etc/locale.conf:

LANG=en_AU.UTF-8

5. Finally, enable these changes and reboot:

sudo mkinitcpio -P

As far as I’m aware, simply removing the consolefont hook would cause the message to not show, and would otherwise do no real harm. Keep in mind, I didn’t perform an exhaustive search on this point.

Additionally, before changing the font globally, I’d recommend seeking advice on the better fonts to use for the purpose.

As you will see, the font I used (in my notes) was the default font, in any case. I did this in lieu of changing to another font at a later date (something I simply forgot about); but, at least the message was gone.

Simply removing the hook would still have done that.

I hope this information is useful and that you can draw your own conclusions as to whether making any changes is worth your effort.

Cheers.

1 Like

Open up a terminal window and type the following command… :point_down:

sudo nano /etc/mkinitcpio.conf

Look for the line that reads… :point_down:

HOOKS=( udev ...

… and remove the word consolefont from that line. Save the file with CtrlO followed by Enter, and exit the editor with CtrlX.

Now, at the command prompt, issue the following command… :point_down:

sudo mkinitcpio -P

This should remedy the problem. Then reboot your system and see whether it does indeed get rid of that message. :wink:

1 Like

Thanks, soundofthunder.

There is a lot in here I will have to go through carefully to make sure I understand.

Thanks, Aragorn.

I can’t find what you are referring to under HOOKS, though:

> `HOOKS`
> # This is the most important setting in this file.  The HOOKS control the
> # modules and scripts added to the image, and what happens at boot time.
> # Order is important, and it is recommended that you do not change the
> # order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for
> # help on a given hook.
> # 'base' is _required_ unless you know precisely what you are doing.
> # 'udev' is _required_ in order to automatically load modules
> # 'filesystems' is _required_ unless you specify your fs modules in MODULES
> # Examples:
> ##   This setup specifies all modules in the MODULES setting above.
> ##   No raid, lvm2, or encrypted root is needed.
> #    HOOKS=(base)
> #
> ##   This setup will autodetect all modules for your system and should
> ##   work as a sane default
> #    HOOKS=(base udev autodetect block filesystems)

That’s because you’re looking in the comments section – scroll down untill you find the HOOKS() array.

When you find it, post it here so we’re all on the same page.

1 Like

ah okay!

As @soundofthunder said, those are comments. This is common practice in UNIX configuration files and shell scripts: if the line starts with a “#”, then it’s a comment.

The line you’re looking for sits closer to the bottom of the file.

Ok, thanks.

This is the array with consolefont removed;

HOOKS=(base udev autodetect modconf kms block keyboard keymap filesystems fsck)

Now I will go back and save and exit the editor as instructed…

1 Like

…and reboot.

1 Like

Aw, not sure what I did wrong but after rebooting the message displayed again.

Could you post the output of

cat /etc/mkinitcpio.conf

System info:

sudo inxi --admin --verbosity=7 --filter --no-host --width
[sudo] password for manupc: 
System:
  Kernel: 6.6.34-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 14.1.1
    clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.6-x86_64
    root=UUID=1adc77d4-359c-4d50-8e77-204cccc1b265 rw quiet apparmor=1
    security=apparmor udev.log_priority=3 ibt=off
  Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 wm: xfwm4 v: 4.18.0
    with: xfce4-panel tools: light-locker dm: LightDM v: 1.32.0 Distro: Manjaro
    base: Arch Linux
Machine:
  Type: Desktop Mobo: Micro-Star model: PRO B660M-E DDR4 (MS-7D46) v: 1.0
    serial: <filter> uuid: cc8ba569-4dc8-2116-a501-d8bbc1dfccda UEFI: American
    Megatrends LLC. v: 2.00 date: 12/27/2021
Battery:
  Message: No system battery data found. Is one present?
Memory:
  System RAM: total: 16 GiB available: 15.48 GiB used: 1.76 GiB (11.4%)
  Array-1: capacity: 64 GiB slots: 4 modules: 1 EC: None
    max-module-size: 16 GiB note: est.
  Device-1: Controller0-DIMMA1 type: DDR4 detail: synchronous size: 16 GiB
    speed: 2133 MT/s volts: curr: 1.2 min: 1.2 max: 1.2 width (bits): data: 64
    total: 64 manufacturer: Corsair part-no: CMK16GX4M1D3600C18 serial: N/A
  Device-2: Controller1-DIMMB1 type: no module installed
CPU:
  Info: model: 12th Gen Intel Core i5-12400F socket: U3E1 bits: 64 type: MT MCP
    arch: Alder Lake gen: core 12 level: v3 note: check built: 2021+
    process: Intel 7 (10nm ESF) family: 6 model-id: 0x97 (151) stepping: 2
    microcode: 0x35
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 480 KiB desc: d-6x48 KiB; i-6x32 KiB L2: 7.5 MiB desc: 6x1.2 MiB
    L3: 18 MiB desc: 1x18 MiB
  Speed (MHz): avg: 800 min/max: 800/4400 base/boost: 2475/4400 scaling:
    driver: intel_pstate governor: powersave volts: 0.8 V ext-clock: 100 MHz
    cores: 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800 7: 800 8: 800 9: 800
    10: 800 11: 800 12: 800 bogomips: 59916
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_lbr arch_perfmon art avx avx2 avx_vnni bmi1 bmi2
    bts cat_l2 cdp_l2 clflush clflushopt clwb cmov constant_tsc cpuid
    cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts ept ept_ad erms est f16c
    flexpriority flush_l1d fma fpu fsgsbase fsrm fxsr gfni hfi ht hwp
    hwp_act_window hwp_epp hwp_notify hwp_pkg_req ibpb ibrs ibrs_enhanced ida
    intel_pt invpcid lahf_lm lm mca mce md_clear mmx monitor movbe movdir64b
    movdiri msr mtrr nonstop_tsc nopl nx ospke pae pat pbe pclmulqdq pdcm
    pdpe1gb pebs pge pku pln pni popcnt pse pse36 pts rdpid rdrand rdseed
    rdt_a rdtscp rep_good sdbg sep serialize sha_ni smap smep
    split_lock_detect ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm
    tm2 tpr_shadow tsc tsc_adjust tsc_deadline_timer tsc_known_freq umip
    user_shstk vaes vme vmx vnmi vpclmulqdq vpid waitpkg x2apic xgetbv1 xsave
    xsavec xsaveopt xsaves xtopology xtpr
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Enhanced / Automatic IBRS; IBPB: conditional;
    RSB filling; PBRSB-eIBRS: SW sequence; BHI: BHI_DIS_S
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA GK208B [GeForce GT 730] vendor: ASUSTeK driver: nvidia
    v: 470.256.02 alternate: nouveau,nvidia_drm non-free: series: 470.xx+
    status: legacy-active (EOL~2024-09-xx) arch: Kepler code: GKxxx
    process: TSMC 28nm built: 2012-2018 pcie: gen: 2 speed: 5 GT/s lanes: 4
    link-max: lanes: 8 bus-ID: 01:00.0 chip-ID: 10de:1287 class-ID: 0300
  Display: x11 server: X.Org v: 21.1.13 compositor: xfwm4 v: 4.18.0 driver:
    X: loaded: nvidia gpu: nvidia display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 101 s-size: 483x272mm (19.02x10.71")
    s-diag: 554mm (21.82")
  Monitor-1: Unknown-1 mapped: HDMI-0 res: 1920x1080 hz: 60 dpi: 102
    size: 476x268mm (18.74x10.55") modes: 1920x1080
  API: OpenGL Message: Unable to show GL data. glxinfo is missing.
Audio:
  Device-1: Intel Alder Lake-S HD Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel alternate: snd_sof_pci_intel_tgl
    bus-ID: 00:1f.3 chip-ID: 8086:7ad0 class-ID: 0403
  Device-2: NVIDIA GK208 HDMI/DP Audio vendor: ASUSTeK driver: snd_hda_intel
    v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 4 link-max: lanes: 8
    bus-ID: 01:00.1 chip-ID: 10de:0e0f class-ID: 0403
  API: ALSA v: k6.6.34-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 1.0.7 status: n/a (root, process) tools: pw-cli
  Server-3: PulseAudio v: 17.0 status: active (root, process)
    with: pulseaudio-alsa type: plugin tools: pacat,pactl,pavucontrol
Network:
  Device-1: Intel Ethernet I219-V vendor: Micro-Star MSI driver: e1000e
    v: kernel port: N/A bus-ID: 00:1f.6 chip-ID: 8086:1a1d class-ID: 0200
  IF: eno1 state: up speed: 100 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  Info: services: NetworkManager
  WAN IP: <filter>
Bluetooth:
  Message: No bluetooth data found.
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 476.94 GiB used: 124.14 GiB (26.0%)
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Hikvision
    model: HS-SSD-E3000 512G size: 476.94 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: SN06738 temp: 41.9 C scheme: GPT
  SMART: yes health: PASSED on: 114d 14h cycles: 2,160
    read-units: 18,857,431 [9.65 TB] written-units: 9,326,508 [4.77 TB]
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 476.64 GiB size: 468.09 GiB (98.21%)
    used: 124.14 GiB (26.5%) fs: ext4 block-size: 4096 B dev: /dev/nvme0n1p2
    maj-min: 259:2 label: N/A uuid: 1adc77d4-359c-4d50-8e77-204cccc1b265
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 316 KiB (0.1%) fs: vfat block-size: 512 B dev: /dev/nvme0n1p1
    maj-min: 259:1 label: NO_LABEL uuid: 49F1-3C7C
Swap:
  Alert: No swap data was found.
Unmounted:
  Message: No unmounted partitions found.
USB:
  Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 16 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Device-1: 1-7:2 info: Logitech Mouse type: mouse driver: hid-generic,usbhid
    interfaces: 1 rev: 2.0 speed: 1.5 Mb/s (183 KiB/s) lanes: 1 mode: 1.0
    power: 100mA chip-ID: 046d:c077 class-ID: 0301
  Hub-2: 1-9:3 info: Genesys Logic Hub ports: 4 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 100mA
    chip-ID: 05e3:0608 class-ID: 0900
  Hub-3: 2-0:1 info: super-speed hub ports: 10 rev: 3.1
    speed: 20 Gb/s (2.33 GiB/s) lanes: 2 mode: 3.2 gen-2x2 chip-ID: 1d6b:0003
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 29.0 C mobo: N/A gpu: nvidia temp: 29 C
  Fan Speeds (rpm): N/A
Info:
  Processes: 285 Power: uptime: 5m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 6.18 GiB services: upowerd,xfce4-power-manager
    Init: systemd v: 256 default: graphical tool: systemctl
  Packages: pm: pacman pkgs: 1420 libs: 421 tools: pamac pm: flatpak pkgs: 0
    Compilers: clang: 17.0.6 gcc: 14.1.1 Shell: Sudo (sudo) v: 1.9.15p5
    default: Bash v: 5.2.26 running-in: xfce4-terminal inxi: 3.3.35
[manupc@manupc-2 ~]$

Output for
cat /etc/mkinitcpio.conf

manupc@manupc-2 ~]$ cat /etc/mkinitcpio.conf
# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES=(piix ide_disk reiserfs)
MODULES=()

# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image.  This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=()

# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way.  This is useful for config files.
FILES=()

# HOOKS
# This is the most important setting in this file.  The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
##   This setup specifies all modules in the MODULES setting above.
##   No raid, lvm2, or encrypted root is needed.
#    HOOKS=(base)
#
##   This setup will autodetect all modules for your system and should
##   work as a sane default
#    HOOKS=(base udev autodetect block filesystems)
#
##   This setup will generate a 'full' image which supports most systems.
##   No autodetection is done.
#    HOOKS=(base udev block filesystems)
#
##   This setup assembles a pata mdadm array with an encrypted root FS.
##   Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
#    HOOKS=(base udev block mdadm encrypt filesystems)
#
##   This setup loads an lvm2 volume group on a usb device.
#    HOOKS=(base udev block lvm2 filesystems)
#
##   NOTE: If you have /usr on a separate partition, you MUST include the
#    usr, fsck and shutdown hooks.
HOOKS=(base udev autodetect modconf kms block keyboard keymap filesystems fsck)

# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"
#COMPRESSION="zstd"

# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=()
[manupc@manupc-2 ~]$

Did you run this command? :point_down:

1 Like

Hi Aragorn

Yes. The system took a while looking like it was rebuilding or something. It seemed to take long.

When i rebooted, the monitor image (brand logo) did not show as long as it usually does.

That is normal when you’re rebuilding the initramfs — which is what that command does.

Well, that’s a good thing, then. :wink:

What is the content of /etc/vconsole.conf?

[manupc@manupc-2 ~]$ /etc/vconsole.conf
bash: /etc/vconsole.conf: Permission denied
[manupc@manupc-2 ~]$ sudo /etc/vconsole.conf
[sudo] password for manupc: 
sudo: /etc/vconsole.conf: command not found
[manupc@manupc-2 ~]$

It’s not a command, it’s a configuration file. :point_down:

cat /etc/vconsole.conf

I can’t find this file on my system.

[manupc@manupc-2 ~]$ cat /etc/vconsole.conf
KEYMAP=za
FONT=
FONT_MAP=
[manupc@manupc-2 ~]$
sudo nano /etc/vconsole.conf

Change yours into… :point_down:

KEYMAP=za
# FONT=
# FONT_MAP=

Save the file as you did before with /etc/mkinitcpio.conf — you know how :wink: — and then run this command again… :point_down:

sudo mkinitcpio -P