Garuda Sway - Failed units: systemd-vconsole-setup.service

Hi lads,

on Garuda Sway loving it as my daily driver, just getting failed systemd-vconsole-setup.service on boot.

Had a look on the forum and elsewhere but couldn't seem to find an answer.

Is this normal to fail for Sway given its the same on the other installs i have done which work fine otherwise? not a big deal. Seeing its probably very quick answer thought i would ask.

System:
  Kernel: 6.4.2-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.1.1
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=07f5f128-3e23-4975-b2b8-bbe05f868163 rw rootflags=subvol=@
    quiet quiet rd.udev.log_priority=3 vt.global_cursor_default=0
    resume=UUID=532a3b4e-2d6e-4f2b-8fd9-cac9c867142c loglevel=3 ibt=off
  Desktop: sway v: 1.8.1 info: waybar vt: 1 dm: greetd Distro: Garuda Linux
    base: Arch Linux
Machine:
  Type: Desktop Mobo: Micro-Star model: B450 TOMAHAWK (MS-7C02) v: 1.0
    serial: <superuser required> UEFI: American Megatrends v: 1.E0
    date: 06/09/2020
CPU:
  Info: model: AMD Ryzen 5 3600 bits: 64 type: MT MCP arch: Zen 2 gen: 3
    level: v3 note: check built: 2020-22 process: TSMC n7 (7nm)
    family: 0x17 (23) model-id: 0x71 (113) stepping: 0 microcode: 0x8701021
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB
    L3: 32 MiB desc: 2x16 MiB
  Speed (MHz): avg: 3599 high: 3600 min/max: 2200/4208 boost: enabled
    scaling: driver: acpi-cpufreq governor: performance cores: 1: 3600 2: 3600
    3: 3600 4: 3600 5: 3600 6: 3600 7: 3600 8: 3600 9: 3597 10: 3600 11: 3600
    12: 3600 bogomips: 86395
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities: <filter>
Graphics:
  Device-1: AMD Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]
    driver: amdgpu v: kernel arch: RDNA-1 code: Navi-1x process: TSMC n7 (7nm)
    built: 2019-20 pcie: gen: 4 speed: 16 GT/s lanes: 16 ports:
    active: DP-1,DP-2,DP-3 empty: HDMI-A-1 bus-ID: 28:00.0 chip-ID: 1002:731f
    class-ID: 0300
  Display: wayland server: Xwayland v: 23.1.2 compositor: sway v: 1.8.1
    driver: gpu: amdgpu d-rect: 7040x2520 display-ID: 1
  Monitor-1: DP-1 pos: top-center model: VG27AQL1A serial: <filter>
    built: 2020 res: 2560x1440 hz: 144 dpi: 109 gamma: 1.2 scale: 1
    size: 597x336mm (23.5x13.23") diag: 685mm (27") ratio: 16:9 modes:
    max: 2560x1440 min: 720x400
  Monitor-2: DP-2 pos: primary,top-left model: Samsung C27JG5x
    serial: <filter> built: 2018 res: 2560x1440 hz: 144 dpi: 109 gamma: 1.2
    scale: 1 size: 597x336mm (23.5x13.23") diag: 685mm (27") ratio: 16:9
    modes: max: 2560x1440 min: 720x400
  Monitor-3: DP-3 pos: bottom-r model: Samsung LC27RG50 serial: <filter>
    built: 2020 res: 1920x1080 hz: 144 dpi: 92 gamma: 1.2 scale: 1
    size: 532x304mm (20.94x11.97") diag: 613mm (24.1") ratio: 16:9 modes:
    max: 1920x1080 min: 720x400
  API: OpenGL v: 4.6 Mesa 23.1.3 renderer: AMD Radeon RX 5700 XT (navi10
    LLVM 15.0.7 DRM 3.52 6.4.2-zen1-1-zen) direct-render: Yes
Audio:
  Device-1: AMD Navi 10 HDMI Audio driver: snd_hda_intel v: kernel pcie:
    gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 28:00.1 chip-ID: 1002:ab38
    class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 2a:00.4 chip-ID: 1022:1487 class-ID: 0403
  Device-3: Corsair VOID ELITE Wireless Gaming Dongle
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
    lanes: 1 mode: 1.1 bus-ID: 3-2.3:4 chip-ID: 1b1c:0a51 class-ID: 0300
  API: ALSA v: k6.4.2-zen1-1-zen status: kernel-api tools: N/A
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: PipeWire v: 0.3.73 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Broadcom vendor: ASUSTeK driver: brcmfmac v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 1 port: N/A bus-ID: 21:00.0 chip-ID: 14e4:43c3
    class-ID: 0280
  IF: wlo1 state: down mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Micro-Star MSI driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: f000 bus-ID: 22:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp34s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IF-ID-1: nordlynx state: unknown speed: N/A duplex: N/A mac: N/A
  IF-ID-2: tailscale0 state: unknown speed: -1 duplex: full mac: N/A
Drives:
  Local Storage: total: 1.33 TiB used: 975.73 GiB (71.7%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Patriot model: Burst size: 894.25 GiB
    block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s tech: SSD
    serial: <filter> fw-rev: 61.3 scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Samsung model: SSD 860 EVO 500GB
    size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 1B6Q scheme: GPT
Partition:
  ID-1: / raw-size: 876.83 GiB size: 876.83 GiB (100.00%)
    used: 717.34 GiB (81.8%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 576 KiB (0.2%) fs: vfat dev: /dev/sda1 maj-min: 8:1
  ID-3: /home raw-size: 876.83 GiB size: 876.83 GiB (100.00%)
    used: 717.34 GiB (81.8%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
  ID-4: /var/log raw-size: 876.83 GiB size: 876.83 GiB (100.00%)
    used: 717.34 GiB (81.8%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
  ID-5: /var/tmp raw-size: 876.83 GiB size: 876.83 GiB (100.00%)
    used: 717.34 GiB (81.8%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 15.56 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
  ID-2: swap-2 type: partition size: 17.13 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/sda3 maj-min: 8:3
Sensors:
  System Temperatures: cpu: 35.1 C mobo: N/A gpu: amdgpu temp: 35.0 C
    mem: 42.0 C
  Fan Speeds (RPM): N/A gpu: amdgpu fan: 1122
Info:
  Processes: 402 Uptime: 24m wakeups: 0 Memory: total: 16 GiB
  available: 15.56 GiB used: 2.94 GiB (18.9%) Init: systemd v: 253
  default: graphical tool: systemctl Compilers: gcc: 13.1.1 clang: 15.0.7
  Packages: 1618 pm: pacman pkgs: 1615 libs: 462 tools: pamac,paru,yay
  pm: flatpak pkgs: 3 Shell: fish v: 3.6.1 running-in: gnome-terminal
  inxi: 3.3.28
Garuda (2.6.16-1):
  System install date:     2023-06-13
  Last full system update: 2023-07-13 ↻
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut
  Windows dual boot:       No/Undetected
  Failed units:            systemd-vconsole-setup.service 

This is what i get doing a status on the service

 ╰─λ systemctl status systemd-vconsole-setup.service
× systemd-vconsole-setup.service - Setup Virtual Console
     Loaded: loaded (/usr/lib/systemd/system/systemd-vconsole-setup.service; static)
     Active: failed (Result: exit-code) since Thu 2023-07-13 08:05:14 AEST; 21min ago
       Docs: man:systemd-vconsole-setup.service(8)
             man:vconsole.conf(5)
    Process: 72370 ExecStart=/usr/lib/systemd/systemd-vconsole-setup (code=exited, status=1/FAILURE)
   Main PID: 72370 (code=exited, status=1/FAILURE)
        CPU: 9ms

Jul 13 08:05:14 swayland systemd[1]: Starting Setup Virtual Console...
Jul 13 08:05:14 swayland systemd-vconsole-setup[72370]: Failed to import credentials, ignoring: No such file or directory
Jul 13 08:05:14 swayland systemd-vconsole-setup[72376]: loadkeys: Unable to open file: au: No such file or directory
Jul 13 08:05:14 swayland systemd-vconsole-setup[72370]: /usr/bin/loadkeys failed with exit status 1.
Jul 13 08:05:14 swayland systemd[1]: systemd-vconsole-setup.service: Main process exited, code=exited, status=1/FAILURE
Jul 13 08:05:14 swayland systemd[1]: systemd-vconsole-setup.service: Failed with result 'exit-code'.
Jul 13 08:05:14 swayland systemd[1]: Failed to start Setup Virtual Console.

any enlightenment to my ignorance is appreciated.

Cheers

Check in /etc/vconsole.conf. If you have KEYMAP=au but au is not an available keymap on your system, that may be your problem. au is the correct country code for Australia, but I just checked one of my Sway installations and it is not a keymap on here (you can check the available keymaps by running localectl list-keymaps).

The Sway installation I am looking at has this configuration:

FONT=ter-220n
KEYMAP=us

A quick Whoogle search suggests Australia uses the same keyboard layout as the United States. I am not sure if that is accurate or not, but if it is you could go ahead and use KEYMAP=us in yours as well.

Setting a console font in this file is not mandatory, but if you do just make sure the font you set is one that is actually installed (check in /usr/share/kbd/consolefonts).

After changing this file, you may need to rebuild the initramfs (I actually can’t remember if it is needed or not to be honest, but it can’t hurt):

sudo dracut-rebuild

Then reboot and test again.

6 Likes

thank you! we do use US keyboard layout here.... going to try and get back to you. Really appreciate your time.

it worked, i just changed the keymap to US and deleted the font line..an did the sudo dracut-rebuild cheers !

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.