Keyboard layout not followed by all applications

i use the colemak keyboard layout and i recently reinstalled garuda on my desktop, after the reinstall most applications such as firefox seem to read it as a basic US qwerty layout. However gnome shortcuts and some apps such as the terminal and nautilus seem to behave correctly.

in addition to this, for some reason when i hold down certain characters such as “o” for example, it functions like a “alternate characters key”, so pressing “n” whilst holding it down spits out “ñ”. This makes wo`ds such as functioñ rather painful to write.

I tried looking thru this issue, but nothing seemed to work:

this is my /etc/vconsole.conf file:

FONT=ter-220n
KEYMAP=colemak
XKBLAYOUT=us
XKBVARIANT=colemak

The only temporary fix i’ve found for this is to add a new keyboard layout, switch to it and switch back. It cannot be a keyboard layout used previously, it doesn’t fix the accent problem, and it only lasts until next boot.

Does anyone know why this is happening, or if they have any more permanent solutions?

garuda-inxi:

System:
  Kernel: 6.2.10-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=d3bcb30e-718f-4bfa-9211-08fed10254e0 rw rootflags=subvol=@
    quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    resume=UUID=76ef5072-e3cc-411f-a27d-2f02016dcfee loglevel=3 ibt=off
  Desktop: GNOME v: 43.4 tk: GTK v: 3.24.37 wm: gnome-shell dm: GDM v: 44.0
    Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: ASUSTeK model: ROG STRIX B450-F GAMING v: Rev 1.xx
    serial: <superuser required> BIOS: American Megatrends v: 4007
    date: 12/08/2020
CPU:
  Info: model: AMD Ryzen 7 5800X bits: 64 type: MT MCP arch: Zen 3+ gen: 4
    level: v3 note: check built: 2022 process: TSMC n6 (7nm) family: 0x19 (25)
    model-id: 0x21 (33) stepping: 2 microcode: N/A
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB
    L3: 32 MiB desc: 1x32 MiB
  Speed (MHz): avg: 3712 high: 3800 min/max: 2200/4850 boost: enabled
    scaling: driver: acpi-cpufreq governor: performance cores: 1: 3597 2: 3800
    3: 3603 4: 3602 5: 3599 6: 3800 7: 3800 8: 3598 9: 3602 10: 3800 11: 3601
    12: 3800 13: 3800 14: 3800 15: 3800 16: 3800 bogomips: 121608
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities: <filter>
Graphics:
  Device-1: AMD Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT]
    vendor: XFX Speedster QICK 319 driver: amdgpu v: kernel arch: RDNA-2
    code: Navi-2x process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 4
    speed: 16 GT/s lanes: 16 ports: active: DP-1,DP-2,DP-3 empty: HDMI-A-1
    bus-ID: 0b:00.0 chip-ID: 1002:73df class-ID: 0300
  Display: wayland server: X.org v: 1.21.1.8 with: Xwayland v: 23.1.1
    compositor: gnome-shell driver: gpu: amdgpu display-ID: 0
  Monitor-1: DP-1 model: AOC 24G1WG4 serial: <filter> built: 2018
    res: 1920x1080 dpi: 94 gamma: 1.2 size: 521x293mm (20.51x11.54")
    diag: 598mm (23.5") ratio: 16:9 modes: max: 1920x1080 min: 720x400
  Monitor-2: DP-2 model: AOC 27G2G4 serial: <filter> built: 2021
    res: 1920x1080 dpi: 82 gamma: 1.2 size: 598x336mm (23.54x13.23")
    diag: 686mm (27") ratio: 16:9 modes: max: 1920x1080 min: 720x400
  Monitor-3: DP-3 model: AOC 2460G5 serial: <filter> built: 2016
    res: 1920x1080 dpi: 92 gamma: 1.2 size: 531x299mm (20.91x11.77")
    diag: 609mm (24") ratio: 16:9 modes: max: 1920x1080 min: 720x400
  API: OpenGL v: 4.6 Mesa 23.0.2 renderer: AMD Radeon RX 6700 XT (navi22
    LLVM 15.0.7 DRM 3.49 6.2.10-zen1-1-zen) direct-render: Yes
Audio:
  Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel pcie:
    bus-ID: 1-5.3:4 chip-ID: 046d:0ab5 gen: 4 class-ID: 0300 speed: 16 GT/s
    lanes: 16 bus-ID: 0b:00.1 chip-ID: 1002:ab28 class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 0d:00.4 chip-ID: 1022:1487 class-ID: 0403
  Device-3: Logitech G733 Gaming Headset type: USB
    driver: hid-generic,snd-usb-audio,usbhid
  API: ALSA v: k6.2.10-zen1-1-zen status: kernel-api with: aoss
    type: oss-emulator tools: N/A
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: PipeWire v: 0.3.68 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: Intel I211 Gigabit Network vendor: ASUSTeK driver: igb v: kernel
    pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: e000 bus-ID: 04:00.0
    chip-ID: 8086:1539 class-ID: 0200
  IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 1.03 TiB used: 497.37 GiB (47.3%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital
    model: WDS100T2B0C-00PXH0 size: 931.51 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 211070WD temp: 34.9 C scheme: MBR
  ID-2: /dev/sda maj-min: 8:0 vendor: SanDisk model: SD6SB1M128G1001
    size: 119.24 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 201 scheme: MBR
Partition:
  ID-1: / raw-size: 897.11 GiB size: 897.11 GiB (100.00%)
    used: 497.37 GiB (55.4%) fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-2: /home raw-size: 897.11 GiB size: 897.11 GiB (100.00%)
    used: 497.37 GiB (55.4%) fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /var/log raw-size: 897.11 GiB size: 897.11 GiB (100.00%)
    used: 497.37 GiB (55.4%) fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-4: /var/tmp raw-size: 897.11 GiB size: 897.11 GiB (100.00%)
    used: 497.37 GiB (55.4%) fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 15.54 GiB used: 1.5 MiB (0.0%) priority: 100
    dev: /dev/zram0
  ID-2: swap-2 type: partition size: 34.4 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/nvme0n1p2 maj-min: 259:2
Sensors:
  System Temperatures: cpu: 43.0 C mobo: 32.0 C gpu: amdgpu temp: 37.0 C
    mem: 34.0 C
  Fan Speeds (RPM): cpu: 675 case-1: 837 case-2: 862 case-3: 967 gpu: amdgpu
    fan: 0
  Power: 12v: 10.14 5v: N/A 3.3v: N/A vbat: 3.21 gpu: amdgpu watts: 6.00
Info:
  Processes: 412 Uptime: 10m wakeups: 0 Memory: 15.55 GiB
  used: 5.01 GiB (32.2%) Init: systemd v: 253 default: graphical
  tool: systemctl Compilers: gcc: 12.2.1 Packages: pm: pacman pkgs: 1603
  libs: 495 tools: pamac,paru Shell: fish v: 3.6.1 default: Bash v: 5.1.16
  running-in: gnome-terminal inxi: 3.3.26
Garuda (2.6.16-1):
  System install date:     2023-04-11
  Last full system update: 2023-04-12
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut
  Windows dual boot:       <superuser required>
  Failed units:

This is only for TTY consoles, not Gui apps.
Even the options set are not valid:

X means GUI, which TTY console is not.
Read man vconsole.conf for proper OPTIONS, and wiki.

For GUI/Xorg keyboard settings, use localectl. Read man localectl for usage, and wiki.

If file /etc/default/keyboard exists, delete it.

4 Likes