<div><b>PROBLEM:</b><br></div><div>I'm on a fresh install of Ubuntu 20.04 (xorg 1.20.11), with 2 connected keyboards (built-in and USB).<br></div><div>When I hit keys on each keyboard simultaneously in a program like firefox, gnome-terminal etc. stalling/lag occurs.<br></div><div>It only happens for keyboards it seems as moving an external mouse and trackpad together causes no issues.<br></div><div><br></div><div><b>TO REPRODUCE:</b><br></div><div>To investigate the problem I wrote a simple C file (see attached 'xorg-lag.c', compile with $(gcc xorg-lag.c -o xorg-lag))<br></div><div>The program finds keyboard devices under <i>/dev/input/event</i> and uses epoll to poll them for input via the evdev interface.<br></div><div><br></div><div>If I start entering keys on one keyboard and then switch to the other, the program stalls briefly.<br></div><div>If I simultaneously enter keys on each keyboard the program stalls indefinitely until I stop entering keys.<br></div><div>I have tested with different keyboards and experience the same result.<br></div><div>If I switch to a virtual terminal and run I experience no lag.<br></div><div>This makes me think it is a bug with xorg.<br></div><div><br></div><div class="protonmail_signature_block"><div class="protonmail_signature_block-user"><div>--<br></div><div>Ryan McClue, Sydney<br></div></div></div><div><br></div>