Bug 22515 - XkbSetDetectableAutoRepeat returns "supported" but has no effect
Summary: XkbSetDetectableAutoRepeat returns "supported" but has no effect
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/Input/XKB (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Daniel Stone
QA Contact: Xorg Project Team
: 22194 (view as bug list)
Depends on:
Reported: 2009-06-27 13:43 UTC by Tim Mann
Modified: 2010-03-01 10:29 UTC (History)
9 users (show)

See Also:
i915 platform:
i915 features:

Reproducer (1.46 KB, text/plain)
2009-06-27 13:43 UTC, Tim Mann
no flags Details
Xorg.0.log (14.52 KB, text/plain)
2009-06-27 13:44 UTC, Tim Mann
no flags Details

Description Tim Mann 2009-06-27 13:43:21 UTC
Created attachment 27195 [details]

The bug is as stated in the summary: calling XkbSetDetectableAutoRepeat returns True and stores True in *supported_rtrn, but detectable autorepeat does not go into effect.  I still get a KeyRelease event before every autorepeat KeyPress event.  I've attached a small program that reproduces the bug.

I imagine this might be a duplicate of bug 22194, but the writeup there is too cryptic and I can't tell what the actual bug is.

I'm hitting this bug on two machines running the version of X that comes with Ubuntu 9.04 (jaunty).  One is a 64-bit AMD desktop using the nvidia driver; the other is a 32-bit Thinkpad T41 using the radeon driver.  The Ubuntu package version number for Xlib is 2:  Unfortunately I don't know where to look for the upstream version number of Xlib.  I'll attach an Xorg.0.log file from one system in case that helps.

(BTW, I'm also experiencing bug 21454 on the same systems -- i.e., the two best ways to suppress keyboard autorepeat both are buggy at the moment.)
Comment 1 Tim Mann 2009-06-27 13:44:14 UTC
Created attachment 27196 [details]
Comment 2 Tim Mann 2009-06-27 14:14:44 UTC
Perhaps too obvious to point out, but this bug is visible through GDK too.  GDK tries to always set detectable autorepeat, and if XkbSetDetectableAutoRepeat says it is not supported, GDK emulates it by filtering out the extra KeyReleased events.  With this bug, since support is claimed but doesn't work, GDK doesn't do the emulation either.
Comment 3 James Eder 2009-07-16 18:19:34 UTC
This breaks some applications in Wine too but I'm mainly commenting to point out this:


I hope this is useful to anyone coming here looking for more information.
Comment 4 Markus Amsler 2009-07-22 10:49:27 UTC
Just confirmed in current git.
I'm not in the position to increase this bugs Priority, but IMO it should be changed to high. This is now hitting mainstream distributions (eg Ubuntu 9.04) and quite some apps may be affected, possibly in some subtle ways.
The problem is understood and Daniel seems to have a fix in his repo, so I hope this will be resolved soon.
Comment 5 Martin Renold 2009-08-02 06:43:26 UTC
*** Bug 22194 has been marked as a duplicate of this bug. ***
Comment 6 Martin Renold 2009-08-02 06:51:01 UTC
Another application that is affected by this bug: https://gna.org/bugs/?14033

There is a patch attached to the the mail that is linked above. Is there something wrong with that fix?
Comment 7 Markus Amsler 2009-10-01 02:53:03 UTC
I just checked with current git and the bug is no more. Looks like it was fixed some time ago by [1].

[1] http://cgit.freedesktop.org/xorg/xserver/commit/?id=bfb219f532f3c78ba905424365ee7c5f7b5f21a2

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.