Bug 22515

Summary: XkbSetDetectableAutoRepeat returns "supported" but has no effect
Product: xorg Reporter: Tim Mann <freedesktop-bugzilla>
Component: Server/Input/XKBAssignee: Daniel Stone <daniel>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: abolte, eich, jimportal, lawrencek, mat, peter.hutterer, ralfjung-e, rami.ylimaki, sndirsch
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Reproducer
none
Xorg.0.log none

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

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:1.1.99.2-1ubuntu2.  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]
Xorg.0.log
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:

  http://lists.freedesktop.org/archives/xorg/2009-June/045945.html

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.