Keyboard issue on KDE Plasma Wayland

Hello,

I’m curious and I decided to test Wayland on my system, The first tries wasn’t good, there was too many bugs, and so I back to xorg, but now, after some updates, looks like Wayland is in a much better stage and I’m liking, but there is still one annoying bug related on my keyboard, the layout is correct but the accents are not working correctly.

Example:
It should be: ã
but I only get: ~a

I was able to fix this issue on xorg with below command, but it’s not working on wayland, is there I way to fix this issue on Wayland?

$ setxkbmap -model abnt2 -layout br -variant abnt2

System:
  Kernel: 5.15.0-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
  root=UUID=dfa33105-8d9e-4555-9174-609a71216485 ro quiet apparmor=1
  security=apparmor resume=UUID=493ccde5-7f80-4bf5-b22c-98ce796aade6
  udev.log_priority=3
  Desktop: KDE Plasma 5.22.5 tk: Qt 5.15.2 wm: kwin_wayland vt: 2 dm: SDDM
  Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: Gigabyte model: GA-870A-UD3 v: x.x serial: <filter>
  BIOS: Award v: F5 date: 08/01/2011
Battery:
  Message: No system battery data found. Is one present?
Memory:
  RAM: total: 7.76 GiB used: 3.23 GiB (41.5%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: Quad Core model: AMD Phenom II X4 965 bits: 64 type: MCP arch: K10
  family: 10 (16) model-id: 4 stepping: 3 microcode: 10000C8 cache: L2: 2 MiB
  bogomips: 27337
  Speed: 2200 MHz min/max: 800/3400 MHz Core speeds (MHz): 1: 800 2: 800
  3: 800 4: 800
  Flags: 3dnow 3dnowext 3dnowprefetch abm apic clflush cmov cmp_legacy
  constant_tsc cpuid cr8_legacy cx16 cx8 de extapic extd_apicid fpu fxsr
  fxsr_opt ht hw_pstate ibs lahf_lm lbrv lm mca mce misalignsse mmx mmxext
  monitor msr mtrr nonstop_tsc nopl npt nrip_save nx osvw pae pat pdpe1gb pge
  pni popcnt pse pse36 rdtscp rep_good sep skinit sse sse2 sse4a svm svm_lock
  syscall tsc vme vmmcall wdt
  Vulnerabilities: Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: spec_store_bypass status: Not affected
  Type: spectre_v1
  mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2
  mitigation: Full AMD retpoline, STIBP: disabled, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
  vendor: Micro-Star MSI driver: amdgpu v: kernel bus-ID: 01:00.0
  chip-ID: 1002:67df class-ID: 0300
  Display: wayland server: X.Org 1.21.1.2 compositor: kwin_wayland driver:
  loaded: amdgpu,ati unloaded: modesetting,radeon alternate: fbdev,vesa
  display-ID: :1 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
  s-diag: 582mm (22.9")
  Monitor-1: XWAYLAND0 res: 1920x1080 hz: 60 dpi: 96
  size: 510x290mm (20.1x11.4") diag: 587mm (23.1")
  OpenGL: renderer: Radeon RX 570 Series (POLARIS10 DRM 3.42.0
  5.15.0-1-MANJARO LLVM 12.0.1)
  v: 4.6 Mesa 21.2.3 direct render: Yes
Audio:
  Device-1: AMD SBx00 Azalia vendor: Gigabyte GA-880GMA-USB3
  driver: snd_hda_intel v: kernel bus-ID: 00:14.2 chip-ID: 1002:4383
  class-ID: 0403
  Device-2: AMD Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]
  vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus-ID: 01:00.1
  chip-ID: 1002:aaf0 class-ID: 0403
  Sound Server-1: ALSA v: k5.15.0-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.19 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.38 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
  vendor: Gigabyte driver: r8169 v: kernel port: 9e00 bus-ID: 06:00.0
  chip-ID: 10ec:8168 class-ID: 0200
  IF: enp6s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
  broadcast: <filter>
  IP v6: <filter> type: dynamic noprefixroute scope: global
  IP v6: <filter> type: noprefixroute scope: link
  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: 2.48 TiB used: 1.75 TiB (70.4%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: SanDisk model: SSD PLUS 240GB
  size: 223.58 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
  type: SSD serial: <filter> rev: 00RL scheme: MBR
  ID-2: /dev/sdb maj-min: 8:16 vendor: Corsair model: Corsair Force GS
  size: 119.24 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
  type: SSD serial: <filter> rev: 5.07 scheme: MBR
  ID-3: /dev/sdc maj-min: 8:32 vendor: Patriot model: Burst size: 223.57 GiB
  block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD
  serial: <filter> rev: KB.3 scheme: MBR
  ID-4: /dev/sdd maj-min: 8:48 vendor: Crucial model: CT120BX100SSD1
  size: 111.79 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
  type: SSD serial: <filter> rev: MU01 scheme: GPT
  ID-5: /dev/sde maj-min: 8:64 vendor: Western Digital model: WD20PURZ-85GU6Y0
  size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
  type: HDD rpm: 5400 serial: <filter> rev: 0A80 scheme: MBR
  Optical-1: /dev/sr0 vendor: HL-DT-ST model: DVDRAM GH22NS50 rev: TN02
  dev-links: cdrom
  Features: speed: 48 multisession: yes audio: yes dvd: yes
  rw: cd-r,cd-rw,dvd-r,dvd-ram state: running
Partition:
  ID-1: / raw-size: 214.77 GiB size: 210.4 GiB (97.96%)
  used: 104.88 GiB (49.8%) fs: ext4 dev: /dev/sdc1 maj-min: 8:33
  label: LINUX-SSD uuid: dfa33105-8d9e-4555-9174-609a71216485
  ID-2: /home/<filter>/Games raw-size: 111.79 GiB size: 109.47 GiB (97.93%)
  used: 60.68 GiB (55.4%) fs: ext4 dev: /dev/sdd1 maj-min: 8:49
  label: LINUX-GAMES uuid: ef7d7ba9-f8da-4419-b9a3-ca9e2232da86
  ID-3: /home/<filter>/HDD-DATA-2T raw-size: 1.82 TiB size: 1.82 TiB (100.00%)
  used: 1.59 TiB (87.2%) fs: ntfs dev: /dev/sde1 maj-min: 8:65 label: DATA_2T
  uuid: 28A6726FA6723CFE
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 8.8 GiB used: 13.5 MiB (0.1%)
  priority: -2 dev: /dev/sdc2 maj-min: 8:34 label: N/A
  uuid: 493ccde5-7f80-4bf5-b22c-98ce796aade6
Unmounted:
  ID-1: /dev/sda1 maj-min: 8:1 size: 100 MiB fs: ntfs label: System Reserved
  uuid: E680DA2C5F90FD24
  ID-2: /dev/sda2 maj-min: 8:2 size: 223.48 GiB fs: ntfs label: WIN-SSD
  uuid: 07492E03A516286B
  ID-3: /dev/sdb1 maj-min: 8:17 size: 119.24 GiB fs: ntfs label: WIN-GAMES
  uuid: EAE6EE7DE6EE4A01
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 5 rev: 2.0
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-2: 2-0:1 info: Full speed (or root) Hub ports: 5 rev: 2.0
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-3: 3-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-4: 4-0:1 info: Full speed (or root) Hub ports: 5 rev: 1.1 speed: 12 Mb/s
  chip-ID: 1d6b:0001 class-ID: 0900
  Hub-5: 5-0:1 info: Full speed (or root) Hub ports: 5 rev: 1.1 speed: 12 Mb/s
  chip-ID: 1d6b:0001 class-ID: 0900
  Hub-6: 6-0:1 info: Full speed (or root) Hub ports: 2 rev: 1.1 speed: 12 Mb/s
  chip-ID: 1d6b:0001 class-ID: 0900
  Hub-7: 7-0:1 info: Full speed (or root) Hub ports: 4 rev: 1.1 speed: 12 Mb/s
  chip-ID: 1d6b:0001 class-ID: 0900
  Device-1: 7-3:2 info: SINO WEALTH USB KEYBOARD type: Keyboard,HID
  driver: hid-generic,usbhid interfaces: 2 rev: 1.1 speed: 1.5 Mb/s
  power: 100mA chip-ID: 258a:0001 class-ID: 0300
  Device-2: 7-4:3 info: Pixart Imaging Optical Mouse type: Mouse
  driver: hid-generic,usbhid interfaces: 1 rev: 1.1 speed: 1.5 Mb/s
  power: 100mA chip-ID: 093a:2521 class-ID: 0301
  Hub-8: 8-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-9: 9-0:1 info: Full speed (or root) Hub ports: 2 rev: 3.0 speed: 5 Gb/s
  chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 38.9 C mobo: N/A gpu: amdgpu temp: 54.0 C
  Fan Speeds (RPM): N/A gpu: amdgpu fan: 221
Info:
  Processes: 256 Uptime: 37m wakeups: 0 Init: systemd v: 249 tool: systemctl
  Compilers: gcc: 11.1.0 Packages: 1502 pacman: 1488 lib: 445 flatpak: 14
  Shell: Bash v: 5.1.8 running-in: yakuake inxi: 3.3.07

Found this interesting post here but the solution indicated was not able to fix my issue, maybe i didn’t implemented it properly, never know, the description sometimes is too much technical and confusing from user point of view because you need a lot of background about how the system works.

https://bugs.kde.org/show_bug.cgi?id=411729

Proposed solution:
add this to /etc/environment

INPUT_METHOD=ibus
GTK_IM_MODULE=ibus
QT_IM_MODULE=ibus
XMODIFIERS=@im=ibus

didn’t work,

So I also installed ibus from repo and running it it suggests also do add come line to $home/.bashrc but also it didn’t work for me too.

very frustrating, so time to back to xorg again until it can be fixed.

Today I tested the lasted version of Manjaro KDE Stable 21.2.1 with wayland but the issue with keyboard is still there, going to check Qt/KDE bug report (see link below and previous shared link), the issue is indicated as fixed since June 4th 2021 and fixed version shows 6.2, how should I interpret this indication? I Think Plasma 6 has no release date available and KDE 5.XX has releases plan until 2023, at what release I should expect this issue to be fixed on Manjaro KDE?

Note.: Maybe fixed release refer to Wayland Release or Qt release, don’t know, I can’t go deeper to understand developer documentation. I will be very grateful from any indication about this particular issue to better track the solution availability.

@Chrysostomus do you mind to give me a small help here. Thank in advanced.

https://bugreports.qt.io/browse/QTBUG-87088

As people can see below, confirmed by KDE developer Nate Graham, it’s not possible to estimate when this issue will be fixed for users. So I presume that also Steam Deck will have this particular issues if this product is planned to be sold in Europe / South America once it will use Wayland and KDE Plasma. So I’m just hoping someone is able to send merge request to backport the solution as pointed by Nate too.

Note.: I’m sharing the screen because the message was post in the public chat KDE-Welcome and it might be of others interest.

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