KDE + wayland - keyboard not working

Good day!

This is a problem I’ve been having for a while now. Not sure what triggered it, but it’s even consistent across multiple arch derivatives.

Problem description:

My keyboard stops working as soon as I log into wayland session. It works fine in X11 plasma session. If I log into wayland, it no longer works in login screen until I log out from the wayland session.
However - I have another keyboard and that one works.

The keyboard that is giving me this issue: Leopold FC750R
The keyboard that remains working (but has other non-related issues): Coolermaster MK730

The keyboard seems to be recognized as USB device. This looks the same under X11 session as well - except in that session, it’s working.

The keyboard has such cable:

Using lsusb, the keyboard is recognized as:
Bus 001 Device 005: ID 04b4:0510 Cypress Semiconductor Corp. HID Keyboard

and with inxi -Jaz:

  Device-1: 1-3:5 info: Cypress HID Keyboard type: keyboard,mouse
    driver: hid-generic,usbhid interfaces: 2 rev: 2.0
    speed: 1.5 Mb/s (183 KiB/s) lanes: 1 mode: 1.0 power: 60mA

journalctl -f output:

okt 08 19:18:58 even-eos kernel: usb 1-4: new low-speed USB device number 3 using xhci_hcd
okt 08 19:18:58 even-eos kernel: usb 1-4: New USB device found, idVendor=04b4, idProduct=0510, bcdDevice= 2.01
okt 08 19:18:58 even-eos kernel: usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
okt 08 19:18:58 even-eos kernel: usb 1-4: Product: HID Keyboard
okt 08 19:18:58 even-eos kernel: usb 1-4: Manufacturer: HID Keyboard
okt 08 19:18:58 even-eos kernel: input: HID Keyboard HID Keyboard as /devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:07:00.1/usb1/1-4/1-4:1.0/0003:04B4:0510.0008/input/input25
okt 08 19:18:58 even-eos kernel: hid-generic 0003:04B4:0510.0008: input,hidraw0: USB HID v1.11 Keyboard [HID Keyboard HID Keyboard] on usb-0000:07:00.1-4/input0
okt 08 19:18:59 even-eos kernel: input: HID Keyboard HID Keyboard as /devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:07:00.1/usb1/1-4/1-4:1.1/0003:04B4:0510.0009/input/input26
okt 08 19:18:59 even-eos mtp-probe[6008]: checking bus 1, device 3: "/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:07:00.1/usb1/1-4"
okt 08 19:18:59 even-eos kernel: hid-generic 0003:04B4:0510.0009: input,hidraw1: USB HID v1.11 Keyboard [HID Keyboard HID Keyboard] on usb-0000:07:00.1-4/input1
okt 08 19:18:59 even-eos mtp-probe[6008]: bus: 1, device: 3 was not an MTP device
okt 08 19:18:59 even-eos systemd-logind[740]: Watching system buttons on /dev/input/event4 (HID Keyboard HID Keyboard)
okt 08 19:18:59 even-eos systemd-logind[740]: Watching system buttons on /dev/input/event3 (HID Keyboard HID Keyboard)
okt 08 19:18:59 even-eos mtp-probe[6025]: checking bus 1, device 3: "/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:07:00.1/usb1/1-4"
okt 08 19:18:59 even-eos mtp-probe[6025]: bus: 1, device: 3 was not an MTP device

I am using latest zen kernel. This issue has persisted for several months now and I’ve also had it appear on Manjaro + KDE/Wayland. If I recall correctly, it just stopped working from one day to the next.

I’ve already asked on Telegram and the recommendation was to ask here for more people to see.

Any pointers will be grately appreciated.

do you have this problem with other distros?
what happens if you replug the keyboard after login?
does this happen on gnome wayland or with a different login manager?

found some orientational info after googling the journal messages, check the github thread for some torubleshooting tips

1 Like

do some more troubleshooting, but if you have the same problem for sure, it might be a kernel issue, no idea how to find kernel issues or if they have a bugtracker other than a mailing list

edit: forgot to mention wev, it displays input events, I used it when I had problems with my mouse, but it should work for keyboars too

1 Like

do you have this problem with other distros?

Yes, I had the same issue happen on Manjaro KDE + wayland. That was part of the reason why I switched a distribution as well.

what happens if you replug the keyboard after login?

Nothing - it remains in a non-functional state. I can see it from within USB devices (and it’s shown same as in X11 session). The output is pictured above.

does this happen on gnome wayland or with a different login manager?

Although I have GNOME session installed, it won’t launch for some reason, so I can’t confirm. It does work when I’m in sway.

I didn’t try another login manager. It does stop working in login manager if a Wayland session is active (screen locked → login prompt). Maybe I can try another manager, I think now I have SDDM.

found some orientational info after googling the journal messages, check the github thread for some torubleshooting tips

Thanks, I’ll check it out.

Will do. A bit busy in the following days, but I don’t intend to just give up, as I really want this to be resolved.

I’ll report back if I find anything with relation to your links.

@mihalycsaba hey!

I’ve tried some of your recommendations.

  • Switching to a different login screen manager does not solve the issue
  • wev doesn’t show anything when I press buttons on the keyboard (does so for the other working keyboard)

I’ve also brought another keyboard from work - same model. Unfortunately, this one doesn’t work either.

Replugging the device doesn’t do anything, so I reckon it’s not the same issue as above.

Any ideas what I could try next?

What is all the hardware output?

inxi -Faz | eos-sendlog

Sorry for a late reply. This is the log. Pretty cool feature, didn’t know this eos-sendolg exists :slight_smile: And a rickroll thumbnail :smile:

System:
  Kernel: 6.5.6-arch2-1 arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc available: hpet,acpi_pm
    parameters: initrd=\9f93f8d714664dc2b6b56c168932c8ea\6.5.6-arch2-1\initrd
    nvme_load=YES nowatchdog rw rootflags=subvol=/@
    root=UUID=b039f0c3-9795-4805-beca-bd90077d413f
    resume=UUID=f311f401-1f95-4342-a357-8dd3e805ec32
    systemd.machine_id=9f93f8d714664dc2b6b56c168932c8ea
  Desktop: KDE Plasma v: 5.27.8 tk: Qt v: 5.15.11 wm: kwin_wayland vt: 1 dm:
    1: LightDM v: 1.32.0 note: stopped 2: SDDM Distro: EndeavourOS
    base: Arch Linux
Machine:
  Type: Desktop Mobo: ASUSTeK model: TUF GAMING X570-PLUS (WI-FI) v: Rev X.0x
    serial: <superuser required> UEFI: American Megatrends v: 3603
    date: 03/20/2021
CPU:
  Info: model: AMD Ryzen 7 3700X 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: 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: 2x16 MiB
  Speed (MHz): avg: 4049 high: 4053 min/max: 2200/4050 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 4053 2: 4050
    3: 4050 4: 4049 5: 4049 6: 4050 7: 4049 8: 4049 9: 4050 10: 4052 11: 4048
    12: 4046 13: 4044 14: 4050 15: 4049 16: 4049 bogomips: 129632
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  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: retbleed mitigation: untrained return thunk; SMT enabled with STIBP
    protection
  Type: spec_rstack_overflow mitigation: safe RET
  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: Retpolines, IBPB: conditional, STIBP:
    always-on, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
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-2,DP-3 empty: DP-1,HDMI-A-1 bus-ID: 0c:00.0 chip-ID: 1002:731f
    class-ID: 0300
  Display: wayland server: X.org v: 1.21.1.8 with: Xwayland v: 23.2.1
    compositor: kwin_wayland driver: X: loaded: amdgpu
    unloaded: modesetting,radeon alternate: fbdev,vesa dri: radeonsi
    gpu: amdgpu display-ID: 0
  Monitor-1: DP-2 model: MSI MAG274QRF-QD serial: <filter> built: 2020
    res: 2560x1440 dpi: 109 gamma: 1.2 size: 597x336mm (23.5x13.23")
    diag: 685mm (27") ratio: 16:9 modes: max: 2560x1440 min: 640x480
  Monitor-2: DP-3 model: MSI MAG274QRF-QD serial: <filter> built: 2021
    res: 2560x1440 dpi: 109 gamma: 1.2 size: 597x336mm (23.5x13.23")
    diag: 685mm (27") ratio: 16:9 modes: max: 2560x1440 min: 640x480
  API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi
    device: 1 drv: swrast surfaceless: drv: radeonsi wayland: drv: radeonsi x11:
    drv: radeonsi inactive: gbm
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 23.2.1-arch1.2
    glx-v: 1.4 direct-render: yes renderer: AMD Radeon RX 5700 XT (navi10 LLVM
    16.0.6 DRM 3.54 6.5.6-arch2-1) device-ID: 1002:731f memory: 7.81 GiB
    unified: no display-ID: :1.0
  API: Vulkan v: 1.3.264 layers: 10 device: 0 type: discrete-gpu name: AMD
    Radeon RX 5700 XT (RADV NAVI10) driver: mesa radv v: 23.2.1-arch1.2
    device-ID: 1002:731f surfaces: xcb,xlib,wayland
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: 0c:00.1 chip-ID: 1002:ab38
    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: 0e:00.4 chip-ID: 1022:1487 class-ID: 0403
  API: ALSA v: k6.5.6-arch2-1 status: kernel-api
    tools: alsactl,alsamixer,amixer
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: PipeWire v: 0.3.81 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 Wireless-AC 9260 driver: iwlwifi v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 1 bus-ID: 05:00.0 chip-ID: 8086:2526 class-ID: 0280
  IF: wlan0 state: down mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: f000 bus-ID: 06:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp6s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IF-ID-1: docker0 state: down mac: <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: 3-5:2
    chip-ID: 8087:0025 class-ID: e001
  Report: btmgmt ID: hci0 rfk-id: 0 state: down bt-service: disabled
    rfk-block: hardware: no software: no address: N/A
RAID:
  Hardware-1: Advanced Micro Devices [AMD] Device driver: ahci v: 3.0
    port: N/A bus-ID: 08:00.0 chip-ID: 1022:7916 rev: N/A class-ID: 0104
  Hardware-2: Advanced Micro Devices [AMD] Device driver: ahci v: 3.0
    port: N/A bus-ID: 09:00.0 chip-ID: 1022:7916 rev: N/A class-ID: 0104
Drives:
  Local Storage: total: 2.05 TiB used: 1000.02 GiB (47.6%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Corsair model: Force MP600
    size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: EGFM13.0 temp: 34.9 C
    scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Samsung model: MZHPV256HDGL-00000
    size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 500Q scheme: GPT
  ID-3: /dev/sdb maj-min: 8:16 vendor: Crucial model: CT1000MX500SSD1
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 032 scheme: GPT
  ID-4: /dev/sdc maj-min: 8:32 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: 455.98 GiB size: 455.98 GiB (100.00%)
    used: 232.63 GiB (51.0%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /home raw-size: 455.98 GiB size: 455.98 GiB (100.00%)
    used: 232.63 GiB (51.0%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-3: /var/log raw-size: 455.98 GiB size: 455.98 GiB (100.00%)
    used: 232.63 GiB (51.0%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) zswap: yes
    compressor: zstd max-pool: 20%
  ID-1: swap-1 type: partition size: 8.8 GiB used: 22.2 MiB (0.2%)
    priority: -2 dev: /dev/nvme0n1p3 maj-min: 259:3
Sensors:
  System Temperatures: cpu: 34.5 C mobo: 34.0 C gpu: amdgpu temp: 43.0 C
    mem: 44.0 C
  Fan Speeds (rpm): fan-1: 416 fan-2: 1196 fan-3: 822 fan-4: 0 fan-5: 2504
    fan-6: 0 fan-7: 0 gpu: amdgpu fan: 65535
Info:
  Processes: 441 Uptime: 8m wakeups: 0 Memory: total: 32 GiB
  available: 31.25 GiB used: 6.78 GiB (21.7%) Init: systemd v: 254
  default: graphical tool: systemctl Compilers: gcc: 13.2.1 clang: 16.0.6
  Packages: 1725 pm: pacman pkgs: 1719 libs: 505 tools: pamac,yay pm: flatpak
  pkgs: 6 Shell: Zsh v: 5.9 running-in: konsole inxi: 3.3.30

Unfortunately, I still didn’t find the answer to this. Any pointers would be greatly appreciated.

Update: I managed to brick my system somehow (display kept restarting whenever any input was made, either mouse move or key press).

The soluton seems to have been to go back to Manjaro for me. It appears that the keyboard is working in Plasma Wayland session, but I do not know why as opposed to my previous EndeavorOS installation.

I will mark this as resolved. Still, I appreciate the help I received here and on Telegram.

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