Keyboard isn't working in Wayland session

When I start a Plasma Wayland Session, I am able to type my password at SDDM and log in, but after login, keystrokes are no longer accepted.
More specifically:

  • Super key does bring up the menu
  • F12 makes Yakuake show and immediately hide again (.as if pressing it twice very fast)
  • Arrow keys don’t respond
  • text entry doesn’t work
  • I’m able to switch between TTYs, for instance with Ctrl+Alt+F3
  • Function keys do not work alone, E.g. F10 should create new folder in Dolphin, doesn’t work
  • mouse clicks work normally

X11 works fine. I’d really like to switch to Wayland because of better support for touchpad gestures.
Here’s some info about my system:

 ~ inxi -v7azy
System:
  Kernel: 6.1.55-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc available: acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1-x86_64
    root=UUID=02d09efd-0036-4efc-ace1-08d57809dd36 rw quiet apparmor=1
    security=apparmor udev.log_priority=3 sysrq_always_enabled=1
  Desktop: KDE Plasma v: 5.27.8 tk: Qt v: 5.15.11 wm: kwin_x11 vt: 2 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: TUXEDO product: TUXEDO v: N/A
    serial: <superuser required> Chassis: Notebook type: 10
    serial: <superuser required>
  Mobo: TUXEDO model: N141CU serial: <superuser required> UEFI: INSYDE
    v: 1.07.07RTR1 date: 11/08/2019
Battery:
  ID-1: BAT0 charge: 36.2 Wh (96.5%) condition: 37.5/35.3 Wh (106.2%)
    volts: 12.0 min: 11.4 model: Notebook BAT type: Li-ion serial: <filter>
    status: discharging
  Device-1: hidpp_battery_0 model: Logitech Wireless Mouse M315/M235
    serial: <filter> charge: 100% (should be ignored) rechargeable: yes
    status: discharging
Memory:
  System RAM: total: 16 GiB note: est. available: 15.32 GiB used: 5 GiB (32.6%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: Intel Core i7-10510U bits: 64 type: MT MCP
    arch: Comet/Whiskey Lake note: check gen: core 10 level: v3 note: check
    built: 2018 process: Intel 14nm family: 6 model-id: 0x8E (142)
    stepping: 0xC (12) microcode: 0xF8
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
    L3: 8 MiB desc: 1x8 MiB
  Speed (MHz): avg: 802 high: 814 min/max: 400/4900 scaling:
    driver: intel_pstate governor: powersave cores: 1: 800 2: 800 3: 814 4: 800
    5: 800 6: 809 7: 800 8: 800 bogomips: 36812
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_perfmon art avx avx2 bmi1 bmi2 bts clflush
    clflushopt cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64
    dtherm dts epb ept ept_ad erms est f16c flexpriority flush_l1d fma fpu
    fsgsbase fxsr ht hwp hwp_act_window hwp_epp hwp_notify ibpb ibrs
    ibrs_enhanced ida intel_pt invpcid invpcid_single lahf_lm lm mca mce
    md_clear mmx monitor movbe mpx msr mtrr nonstop_tsc nopl nx pae pat pbe
    pcid pclmulqdq pdcm pdpe1gb pebs pge pln pni popcnt pse pse36 pts rdrand
    rdseed rdtscp rep_good sdbg sep sgx smap smep ss ssbd sse sse2 sse4_1
    sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_adjust
    tsc_deadline_timer vme vmx vnmi vpid x2apic xgetbv1 xsave xsavec xsaveopt
    xsaves xtopology xtpr
  Vulnerabilities:
  Type: gather_data_sampling mitigation: Microcode
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: retbleed mitigation: Enhanced IBRS
  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 IBRS, IBPB: conditional, RSB
    filling, PBRSB-eIBRS: SW sequence
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel CometLake-U GT2 [UHD Graphics] vendor: CLEVO/KAPOK
    driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
    ports: active: eDP-1 empty: DP-1,HDMI-A-1,HDMI-A-2 bus-ID: 00:02.0
    chip-ID: 8086:9b41 class-ID: 0300
  Device-2: Chicony USB2.0 Camera driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-7:3 chip-ID: 04f2:b649
    class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.2.1
    compositor: kwin_x11 driver: X: loaded: intel gpu: i915 display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 mapped: eDP1 model: AU Optronics 0x543d built: 2017
    res: 1920x1080 hz: 60 dpi: 158 gamma: 1.2 size: 309x174mm (12.17x6.85")
    diag: 355mm (14") ratio: 16:9 modes: 1920x1080
  API: EGL v: 1.5 hw: drv: intel iris platforms: device: 0 drv: iris
    device: 1 drv: swrast gbm: drv: iris surfaceless: drv: iris x11: drv: swrast
    inactive: wayland
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: mesa v: 23.1.9-manjaro1.1
    glx-v: 1.4 direct-render: yes renderer: llvmpipe (LLVM 16.0.6 256 bits)
    device-ID: ffffffff:ffffffff memory: 14.96 GiB unified: yes
  API: Vulkan v: 1.3.264 layers: 4 device: 0 type: integrated-gpu name: Intel
    UHD Graphics (CML GT2) driver: mesa intel v: 23.1.9-manjaro1.1
    device-ID: 8086:9b41 surfaces: N/A
Audio:
  Device-1: Intel Comet Lake PCH-LP cAVS vendor: CLEVO/KAPOK
    driver: snd_hda_intel v: kernel alternate: snd_soc_skl,snd_sof_pci_intel_cnl
    bus-ID: 00:1f.3 chip-ID: 8086:02c8 class-ID: 0403
  API: ALSA v: k6.1.55-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: 0.3.81 status: off with: pipewire-media-session
    status: active tools: pw-cli
  Server-3: PulseAudio v: 16.1 status: active with: 1: pulseaudio-alsa
    type: plugin 2: pulseaudio-jack type: module tools: pacat,pactl
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: CLEVO/KAPOK driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: 5000 bus-ID: 3b:00.1 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp59s0f1 state: down mac: <filter>
  Device-2: Intel Wireless-AC 9260 driver: iwlwifi v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 1 bus-ID: 40:00.0 chip-ID: 8086:2526 class-ID: 0280
  IF: wlp64s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel Wireless-AC 9260 Bluetooth Adapter driver: btusb v: 0.8
    type: USB rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-10:4
    chip-ID: 8087:0025 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 953.87 GiB used: 500.56 GiB (52.5%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Intel model: SSDPEKNW010T8
    size: 953.87 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: 002C temp: 29.9 C scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 206.87 GiB size: 202.56 GiB (97.92%)
    used: 53.01 GiB (26.2%) fs: ext4 dev: /dev/nvme0n1p1 maj-min: 259:1
    label: MNJ uuid: 02d09efd-0036-4efc-ace1-08d57809dd36
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 5.4 MiB (1.8%) fs: vfat dev: /dev/nvme0n1p3 maj-min: 259:3 label: UEFI
    uuid: 2F50-AF86
  ID-3: /home raw-size: 553.57 GiB size: 543.81 GiB (98.24%)
    used: 447.53 GiB (82.3%) fs: ext4 dev: /dev/nvme0n1p4 maj-min: 259:4
    label: Home uuid: 3814dd46-f87d-457e-b4e7-34dae63757f8
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) zswap: yes
    compressor: zstd max-pool: 20%
  ID-1: swap-1 type: partition size: 8 GiB used: 21.8 MiB (0.3%) priority: -2
    dev: /dev/nvme0n1p2 maj-min: 259:2 label: Swap
    uuid: 81357175-5808-423e-8f8d-82a2642b02a7
Unmounted:
  ID-1: /dev/nvme0n1p5 maj-min: 259:5 size: 93.13 GiB fs: ext4 label: N/A
    uuid: 991aa536-b6d0-4afe-bf56-a2dc2d0d2572
USB:
  Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 12 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-4:2 info: Logitech Unifying Receiver type: mouse,HID
    driver: logitech-djreceiver,usbhid interfaces: 2 rev: 2.0
    speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 power: 98mA
    chip-ID: 046d:c52f class-ID: 0300
  Device-2: 1-7:3 info: Chicony USB2.0 Camera type: video driver: uvcvideo
    interfaces: 2 rev: 2.0 speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0
    power: 500mA chip-ID: 04f2:b649 class-ID: 0e02
  Device-3: 1-10:4 info: Intel Wireless-AC 9260 Bluetooth Adapter
    type: bluetooth driver: btusb interfaces: 2 rev: 2.0
    speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 power: 100mA
    chip-ID: 8087:0025 class-ID: e001
  Hub-2: 2-0:1 info: super-speed hub ports: 6 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-3: 3-0:1 info: hi-speed hub with single TT ports: 2 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-4: 4-0:1 info: super-speed hub ports: 2 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 43.0 C pch: 44.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Processes: 291 Uptime: 6m wakeups: 3 Init: systemd v: 254 default: graphical
  tool: systemctl Compilers: gcc: 13.2.1 clang: 16.0.6 Packages: 1936
  pm: pacman pkgs: 1897 libs: 469 tools: pamac,yay pm: flatpak pkgs: 35
  pm: snap pkgs: 4 Shell: Zsh v: 5.9 default: Bash v: 5.1.16
  running-in: yakuake inxi: 3.3.30

Did you install Wayland as recommended with:

sudo pacman -S plasma-wayland-session

(which also installs xorg-wayland)?

  1. I think I installed from Pamac GUI
  2. I reisntalled it as you recommend, and it didn’t install xorg-wayland
  3. xorg-wayland seems to be not even in the repo:
 ~ pacman -Q xorg-wayland
Fehler: Paket »xorg-wayland« wurde nicht gefunden

“package not found”

I didn’t recommend it; it was a question. Xorg-wayland is installed as part of the plasma-wayland-session. Which repo were you looking at?

I’m not sure. Doesn’t pacman -Q look through all the enabled repos?
Btw. It’s not in the web package list either.

Anyways - suppose yes, everything is properly installed: then what?

What’s the output of:

sudo pacman -Qi plasma-wayland-session

(please don’t paste screenshots)

➜  ~ sudo pacman -Qi plasma-wayland-session
Name            : plasma-wayland-session
Version         : 5.27.8-2
Description     : Plasma Wayland session
Architecture    : x86_64
URL             : https://kde.org/plasma-desktop/
Licenses        : LGPL
Groups          : None
Provides        : None
Depends On      : plasma-workspace  qt5-wayland  kwayland-integration  xorg-xwayland
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 3.45 KiB
Packager        : Antonio Rojas <arojas@archlinux.org>
Build Date      : Sun Oct 1 01:09:17 2023
Install Date    : Thu Oct 19 19:47:23 2023
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

Thanks for checking!

Please excuse my typo; it should actually be xorg-xwayland; and congratulations, it looks like it’s installed properly.

1 Like

So, any idea what to do about the keyboard problems?

Not yet. Are you fully updated? Which kernel are you using?

OK. All I can suggest is keep using X11 for now, if that works for you. If you post output from commands in How to Find System Information, that might help someone else. I have places to be. Cheers.

My system is fully up to date. All the requested information is in my first post. Thanks for looking into it!

System Settings > Input Devices and check on your keyboard driver. Maybe turn off any customizing you’ve done to your keyboard, if any.

For the sake of productivity, buy a mouse and then use mouse gestures with easystroke :wink:

I can’t find anything about the keyboard driver in Plasma System Settings - unless the selection of the type of keyboard actually selects the driver. There is only one option for 86-keys (generic). However if this driver works in an X11 session, shouldn’t it work the same in Wayland?

I use a mouse most of the time.
The topic of using touchpad gestures is only for those cases where I don’t have a mouse handy.

If nothing is shown then something is wrong, like no driver being selected. Example is my Wayland keyboard

Is the “Keyboard Model” dropdown menu the selector for the driver? Which is in your case “Generic | Generic 104-key PC”?
Bcs if yes, “Generic 86-key PC” has been selected on mine.

The dropdown selects the appropriate keyboard layout and not the driver. The correct layout would depend on the type of keyboard used, you language/locale etc. – if your exact keyboard is listed, you could likely choose that, otherwise the detected default is usually sufficient.

2 Likes

That’s what I thought then. I was advised to check the driver though - so how can I do that (tbh I’m not sure keyboards even have one, in the classic sense)? Arch Wiki hasn’t been helpful in this topic…

Nothing apart from what is already baked into the kernel, I imagine. :slight_smile: