On Fri, Apr 12, 2002 at 07:22:16PM +0100, Colin Watson wrote: > When the system is under anything more than moderate load (compiling a > couple of things at once is enough to trigger it, as is the network/disk > load caused by downloading updates to unstable), I frequently get > duplicated key events.
I am still seeing this bug using several different 2.4 and 2.6 kernels, and using xserver-xfree86 4.3.0-0pre1v5 from experimental. There seems to be an upstream fix. Diff is here: http://cvsweb.xfree86.org/cvsweb/xc/programs/Xserver/dix/events.c.diff?r1=3.46&r2=3.47 The log message associated with this commit is: >60. Fix for spontaneous repeated keyboard events during sync grab (#A.1713, > Michal MarĂ¼ka). There is an associated email explanation on the xfree86 list: http://marc.theaimsgroup.com/?l=xfree86&m=104879558008189&w=2 Finally, it looks like RedHat just applied the above patch to their tree after spending about the same amount of time as Debian did trying to figure out whether this was a kernel or X bug. https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=76959 It seems like this race condition is sensitive to small changes in timing between X and the kernel: > I tried setting the keyboard repeat rate to "rate 500 30" under KDE, > busied the system, and typed into the KDE terminal. Keys began repeating at > random, just like they did in GNOME. I also tried setting the rate > to "rate 660 > 25" under GNOME, and could no longer reproduce the key repeating problem. https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=76959#c5 Thanks! Mark

