Bug 17925

Summary: The key repeat delay for the "down-arrow", "left-arrow" & "End" keys is longer than the other keys
Product: xorg Reporter: Ricardo Perez <ricpelo>
Component: Input/evdevAssignee: Daniel Stone <daniel>
Status: RESOLVED WONTFIX QA Contact: Xorg Project Team <xorg-team>
Severity: minor    
Priority: medium CC: alon.barlev, bugzilla, compnerd, drakoun, eric.sirianni, fadlouni, freedesktop, hramrach, ingmar, iusty, jcrocket, john, oli, peter.hutterer, rajeevvp, remi, ricpelo, wael.nasreddine, whitney, zima
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
My /var/log/Xorg.0.log
none
xkbcomp :0 - none

Description Ricardo Perez 2008-10-06 05:20:25 UTC
From Launchpad:
https://bugs.edge.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/278078

I'm testing Ubuntu 8.10 beta, with GNOME 2.24.0, although I've tested it on Xfce4 and I got the same issue, so the problem is not a GNOME problem.

When I press & hold the "down-arrow" key, the "left-arrow" key or the "End" key, the delay (until the key starts to repeat) is longer than the rest of the keys in the keyboard. I have to hold these keys pressed more time in order to get repetition.

The issue, however, don't appear when you use the down-arrow key in the keypad
(the "2" key), the left-arrow in the keypad (the "4" key) or the "End" key in the keypad (the "1" key).

I'm using a Spanish keyboard. In Layouts tab on "Keyboard Preferences" dialog,
I have the following:

- Keyboard model: Generic 105-key (Intl) PC
- Selected layouts: Spain (default)

To test it, try the following:

1. Go to System->Preferences->Keyboard.
2. Go to Layouts tab.
3. Check "Key presses repeat when key is held down" chekbox.
4. Move the Delay rule to the very left (near to "Short" label).
5. Now, press and hold the arrow (cursor) keys. You can see that the up-arrow
and right-arrow keys works OK, but you need to hold left-arrow and down-arrow
keys more time to get the repetition work (the same for End key).

It's a very irritating bug!

Steps to reproduce:
1. Go to System->Preferences->Keyboard.
2. Go to Layouts tab.
3. Check "Key presses repeat when key is held down" chekbox.
4. Move the Delay rule to the very left (near to "Short" label).
5. Now, press and hold the arrow (cursor) keys. You can see that the up-arrow
and right-arrow keys works OK, but you need to hold left-arrow and down-arrow
keys more time to get the repetition work (the same for End key).

Actual results:
You can see that the up-arrow and right-arrow keys works OK, but you need to
hold left-arrow and down-arrow keys more time to get the repetition work. The
key repeat delay for left-arrow, down-arrow, and End keys is longer.

Expected results:
All the keys, without exception (including left-arrow, down-arrow & End keys) have the same repeat delay.

Does this happen every time?
Yes.

Another way to testing the existence of this bug:

1. Go to System->Preferences->Keyboard.
2. Go to Layouts tab.
3. Check "Key presses repeat when key is held down" chekbox.
4. Move the Delay rule to the very left (near to "Short" label).
5. Go to Accessibility tab.
6. Check "Only accept long keypresses" in "Slow Keys".
7. Move the Delay rule of the "Slow Keys" section to the very left (near to
"Short" label).
8. Open a Terminal. Press and hold any printable key (say, for instance, the
"d" key). You can see the "d" char appearing repeatedly. Now, press and hold
the left-arrow key.

Expected behavior: The blinking cursor moves repeatedly to the left, traveling
all the "d" chars.

Actual behavior: The cursor moves ONLY ONE POSITION to the left, without
repetition.

You can check that the down-arrow & End keys are affected with this bug, too. However, the up-arrow key and the right-arrow key works as expected.

FYI, I'm using latest Ubuntu Intrepid (fully updated), although the problem is
still present with Ubuntu Intrepid beta live CD, during a live session.

Thanks in advance.
Comment 1 Sergey V. Udaltsov 2008-10-06 05:31:52 UTC
It has nothing to do with xkeyboard-config
Comment 2 Ricardo Perez 2008-10-06 05:33:29 UTC
(In reply to comment #1)
> It has nothing to do with xkeyboard-config
> 

Sorry, Sergey, and thanks for the fast reply.
Comment 3 Ricardo Perez 2008-10-06 08:59:47 UTC
I just tried with Kubuntu Intrepid beta live CD, and I can confirm that the bug appears on KDE too, so it's obvious that it's not a GNOME problem nor a KDE problem.
Comment 4 Ricardo Perez 2008-10-06 13:04:51 UTC
I don't know if the following can help:

This is what I have in my Intrepid box (which presents the problem):

$ xprop -root|grep XKB
_XKB_RULES_NAMES_BACKUP(STRING) = "evdev", "pc105", "es", "", "lv3:ralt_switch"
_XKB_RULES_NAMES(STRING) = "evdev", "pc105", "es", "", "lv3:ralt_switch,grp:alts_toggle"

This is what I have in a Hardy box (which doesn't present the problem):

$ xprop -root | grep XKB
_XKB_RULES_NAMES_BACKUP(STRING) = "xorg", "pc105", "es", "", ""
_XKB_RULES_NAMES(STRING) = "xorg", "pc105", "es", "", ""
Comment 5 Ricardo Perez 2008-10-06 13:06:09 UTC
FYI, this is my actual xorg.conf:

=======================
Section "Screen"
 Identifier "Default Screen"
 DefaultDepth 24
EndSection

Section "Module"
 Load "glx"
 Disable "dri2"
EndSection

Section "Device"
 Identifier "Default Device"
 Driver "nvidia"
 Option "NoLogo" "True"
EndSection
=======================

Interestingly, the symptoms are worse if you use the following settings in your xorg.conf:

=======================
Section "InputDevice"
    Identifier "Generic Keyboard"
    Driver "kbd"
    Option "CoreKeyboard"
    Option "XkbRules" "xorg"
    Option "XkbModel" "pc105"
    Option "XkbLayout" "es"
    Option "XkbOptions" "lv3:ralt_switch"
EndSection

Section "InputDevice"
    Identifier "Configured Mouse"
    Driver "mouse"
    Option "CorePointer"
    Option "Device" "/dev/input/mice"
    Option "Protocol" "ExplorerPS/2"
    Option "ZAxisMapping" "4 5"
    Option "Emulate3Buttons" "true"
EndSection
=======================

(which are the settings I had got in Hardy before updating to Intrepid). Using these settings, the "left", "down", and "End" keys delay is still longer.
Comment 6 Ricardo Perez 2008-10-08 05:17:57 UTC
FYI, I'm using X.Org X Server version 1.5.1

$ Xorg -version

X.Org X Server 1.5.1
Release Date: 23 September 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.24-16-server i686 Ubuntu
Current Operating System: Linux kadath 2.6.27-5-generic #1 SMP Fri Oct 3 00:38:23 UTC 2008 i686
Build Date: 06 October 2008  03:13:08PM
xorg-server 2:1.5.1-1ubuntu2 (buildd@rothera.buildd) 
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Module Loader present
Comment 7 Ricardo Perez 2008-10-13 03:08:47 UTC
The bug has been confirmed by another two users in Launchpad:

https://bugs.edge.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/278078
Comment 8 ayucat 2008-10-13 10:52:30 UTC
i've got this problem as well after updating Intrepid beta from Hardy.
in the result of xprop, evdev was appeared...

$ xprop -root | grep XKB
_XKB_RULES_NAMES_BACKUP(STRING) = "evdev", "jp106", "jp", "latin", "grp:alt_shift_toggle,grp_led:scroll,ctrl:nocaps"
_XKB_RULES_NAMES(STRING) = "evdev", "jp106", "jp", "", "grp:alt_shift_toggle,grp_led:scroll,ctrl:nocaps"
$ gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd
 layouts = [jp]
 model =
 options = []

once executing "setxkbmap latin", the layout became like pc105...
however the followings cause some errors:
$ setxkbmap pc105
Error loading new keyboard description
$ setxkbmap pc101
Error loading new keyboard description
$ setxkbmap jp106
Error loading new keyboard description

Some related parts of /etc/X11/xorg.conf on my computer are also shown as follow:
----
Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"jp106"
	Option		"XkbLayout"	"jp,"
	Option		"XkbVariant"	""
	Option		"XkbOptions"	"grp:alt_shift_toggle,grp_led:scroll"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ImPS/2"
	Option		"ZAxisMapping"		"4 5"
	Option		"Emulate3Buttons"	"true"
EndSection
----

This comment is almost the same as the comment: https://bugs.edge.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/278078/comments/11
Comment 9 Ricardo Perez 2008-10-13 11:55:27 UTC
The point is that using xorg is worse than using evdev, because the key delay for left, down & end is longer using xorg. That's the case when you upgrade from Hardy to Intrepid. Anyway, the problem appears using evdev, too (which is the case when you install Intrepid by scratch).
Comment 10 Ricardo Perez 2008-10-13 14:21:57 UTC
I just realized that Xorg.0.log shows two keyboards detected (I have only one):

...
(II) config/hal: Adding input device USB-compliant keyboard
(**) USB-compliant keyboard: always reports core events
(**) USB-compliant keyboard: Device: "/dev/input/event2"
(II) USB-compliant keyboard: Found x and y relative axes
(II) USB-compliant keyboard: Found 10 mouse buttons
(II) USB-compliant keyboard: Found keys
(II) USB-compliant keyboard: Configuring as mouse
(II) USB-compliant keyboard: Configuring as keyboard
(II) XINPUT: Adding extended input device "USB-compliant keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) USB-compliant keyboard: xkb_rules: "evdev"
(**) Option "xkb_model" "pc105"
(**) USB-compliant keyboard: xkb_model: "pc105"
(**) Option "xkb_layout" "es"
(**) USB-compliant keyboard: xkb_layout: "es"
(**) Option "xkb_options" "lv3:ralt_switch"
(**) USB-compliant keyboard: xkb_options: "lv3:ralt_switch"
(**) USB-compliant keyboard: YAxisMapping: buttons 4 and 5
(**) USB-compliant keyboard: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) config/hal: Adding input device USB-compliant keyboard
(**) USB-compliant keyboard: always reports core events
(**) USB-compliant keyboard: Device: "/dev/input/event1"
(II) USB-compliant keyboard: Found keys
(II) USB-compliant keyboard: Configuring as keyboard
(II) XINPUT: Adding extended input device "USB-compliant keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) USB-compliant keyboard: xkb_rules: "evdev"
(**) Option "xkb_model" "pc105"
(**) USB-compliant keyboard: xkb_model: "pc105"
(**) Option "xkb_layout" "es"
(**) USB-compliant keyboard: xkb_layout: "es"
(**) Option "xkb_options" "lv3:ralt_switch"
(**) USB-compliant keyboard: xkb_options: "lv3:ralt_switch"
...

Is it right? I don't think so. Curiously, the /dev/input/event2 device is detected as both mouse and keyboard. However, I have only ONE mouse and ONE keyboard. My system is a desktop computer, not a laptop or such.
Comment 11 Ricardo Perez 2008-10-13 14:22:37 UTC
Created attachment 19635 [details]
My /var/log/Xorg.0.log
Comment 12 Ricardo Perez 2008-10-19 06:57:47 UTC
Any news about this issue?
Comment 13 Ricardo Perez 2008-10-19 09:02:12 UTC
I can confirm the issue on, at least, two additional computers, using either USB or PS/2 keyboards.
Comment 14 Ricardo Perez 2008-10-20 14:58:15 UTC
$ setxkbmap -print
xkb_keymap {
 xkb_keycodes { include "evdev+aliases(qwerty)" };
 xkb_types { include "complete" };
 xkb_compat { include "complete" };
 xkb_symbols { include "pc+es+inet(evdev)+level3(ralt_switch_for_alts_toggle)+group(alts_toggle)+level3(ralt_switch)" };
 xkb_geometry { include "pc(pc104)" };
};
Comment 15 Ricardo Perez 2008-10-20 14:59:00 UTC
Created attachment 19773 [details]
xkbcomp :0 -

This is the "xkbcomp :0 -" output.
Comment 16 Ricardo Perez 2008-10-20 15:00:12 UTC
Switching the distribution layout model from "PC Generic 105 keys (Intl)" to "Evdev-managed keyboard" doesn't solve the problem.
Comment 17 Ricardo Perez 2008-10-20 15:03:40 UTC
Using:

$ xinput test 5

I realized the key presses and releases are correctly detected for all the keys, but however the key delay for left, down and End is abnormaly longer. You can check this very easily if you do:

$ xset r rate 10 50

(for instance) before the "xinput test" command.
Comment 18 Ricardo Perez 2008-10-20 15:39:41 UTC
ANOTHER (EASIER) METHOD TO REPRODUCE THE ISSUE:

1. $ xset r rate 10 50
2. Press and hold any printable key.
3. Now, move the cursor back and forth using the left and right cursor keys. You can see the left key is clearly slower than the right key. Using the down-arrow key or the End key produces the same issue.
Comment 19 Ricardo Perez 2008-11-04 00:18:53 UTC
At

https://bugs.launchpad.net/bugs/278078

some other users reported the same issue, with both GNOME and KDE, and had been confirmed by an Ubuntu Core Developer.
Comment 20 John Watson 2008-11-08 20:19:56 UTC
I arrived here from the launchpad.net bug report. I have the same problem on my system and can reproduce the problem using Ricardo's method in comment 18. This is a fresh install of Ubuntu Intrepid 8.10 (not an upgrade). I previously had no problem with the same hardware on Ubuntu Hardy 8.04.

I'm happy to oblige with any diagnostic info you may need.
Comment 21 John Watson 2008-11-08 21:05:29 UTC
I just noticed another symptom: the key repeat speed changes while holding down a key. To reproduce:

1. Open a text editor (I tried in GVIM and in Gedit)
2. Hold down X
3. After approximately 1 or 2 seconds the key repeat delay changes.

If I set my key repeat to the slowest setting and do this test, the key repeat gets faster.  If I set it to the fastest setting, it slows down. The new speed appears to be identical in both cases.

I get similar behavior when I use the arrow keys to scroll up or down in Firefox. Down arrow is consistently slow. Up arrow is fast for a second and then slows to the "down arrow" speed.
Comment 22 Eric 2008-11-18 10:18:44 UTC
Here's a "me too" on both accounts.

I've filed an ubuntu launchpad bug 299144 https://bugs.launchpad.net/ubuntu/+bug/299144 for the "temporary nature" of the repeat key setting.

To summarize, here is what I'm observing:

1. The "down" and "left" arrow keys always repeat at a slow rate.  I have not been able to find any setting that will change this.
2. The remaining keys repeat at a rate dictated by the "gnome keyboard preferences" setting ("repeat keys speed"). However, this rate is only used for the first 15 or so repeats.  After that the rate reverts to the same slow speed that the "down" and "left" arrow keys repeat at.

This is a serious usability issue for anyone who uses their machine as a development workstation.
Comment 23 Ricardo Perez 2008-11-23 02:53:52 UTC
From Launchpad bugreport (https://bugs.launchpad.net/bugs/278078):
------------------------------------------------------------------

Gah! I just upgraded to Intrepid and this happens to me too. Left and down aren't much slower at repeating than the other keys, but all the keys are quite slow. I can get at most about 6 keypresses per second.

By twiddling with the keyboard repeat controls, xset r rate, and (oddly enough) turning "slow keys" on and off in Accessibility, I can create all kinds of strange behaviors:
* xset r rate allows me to get very fast key repeats... but they happen in a spaced out rhythm. That is, I get 5 keypresses at once, then a 1/6 second or so pause, then 5 more keypresses, and so on.
* If I turn on "slow keys" in Accessibility (oddly enough), I get almost the behavior I want... except that left and down don't repeat _at all_, which is of course a dealbreaker.
* If I set the key repeat delay too low, I get the repeat rate I asked for... for about half a second. Then it slows down to 6 per second.
* If I use xset r rate and move the key repeat sliders anywhere in the Keyboard control panel, it goes back to the slow rate.

I assume from this behavior that there are two things competing for the keyboard repeat rate.

https://bugs.edge.launchpad.net/bugs/264196 seems to be describing the same issue, but over there they've found a few workarounds! Here's the one that worked for me with the least nasty side-effects:

Add this to the end of xorg.conf:

Section "ServerFlags"
Option "AutoAddDevices" "off"
EndSection

The downside is that any extra keys on your keyboard (such as "multimedia keys") won't work.
Comment 24 Attila Lendvai 2008-11-25 06:41:05 UTC
+1 from another  poor guy upgraded to ubuntu 8.10

priority: low?!

this is an  incredibly  annoying bug... please,  treaat it with higherr pririty!
Comment 25 Peter Hutterer 2008-11-25 16:14:07 UTC
Look, we got bugs that crash the server, screw up output rendering, disable your input devices completely, etc.

I understand that this bug is annoying, but being overly vocal to up the priority is not the right to do.
Comment 26 Ricardo Perez 2008-11-26 03:29:25 UTC
The "AutoAddDevices OFF" workaround suggests that the problem is in Input/evdev, not Input/XKB. I'll change this in the bugreport accordingly.
Comment 27 Daniel Stone 2008-11-26 04:55:50 UTC

*** This bug has been marked as a duplicate of bug 17500 ***
Comment 28 Ricardo Perez 2008-11-26 05:11:42 UTC
Daniel, thanks for taking care of this bugreport.

So the left, down & end keys delay issue is clearly related to a more general problem, isn't it? I wonder why these three keys are so special in that sense.
Comment 29 Daniel Stone 2008-11-26 13:37:13 UTC
well, that's my hypothesis, anyway.  the repeat delay for the arrow keys is slightly different to the alphabetic keys, so that presumably just induces undesirable side effects.  the fix should be pretty easy.
Comment 30 Ricardo Perez 2009-01-13 12:42:20 UTC
The fix from bug #17500 does NOT resolve the Left, Down and End keys issue, as an user reported here:

https://bugs.edge.launchpad.net/ubuntu/+source/xserver-xorg-input-evdev/+bug/264196/comments/43

He said that he need to use xset in order to get repetition with these keys. It's a workaround, but it's NOT a full fix.

I propose to reopen this bug, because there's obviously not the same problem as bug #17500.
Comment 31 Raven Morris 2009-01-15 00:39:47 UTC
I experienced the same issue, and found it critically important.  I would have installed a new distro to avoid this issue, as I was very unproductive with my work, it was causing me to make continual mistakes when editing my programs and web sites in Vim.  I heavily rely on my repeat rate of 150 ms delay and 40 characters per second repeat, and expect the cursor to move at exactly that rate -- I don't even look where the cursor is much of the time, knowing how fast it travels and where it should be.

The solution for me was the one suggested above:

Option "AutoAddDevices" "Off"

I tried this after noticing that my Xorg.3.log file showed that not only was the "kbd" driver being loaded, which is the one I specified in my xorg.conf file, but also one which I did not specify which was coming from HAL and using the "evdev" driver.

It seems the auto added "evdev" and "kbd" drivers were somehow competing for the same keyboard.  All is fine once only one driver is being loaded.

Cheers.
Comment 32 kronheim 2009-01-26 08:49:40 UTC
A more current title for this bug would now be 'Key repeat for "down-arrow", "left-arrow" & "End" keys is not happening at all'.

The fact that the key-repeat for these keys did happen (albeit at a different rate from other keys) was a symptom of another bug, namely #17500. When the fix for #17500 is applied, so that only evdev is dealing with key-repeats, the effect is that there is no key-repeat for these three keys.

(While I agree that having different rates for different keys might possibly described as a bug of "minor" severity, I do think that having no key-repeat at all on arrow-keys is now a "major" loss of function.)
Comment 33 kronheim 2009-01-30 13:33:22 UTC
Possibly the same as (part of) this bug is the fact that certain keys that should not repeat actually *do* repeat. This is also reported as a Fedora but at:

  https://bugzilla.redhat.com/show_bug.cgi?id=468619

On my system, the right-hand Ctrl and Alt keys have this problem, as well as the Win key and the Menu key. These keys can be prevented from repeating usin "xset -r 105" etc, but they should not be repeating at all. As pointed out in the Fedora bug report, this prevents one from selecting multiple items in Nautilus by holding the (right-hand) Control key and dragging a over a rectangle ("rubber-band").

Comment 34 Ricardo Perez 2009-02-10 03:07:24 UTC
Any news about this issue?
Comment 35 Ricardo Perez 2009-02-15 04:45:41 UTC
From Launchpad:
https://bugs.edge.launchpad.net/ubuntu/+source/xserver-xorg-input-evdev/+bug/264196/comments/43

I applied the patch from

http://cgit.freedesktop.org/xorg/driver/xf86-input-evdev/patch/?id=ece72ce9e97adae23b1932dc1334f63669196d56

to the intrepid version of xserver-xorg-input-evdev. After restarting X, keyboard delay and repeat could once again be set using the gnome "Keyboard Preferences".

I would also like to comment that neither the "xset" nor the "kbdrate" workarounds had any effect on the repeat rate on my system (a USB keyboard). I think (as others have said) that this bug should have a reasonably high priority: the inability to adjust the keyboard is a serious issue, and the workarounds only work in some cases.

(As a side issue: applying this patch to xserver-xorg-input-evdev exposed me to the other bug: Left, Down and End keys not repeating. This I could work around using xset as suggested by Ricardo above.)
Comment 36 Rajeev V. Pillai 2009-04-14 21:57:33 UTC
The left and down arrow keys do not repeat for me either. The same arrow keys on the number pad work fine, however. The problem started with xf86-input-evdev-2.1.99.1. Versions upto xf86-input-evdev-2.1.3 work just fine. For the later versions, I've had to add the following commands to my ~/.xinitrc:

xset r 113      # left-arrow key repeats
xset r 116      # down-arrow key repeats also

The particular version of the xorg-server being used does not seem to matter. I'm using 1.6.1. My keyboard is an PS/2 TVS Champ keyboard with 107 keys, model no. KB-1808. The relevant xorg.conf lines on my PC:

Section "InputDevice"
        Identifier      "Keyboard0"
        Driver          "evdev"
        Option          "CoreKeyboard"
        Option          "Device" "/dev/input/event0"
#       Option          "Name" "AT Translated Set 2 keyboard"
        Option          "AutoRepeat"    "250 50"
        Option          "XkbModel"      "pc104"
        Option          "XkbOptions"    "ctrl:swapcaps"
EndSection

In comment #31, Raven Morris suggested using:

Section "ServerFlags"
        Option "AutoAddDevices" "Off"
EndSection

to fix the problem. This does not work for me.

Thanks,
Rajeev
Comment 37 Iustin Pop 2009-05-15 13:21:39 UTC
I can confirm that this bug only happens with "evdev", but not with "kdb".

regards,
iustin
Comment 38 Wayne Whitney 2009-06-11 12:03:21 UTC
Hello,

I recently upgraded to Fedora 11 (xorg-x11-drv-evdev-2.2.1-3.fc11.x86_64) on a dual seat machine, and I started having problems with repeating keys.  That is, left arrow, down arrow, and end would not repeat, while right ctrl would repeat when it shouldn't.

I believe this behavior is indicative of the following: the auto repeating keys map as show by 'xset q' is appropriate for the keycodes generated by the kbd driver, but the keyboard is controlled by the evdev driver and generating a different set of keycodes.  For some reason, some of the time this map is not getting initialized properly when using the evdev driver.

On my system, I narrowed it down to the following:  if the ServerFlags "AutoAddDevices" and "AllowEmptyInput" are both true, then the repeating keys map is set correctly. If either one is false, then the repeating keys map is always set for kbd keycodes, even if the keyboard is controlled by evdev.

I hope this information helps in tracking down the problem.

Cheers, Wayne

P.S. Since I have a dual seat system, I need to control which input devices each X process uses.  Originally I did this with AutoAddDevices = false, so X would only see the devices specified in xorg.conf.  I was able to workaround the above problem by switching to AutoEnableDevices = false and AllowEmptyInput = true.  Now X see all the input devices, but each X process only uses the devices specified in the xorg.conf.
Comment 39 Ricardo Perez 2009-06-11 12:09:09 UTC
This annoying bug is fixed in Ubuntu Jaunty (at least, I can't reproduce it since I upgraded from Intrepid to Jaunty two months ago). For me, it's fixed now.
Comment 40 Oli Wade 2009-06-15 12:36:39 UTC
For me it is broken on a fresh install of ubuntu jaunty.

Fixed by "xset r 113/116".
Comment 41 Rajeev V. Pillai 2009-06-16 20:20:50 UTC
Following Wayne Whitney's suggestion in comment #38 has fixed the bug for me. Thanks, Wayne.
Comment 42 Petr Zima 2009-06-22 10:52:37 UTC
I can confirm this bug with xorg-server-1.6.1.901-r3 and xf86-input-evdev-2.2.2 without hal on Gentoo distribution. In particular the Left, Down and End keys do not autorepeat at all. Also confirming that the workaround `xset r 113; ...' works for me.
However it is just a _workaround_. I suspect the keycodes 113, 115 and 116 are mistakenly considered modifiers and hence not autorepeated. This is suggested by the fact that these keycodes are assigned to RALT, RWIN and LWIN when using standard kbd driver (compared to Left, Down and End when using evdev).
I hope this observation will help someone more familiar with XKB conf files truly fix this bug.
Comment 43 Wael Nasreddine 2009-08-04 09:00:01 UTC
(In reply to comment #41)
> Following Wayne Whitney's suggestion in comment #38 has fixed the bug for me.
> Thanks, Wayne.
> 

Ditto, This fixed it for me after hours of struggle with xorg.cong and evdev!

Thanks!
Comment 44 Alon Bar-Lev 2009-08-08 11:01:28 UTC
comment#38 is working.
Conclusion: It is not evdev problem.
Please update subject and reassign to correct component, so this will be fixed.
Thanks!
Comment 45 Wayne Whitney 2009-08-08 12:49:09 UTC
If the problem is not in evdev, what part of Xorg is responsible for setting the default "autorepeating keys" map properly?

Wayne
Comment 46 Petr Lanc 2009-10-06 10:27:54 UTC
I got this annoying behavior too, after I upgrade evdev from 2.1.3 to 2.2.5 (along with upgrade xserver to 1.6). xset -r <keycode> workaround works for me, but it's only workaround. I tried downgrade evdev back to 2.1.3 and autorepeat works nice, like before upgrades. Is really autorepeat map on blame, when evdev version change helps?

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "evdev"
        Option      "protocol" "evdev"
        Option      "Device" "/dev/input/event0"
        Option      "XkbModel" "evdev"
#       Option      "XkbLayout" "us"
        Option      "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
Comment 47 Viktor S 2009-11-01 04:52:45 UTC
Somehow updating to xorg 1.7.1 (and rebuilding of all related input drivers) made this problem go away for me. Anyone else had the same luck?
Comment 48 Rajeev V. Pillai 2009-11-02 20:57:34 UTC
(In reply to comment #47)
> Somehow updating to xorg 1.7.1 (and rebuilding of all related input drivers)
> made this problem go away for me. Anyone else had the same luck?
> 

I can confirm that the bug has disappeared with xorg-server-1.7.1 and xf86-input-evdev-2.3.0. Neither of the hacks in comment #36 and in comment #38 are required.
Comment 49 Alon Bar-Lev 2009-11-11 02:27:50 UTC
I can also confirm that this problem is solved.
But from time to time the keyboard just stops responding...
I have mouse+keyboard in evdev... Only keyboard stops responding at random time.
Comment 50 Viktor S 2009-12-01 14:25:39 UTC
(In reply to comment #49)
> I can also confirm that this problem is solved.
> But from time to time the keyboard just stops responding...
> I have mouse+keyboard in evdev... Only keyboard stops responding at random
> time.
> 

I can confirm this. It happens mostly when I alt+tab and it's xkbcomp that's the culprit. Using KDE I'm able to work around this by going to System Settings -> Regional & Language -> Keyboard Layout and adding a layout, hitting apply. Then the keyboardlayouts are reloaded and my keyboard starts working again. Since this is xkbcomp-problem I can ALT+CTRL+F(x) out to console aswell. I can't remember the exact error in the console where X was started, but it was something about RALT already being mapped and input being ignored. I'll post back whenever it happens again and I can look more closely.
Comment 51 Petr Machata 2009-12-10 07:12:30 UTC
I see this problem too.  I set a crazy repeat values:

# lshal | sed -n '/input.product.*Keyboard/,+5p'
  input.product = 'Dell Dell USB Keyboard'  (string)
  input.x11_driver = 'evdev'  (string)
  input.x11_options.AutoRepeat = '1000 250'  (string)
  input.xkb.layout = 'us,cz,ru'  (string)
  input.xkb.model = 'evdev'  (string)
  input.xkb.options = 'terminate:ctrl_alt_bksp,grp:switch,grp:alt_shift_toggle,grp_led:scroll'  (string)

... yet the keyboard, when unplugged and re-plugged, has some sort of default repeat ratio.

I took a peek in the sources.  config/hal.c:device_added doesn't name that option explicitly (it does so for layout, model, etc.), but it sticks it into its option array anyway.  NewInputDeviceRequest then adds all these options to IDevRec::commonOptions.  hw/xfree86/common/xf86Option.c:xf86CollectInputOptions then copies this over to InputInfoPtr::config.  Then I gave up, `config' is mentioned in too many places for me to sift through.
Comment 52 Petr Machata 2009-12-10 07:13:56 UTC
Oops, wrong bug.  Ignore my comment please.
Comment 53 Peter Hutterer 2017-03-08 09:07:31 UTC
it's now 7 years later, let's not pretend we'll fix this one. re-file if it's still a bug please

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.