[GH-ISSUE #5500] KDE/Wayland: Slow typing / key presses are echoed very slowly #5126

Closed
opened 2026-06-05 14:52:10 -04:00 by yindo · 1 comment
Owner

Originally created by @tredondo on GitHub (Apr 24, 2026).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5500

It's not only scrolling (#5498) that's slow on Wayland. Typing is strangely slow too.

https://github.com/user-attachments/assets/0dfe2f5a-a7ab-41df-b0a6-6d7abef0fa39

The desktop entry that the installer script created is below.

[Desktop Entry]
StartupWMClass=anythingllm-desktop
Type=Application
Name=AnythingLLM Desktop
Exec=/home/ted/AnythingLLMDesktop.AppImage --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime
Icon=/home/ted/.config/anythingllm-desktop/storage/icon.png
Categories=Utility;

KDE Plasma Version: 6.5.2
KDE Frameworks Version: 6.19.0
Qt Version: 6.9.2
Kernel Version: 6.17.0-112020-tuxedo (64-bit)
Graphics Platform: Wayland
Processors: 20 × 12th Gen Intel® Core™ i7-12700H
Memory: 64 GiB of RAM (62.5 GiB usable)
Graphics Processor 1: NVIDIA GeForce RTX 3050 Ti Laptop GPU
Graphics Processor 2: Intel® Iris® Xe Graphics

Originally created by @tredondo on GitHub (Apr 24, 2026). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5500 It's not only scrolling (#5498) that's slow on Wayland. Typing is strangely slow too. https://github.com/user-attachments/assets/0dfe2f5a-a7ab-41df-b0a6-6d7abef0fa39 The desktop entry that the installer script created is below. ```ini [Desktop Entry] StartupWMClass=anythingllm-desktop Type=Application Name=AnythingLLM Desktop Exec=/home/ted/AnythingLLMDesktop.AppImage --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime Icon=/home/ted/.config/anythingllm-desktop/storage/icon.png Categories=Utility; ``` KDE Plasma Version: 6.5.2 KDE Frameworks Version: 6.19.0 Qt Version: 6.9.2 Kernel Version: 6.17.0-112020-tuxedo (64-bit) Graphics Platform: Wayland Processors: 20 × 12th Gen Intel® Core™ i7-12700H Memory: 64 GiB of RAM (62.5 GiB usable) Graphics Processor 1: NVIDIA GeForce RTX 3050 Ti Laptop GPU Graphics Processor 2: Intel® Iris® Xe Graphics
yindo closed this issue 2026-06-05 14:52:10 -04:00
Author
Owner

@timothycarambat commented on GitHub (Apr 24, 2026):

I tried to reproduce this on my end running Ubuntu on an X11/DGX setup and everything is smooth, so I can't repro directly. This does look like it's specific to the KDE/Wayland + Electron Ozone backend combination.

The flags in the generated .desktop entry (--ozone-platform=wayland and --enable-wayland-ime in particular) are the likely culprits here. The --enable-wayland-ime flag routes all keypresses through the Wayland IME pipeline even when you don't use an IME, which is known to introduce latency in Electron apps on KDE Plasma.

Quick thing to try: Edit your .desktop entry and remove --enable-wayland-ime — that alone may fix the typing lag in #5500, and possibly the scroll issue too.

As for fixing this on our end in the installer script I'd love to, but pre-detecting KDE vs GNOME vs other compositors at install time is non-trivial, and the "right" flags vary by setup. It's not something we can safely blanket-apply without risking breaking things for other Wayland users and just other linux distros in general

If removing that flag helps, let me know and we can look at whether there's a safer default set of Ozone flags we can ship for KDE specifically or maybe even a "ask before" kind of config in installer script?

<!-- gh-comment-id:4316896943 --> @timothycarambat commented on GitHub (Apr 24, 2026): I tried to reproduce this on my end running Ubuntu on an X11/DGX setup and everything is smooth, so I can't repro directly. This does look like it's specific to the KDE/Wayland + Electron Ozone backend combination. The flags in the generated `.desktop` entry (`--ozone-platform=wayland` and `--enable-wayland-ime` in particular) are the likely culprits here. The `--enable-wayland-ime` flag routes all keypresses through the Wayland IME pipeline even when you don't use an IME, which is known to introduce latency in Electron apps on KDE Plasma. **Quick thing to try:** Edit your `.desktop` entry and remove `--enable-wayland-ime` — that alone may fix the typing lag in #5500, and possibly the scroll issue too. As for fixing this on our end in the installer script I'd love to, but pre-detecting KDE vs GNOME vs other compositors at install time is non-trivial, and the "right" flags vary by setup. It's not something we can safely blanket-apply without risking breaking things for other Wayland users and just other linux distros in general If removing that flag helps, let me know and we can look at whether there's a safer default set of Ozone flags we can ship for KDE specifically or maybe even a "ask before" kind of config in installer script?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#5126