BUG: Multiple Keyboards Lag
Ryan McClue
re.mcclue at protonmail.com
Sun Oct 10 22:12:39 UTC 2021
PROBLEM:
I'm on a fresh install of Ubuntu 20.04 (xorg 1.20.11), with 2 connected keyboards (built-in and USB).
When I hit keys on each keyboard simultaneously in a program like firefox, gnome-terminal etc. stalling/lag occurs.
It only happens for keyboards it seems as moving an external mouse and trackpad together causes no issues.
TO REPRODUCE:
To investigate the problem I wrote a simple C file (see attached 'xorg-lag.c', compile with $(gcc xorg-lag.c -o xorg-lag))
The program finds keyboard devices under /dev/input/event and uses epoll to poll them for input via the evdev interface.
If I start entering keys on one keyboard and then switch to the other, the program stalls briefly.
If I simultaneously enter keys on each keyboard the program stalls indefinitely until I stop entering keys.
I have tested with different keyboards and experience the same result.
If I switch to a virtual terminal and run I experience no lag.
This makes me think it is a bug with xorg.
--
Ryan McClue, Sydney
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.x.org/archives/xorg-devel/attachments/20211010/aeba76d4/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xorg-lag.c
Type: text/x-csrc
Size: 2363 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg-devel/attachments/20211010/aeba76d4/attachment.c>
More information about the xorg-devel
mailing list