Bug 519392 - Systemd 259.4 breaks input from WaveShare WS170120 touchscreen
Summary: Systemd 259.4 breaks input from WaveShare WS170120 touchscreen
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: input (other bugs)
Version First Reported In: 6.6.80
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2026-04-25 08:19 UTC by Antti Savolainen
Modified: 2026-08-06 14:03 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Savolainen 2026-04-25 08:19:32 UTC
SUMMARY
This is a small hobbyscreen I have. Libinput detects it just fine but it doesn't show up in the mouse, touchpad or touchscreen kcms. Using the screen doesn't control the mouse pointer. This might be a regression as I remember testing the screen a year or so back and it worked. 

I also tested with a Steam Deck and a Kodi HTPC and the touchscreen works fine with those
 
$ sudo libinput list-devices
Device:                  WaveShare WS170120
Kernel:                  /dev/input/event7
Id:                      usb:0eef:0005
Group:                   4
Seat:                    seat0, default
Capabilities:            touch 
Tap-to-click:            n/a
Tap-and-drag:            n/a
Tap button map:          n/a
Tap drag lock:           n/a
Left-handed:             n/a
Nat.scrolling:           n/a
Middle emulation:        n/a
Calibration:             identity matrix
Scroll methods:          none
Scroll button:           n/a
Scroll button lock:      n/a
Click methods:           none
Clickfinger button map:  n/a
Disable-w-typing:        n/a
Disable-w-trackpointing: n/a
Accel profiles:          n/a
Rotation:                0.0
Area rectangle:          n/a

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.6.80
KDE Frameworks Version: 6.26.0
Qt Version: 6.11.0
Kernel Version: 6.19.14-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 2600 Six-Core Processor
Memory: 64 GiB of RAM (62.7 GiB usable)
Graphics Processor: AMD Radeon RX 5700
Comment 1 Nicolas Fella 2026-04-25 14:08:39 UTC
If this is hardware-specific you'll have to debug this yourself I'm afraid
Comment 2 Antti Savolainen 2026-04-25 14:16:43 UTC
I think it might be because its a raw touch device without any pointer abstractions. My laptop trackpad for example reports:
Capabilities:            pointer gesture

and my Steam Controller reports
Capabilities:            keyboard pointer
Comment 3 Antti Savolainen 2026-04-25 18:32:43 UTC
I did some digging: With a debug function in kwin/src/backends/libinput/device.cpp in Device::Device it turns out that the touchscreen never reaches it. Every other device passes m_touch and sets it to false, but the screen doesn't show up in the logs when plugging in.
Comment 4 Antti Savolainen 2026-04-25 18:46:47 UTC
Oh and the cursor is controller perfectly fine on the same computer when using kmscon.
Comment 5 Antti Savolainen 2026-04-25 20:32:07 UTC
I digged as far as I could and the problem seems to exist between libinput and kwin.
Comment 7 Antti Savolainen 2026-05-13 04:03:50 UTC
Shame. The bug report on libinput bugtracker was a dead end.
Comment 8 Antti Savolainen 2026-06-18 00:20:21 UTC
Some observations I maked in the libinput issue to test what works and what doesnt

Same computer kmscon TTY: Works
Same computer gamescope standalone session: Doesn't work
Steam Deck: Works but input is rotated 90°
Steam Deck desktop mode: Works but input is rotated 90°
Proxmox server with Kodi on front: Works
Comment 9 Sebastian Sauer 2026-07-19 00:18:01 UTC
Maybe also relevant for this bugreport: Looks as we had some bugs with the input matrix and they just got fixed. See https://bugs.kde.org/show_bug.cgi?id=521464
Comment 10 Antti Savolainen 2026-07-20 19:16:10 UTC
Thanks, I'll have a look when I get home this week.
Comment 11 Antti Savolainen 2026-07-22 13:33:45 UTC
I built master and ran the test environment. That did not fix the issue. The display still works fine in kmscon.
Comment 12 Antti Savolainen 2026-08-04 07:02:39 UTC
I did bisecting with kubuntu and the display stops working between 25.10 and 26.04

25.10:
Plasma: 6.4.5
Frameworks: 6.17.10
Qt: 6.9.2
Libinput 1.28.1

26.04:
Plasma: 6.6.4
Frameworks: 6.24.0
Qt: 6.10.2
Libinput: 1.13.1
Comment 13 Antti Savolainen 2026-08-04 09:43:23 UTC
CachyOS helped me hone it down even further

2026-03 release is working
Plasma: 6.6.2
Frameworks: 6.23.0
Qt: 6.10.2
Kernel: 6.19.6
Libinput 1.30

2026-04 release not working
Plasma: 6.6.4
Frameworks: 6.25.0
Qt: 6.11.0
Kernel: 6.19.10
Libinput 1.31.1
Comment 14 Antti Savolainen 2026-08-05 21:32:07 UTC
SYSTEMD AND UDEV ARE THE ISSUE!!!!!
I downgraded to systemd 259.3-1 and the display works!
Comment 15 Antti Savolainen 2026-08-05 21:52:50 UTC
https://github.com/systemd/systemd/issues/43303
Comment 16 Nate Graham 2026-08-06 14:03:46 UTC
Nicely done!