Hi, Some further debugging (ktrace'ing X) unveiled that it was an ioctl, namely KDSETLEDS, which was taking so long. I'm not sure what it's for, since I've removed the lock for Capslock, there should be no need to change the LED status. So, i've tried just ignoring the ioctl in kernel, which did work (no LEDs active on the keyboard anymore), but the lag was still there. Then, I tried disabling LED-setting in xf86-input-keyboard, which did work - no more lag :-). The patch is simple: --- src/bsd_kbd.c.orig 2009-02-11 14:39:16.000000000 +0100 +++ src/bsd_kbd.c @@ -71,6 +71,7 @@ int KbdInit(InputInfoPtr pInfo, int what static void SetKbdLeds(InputInfoPtr pInfo, int leds) { + return; KbdDevPtr pKbd = (KbdDevPtr) pInfo->private; int real_leds = 0; However, a "real" solution would be preferred. By the way: My keyboard is a Kinesis Advantage Contoured USB. I've tried using all the other USB ports I have, but it did not make a difference. Unfortunately, my mainboard (Intel DQ45CB) does not have any PS/2 ports to test if this is related to USB. Best regards, Michael
Attachment:
pgpJz7gbj8WPc.pgp
Description: PGP signature