tuxedocomputers / tuxedo-keyboard

This repository will no longer get any updates as the code here is now part of tuxedo-drivers https://gitlab.com/tuxedocomputers/development/packages/tuxedo-drivers.
https://gitlab.com/tuxedocomputers/development/packages/tuxedo-drivers
GNU General Public License v3.0
300 stars 92 forks source link

Irregular input latency on Arch/Endeavour OS #160

Closed vmaurin closed 1 year ago

vmaurin commented 1 year ago

Hi

When using the module, I have a visible input lag on the keyboard, that is also quite irregular (sometime short, sometime long). It is not a system issue (trackpad is reponsive, external USB keyboard too). If I remove the tuxedo_keyboard module, it works fine too, but I cannot have the control center anymore

A small video to expose the problem (where you can hear the key press)

https://user-images.githubusercontent.com/17569830/215269422-385b6774-0794-4f90-b463-276e2ff45695.mp4

Laptop : Pulse 15 Kernel version : 6.1.8

crisidev commented 1 year ago

I have the same issue on a pulse 14 with Ubuntu 22.04.

vmaurin commented 1 year ago

@crisidev Which kernel ? From the source code, I am not seeing something handling a input loop or similar, so it might be an issue that show up with a specific kernel and some options on the module ?

crisidev commented 1 year ago

It's something I experience from when I have the laptop, so various 5.x, 6.0, 6.1.

I am not fiddling with the module options, it's what comes with Ubuntu, and it does not happen if I am using a usb keyboard, only when I type on the laptop keyboard.

vmaurin commented 1 year ago

Doing some test with "evtest", I can see two different sources in /dev/input/event[N]

It seems the latency affect both, but it might be a difference compared to a USB keyboard

vmaurin commented 1 year ago

I have played with the code and recompile the module but no luck in this direction, but then I noticed something : when I stop the service tccd (the control center associated service), the lag disappears. It is showing up again as soon as I start the service

@crisidev could you try ?

sudo systemctl stop tccd
vmaurin commented 1 year ago

Ok it was known already here https://github.com/tuxedocomputers/tuxedo-control-center/issues/262

vmaurin commented 1 year ago

Closing this one as waiting on a fix on tccd