Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: character duplication in X

On Wed, 24 Sep 2008 09:40:13 -0600 (MDT)
Swift Griggs <> wrote:

> On Wed, 24 Sep 2008, Steven M. Bellovin wrote:
> > I'll tap a key and get (literally) hundreds of characters. [...] It 
> > makes the system almost unusable.  Has anyone else seen anything
> > like this?
> I have. I've seen it on a white MacBook 13" with a 2.0Ghz core2duo. I
> seem to remember that I didn't see the same behavior on the same
> system when I installed with i386 instead of amd64. There were too
> many other issues on the system to keep NetBSD on it, so I don't have
> a way to reproduce it anymore (back to OSX for that system). However,
> I can confirm I've seen it. I was messing with "xset r rate XXX
> YYY" (where XXX and YYY are integers). That made it slightly less
> unusable, but didn't fix the issue nearly well enough to live with
> it. Also, FYI, this was a year or so ago that I saw the behavior. I
> didn't check for existing PRs.
Right.  The simplest explanation is that the key up event -- or rather,
the system's perception of it -- has been delayed.  That said,
something has changed, and I have not played with any xset parameters.  

More specifically, 'xset q' shows that my parameters are '500 30',
i.e., wait half a second before repeating and then repeat every 30 ms.
Here's the word 'key' as it came out when I typed it last night:


That's what, 600 copies of the letter y?  At 30 ms/letter, that's 18
seconds worth of delay -- and I'm 100% certain I didn't hold the y key
down that long...

                --Steve Bellovin,

Home | Main Index | Thread Index | Old Index