Input lag with multiple keyboards

Hey everyone,

Due to ergonomics reasons, I am using a split keyboard, each device is connected to different usb port. If I use only one of them - input is normal, as expected. When I use both of them (regular typing), there is a very noticeable lag before the characters appear on the screen. The faster I write, the worse it gets; if I smash the keys, the input would not appear untill I stop pressing the keys. I googled a bit but had no answer to it, just found out that it’s related to x11. Could anyone try to help and fix it? I am using newest and up to date version of Fedora, Gnome 46, x11. Rough system specs as follows:
Ryzen 9 CPU, 64GB of RAM, RTX 3090, NVMe SSDs.

Best regards

When you say “regular typing” and indicate that is using 2 different keyboards simultaneously the situation is far from normal for most users.

You are forcing the system to coordinate input timing from 2 different sources which causes delay in response.

My keyboard for ergonomic reasons is a logitech K350 or a Microsoft Natural. One wireless and one wired but I use only one at a time. The keyboard is shaped to reduce wrist stress.

I also use a Logitech MX Ergo trackball for the same reason.

Two or more keyboards work just fine, they work independent of each other.

Yes, but timing is the issue since typing with one hand on each causes a forced interlacing of the key strokes.

Hey,

Just to clarify - I am not using 2 different full size keyboards. I am using an Ergodox, a keyboard that is split in two separate pieces. They do not have overlapping keys, so, what I meant by regular typing - is just using them; if I only use one half at a time the input lag is not there, but there is no way to type, as you do not have access to all the keys. This issue doesn’t occur on Windows. Yesterday I did run live session of Rocky and Fedora, and this problem also does not happen, I remember it started happening after I installed Fedora.

There is no lag when I use two keyboards. Try it and you will see the nunber of keyboards makes no difference to the speed that characters appear in a terminal.

i use kde and konsole just now to make sure it all works as I claimed.

What I did notice is that I can hold ctrl on one keyboard and the type a letter on the other to get a ctrl char typed, but no lag.

Does it connect to the computer with one USB cable or two, or is it wireless? Did you have to install drivers for the keyboard on widows?
(I looked at the web site but far to much marketing to see tech details,)

They do not require any drivers, they work out of the box with any connected device. For now, they each connect to a different usb port, that is wired connection. I should also mention, one of the keyboards have some keys remapped via this method:

Could this be the issue?

Things to try:

  • Remove the remapping and see if that is the issue.
  • Plug into different USB ports if you have them.

Hey, sorry it took so long, I was away. I have removed the mappings, tried different usb ports, it still happens. Any other ideas?

Does each keyboard on its own work without lag?

Yes, I mentioned it before - when not used at the same time, they work without any issues

I’m out of ideas, would need access to the keyboards to research further.

Added hardware, keyboard, libinput, special-hardware

What model of ergodox keyboard?

He said I am using an Ergodox, in post 5 above.

However, looking that up seems to indicate that one should connect to the other and only a single usb connection to the PC.

As he has stated, he is using 2 different usb connections.

I wonder if the connection method is the total problem.

Yeah I meant which model of ergodox … fixed. Thanks.

1 Like

My setup is: right side is ergodox, left side is razer orbweaver, that’s why they are connected to different usb ports and not interconnected with each other

This could easily explain the lag since they are not one device (ergodox in 2 pieces) but 2 distinct devices (each with their own firmware). The OS now has to interpret the input and timing since it is not all from one device on a single path.

We are now 18 posts into the thread and only now do we find out that your post 5 which stated it was an ergodox keyboard was not complete and omitted the second device.

It is always helpful and sometimes critical to provide as much information as possible as early as possible so readers can see the full picture (and not just pieces).

In my testing with two keyboards this just works without lag.

The lag is not simply a result of two keyboards.