Bug 475747

Summary: Keyboard repeat settings don't do anything
Product: [Fedora] Fedora Reporter: Felipe Contreras <felipe.contreras>
Component: xorg-x11-drv-evdevAssignee: Peter Hutterer <peter.hutterer>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 10CC: chase, control-center-maint, igeorgex, joerg-rh-bugs, long, mcepl, ralston, rstrode, trevor, xgl-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-06-25 16:48:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
xorg config file
none
xorg log file
none
Xorg log. none

Description Felipe Contreras 2008-12-10 09:18:19 UTC
How reproducible:
Always.

Actual results:
Nothing happens.

Expected results:
The keyboard repeat rate should be updated.

Comment 1 Matthieu Heimer 2008-12-21 09:19:56 UTC
Same problem, installed F10 from live CD, all updates as of Dec 20 are installed.

Using Preferences -> Hardware -> Keyboard I can turn off the repeat but adjusting the delay has no effect at all. The default delay seems rather short and is driving me nuts.

Comment 2 Matthieu Heimer 2008-12-21 10:25:57 UTC
Seems to be related to the new evdev driver being used instead of the old kbd driver (https://fedoraproject.org/wiki/Features/EvdevInputDriver)

Found some more info and workarounds at: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-evdev/+bug/264196

I appended one line to /etc/rc.local
/usr/bin/kbdrate -r 25 -d 500

Comment 3 James Ralston 2008-12-23 04:53:07 UTC
I'm having problems with this as well, but I'm seeing slightly different behavior.

Specifically, the repeat rate I want (30 cps) is in effect for the first second or so, but then the repeat rate *changes* to a slower rate (maybe 15 cps or so). Furthermore, I don't see the problem all the time. I haven't quite pinned down what causes the rate-shift behavior to occur (although I suspect executing ACPI suspend/resumes is involved).

Using kbdrate as per comment 2 gets rid of the two-phase repeat rate effect whenever it crops up.

Comment 4 Matt Castelein 2008-12-24 02:56:52 UTC
(In reply to comment #1)
> Using Preferences -> Hardware -> Keyboard I can turn off the repeat but
> adjusting the delay has no effect at all. The default delay seems rather short
> and is driving me nuts.

I agree, I have the speed slider set all the way to "slow" and the delay slider set all the way to "long" and nothing seems to change.. It's so fast I am going to break my backspace key with all the unwanted repeats I keep having to delete!

Comment 5 Matěj Cepl 2009-01-07 00:10:15 UTC
Thanks for the bug report.  We have reviewed the information you have provided above, and there is some additional information we require that will be helpful in our diagnosis of this issue.

Please attach your X server config file (/etc/X11/xorg.conf, if available) and X server log file (/var/log/Xorg.*.log) to the bug report as individual uncompressed file attachments using the bugzilla file attachment link below.

We will review this issue again once you've had a chance to attach this information.

Thanks in advance.

Comment 6 Matthieu Heimer 2009-01-07 01:37:31 UTC
Created attachment 328336 [details]
xorg config file

Comment 7 Matthieu Heimer 2009-01-07 01:38:47 UTC
Created attachment 328337 [details]
xorg log file

Comment 8 Matěj Cepl 2009-01-08 18:33:23 UTC
Felipe, do we have some your current /var/log/Xorg.0.log, please?

Comment 9 Felipe Contreras 2009-01-17 10:56:59 UTC
Matej: I'm attaching mine, but I don't see the point since Matthieu already did that.

Comment 10 Felipe Contreras 2009-01-17 10:58:43 UTC
Created attachment 329277 [details]
Xorg log.

Comment 11 Matěj Cepl 2009-01-19 23:35:24 UTC
(In reply to comment #9)
> Matej: I'm attaching mine, but I don't see the point since Matthieu already did
> that.

Thanks a lot -- well, I prefer to have one guy (preferably reporter) whom I can torture to get information/testing from him ;-).

Comment 12 Peter Hutterer 2009-02-26 04:13:50 UTC
*** Bug 486944 has been marked as a duplicate of this bug. ***

Comment 13 Trevor Cordes 2009-02-26 13:49:53 UTC
To bring over my bug 486944 info here.  This behaviour exists with both evdev and the old kbd driver.  See my bug for further details, as it's a bit different.  I want to be able to go ABOVE 30cps, to 50 or 60cps.

From my tests, you can always set the delay and rate using xset from the command line, up to 30cps using:  xset r rate 200 30

It just won't let you go above.  The old OS's, like F8 and F5, let you go to arbitrary speeds, and it worked.

Comment 14 JM 2009-02-27 12:44:23 UTC
So far the only solution which worked for me was to add

Option "AutoAddDevices" "off"

to the ServerFlags in /etc/X11/xorg.conf

This disables the EVDEV driver from Xorg and the "old" KBD driver takes over, this way the keyboard repeat rate works again for me.

Comment 15 Trevor Cordes 2009-02-27 17:56:36 UTC
Can you confirm that it lets you go over 30cps and still works properly?  That's great news, thanks for the tip.  I'll be coming back to the world of sanity now.

Comment 16 Felipe Contreras 2009-03-13 10:11:00 UTC
I confirm this workaround works. Ohh, relief.

Comment 17 Trevor Cordes 2009-04-07 06:11:42 UTC
Yes, #14 works ok.  However, I just figured out why sometimes things seem to change for no reason.  I use the pageup/down keys a lot and sometimes accidentally hit numlock.  Today I must have hit it for the first time, as after I hit it my repeat rate changed and the mouse rate changed too (I think).  My kb rate is usually around 200/50.  After numlock it went to what felt like 100/80!  So I run xset to change it back and now it feels like it won't go higher than 45 or so.  And it just feels different, like all of a sudden some resolution changed in both the kb and mouse.  Very weird.

Anyhow, I can trigger the switch to 100/80 by hitting numlock.  I'm pretty sure this happened before I implemented #14 also, though I didn't spot the cause then.

I'm now using the kbd driver and the #14 workaround option.  My kbd rate is usually 200/50 and my mouse "xset m 13/8 0".

This never happened in F8 as I must have accidentally hit numlock 10000 times in F8 without this ever showing up.

Comment 18 Felipe Contreras 2009-06-06 12:00:50 UTC
I'm using F11 live CD and I can't reproduce the problem.

Comment 19 Matěj Cepl 2009-06-25 16:48:49 UTC
Thanks, closing per last comments.