Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99683 - keyboard repeat in Xorg is fraudulently low after switching to 2.6 kernel
Summary: keyboard repeat in Xorg is fraudulently low after switching to 2.6 kernel
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-20 08:23 UTC by Robert Forsman
Modified: 2005-09-09 07:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Forsman 2005-07-20 08:23:31 UTC
After a recent upgrade my default keyboard repeat in X11 became painfully slow.

xset q reports

  auto repeat:  on    key click percent:  0    LED mask:  00000000
  auto repeat delay:  660    repeat rate:  25
  auto repeating keys:  00ffffffdffffbbf
                        fadfffdfffdfe5ef
                        ffffffffffffffff
                        ffffffffffffffff

If I "xset r rate 660 24" or "xset r rate 660 26" the keyboard repeat speeds up
to something I am more used to.  If I then "xset r rate 660 25" then the
keyboard repeat slows down to its 1Hz crawl (rather than the 25Hz the second
parameter is supposed to mean).

I am inclined to blame this change on my recent upgrade from kernel 2.4.28 to
kernel 2.6.11 based on the timing.


Reproducible: Always
Steps to Reproduce:
1. hold down the spacebar
Actual Results:  
keyboard autorepeats at about 1Hz

Expected Results:  
keyboard should be autorepeating at 25Hz

Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.3.5-20050130-vanilla,
glibc-2.3.5-r0, 2.6.12-gentoo-r6 i686)
=================================================================
System uname: 2.6.12-gentoo-r6 i686 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.10
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/thoth/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex X Xaw3d acl alsa apache2 apm arts avi bash-completion
berkdb bitmap-fonts bonobo bzlib cdr crypt cups curl divx4linux doc dv dvd dvdr
dvdread edl emboss encode esd fam ffmpeg foomaticdb gd gdbm gif gnome gpm gtk
gtk2 gtkhtml guile imagemagick imlib ipv6 java jpeg junit kde libg++ libwww mad
maildir mikmod mjpegi mmx mng motif mp3 mpeg mysql mythtv ncurses nls nojython
ogg oggvorbis opengl oss pam pcmcia pdflib perl png python qt quicktime readline
samba sdl spell sse sse2 ssl svg svga tcltk tcpd theora tiff transcode truetype
truetype-fonts type1-fonts unicode v4l vim-with-x vorbis win32codecs wmf
xinerama xml xml2 xmms xv xvid yv12 zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2005-07-20 10:16:57 UTC
We'll see what kernel people have to say about that.
Comment 2 Daniel Drake (RETIRED) gentoo-dev 2005-07-25 03:41:28 UTC
Is the keyboard repeat speed outside of X (at a real console) just as slow?
Comment 3 Robert Forsman 2005-07-25 07:58:38 UTC
Yes, in a text console (actually, I use a graphical splash mode) the keyboard
repeat is painfully slow.  I haven't researched a tool to control this, but I'm
sure if I did more console work I would be forced to hunt one down.

On the off chance it is relevant, these are my lilo arguments to the kernel:
video=vesafb:1280x1024-16@60 splash=silent,theme:Emergance quiet CONSOLE=/dev/tty1
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2005-07-29 16:59:52 UTC
Is this a USB or PS/2 keyboard? Do you have any keyboards of the other type
which you can test?
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2005-07-31 07:12:38 UTC
Sometimes the keyboard repeat rate is configurable in the bios. Have you tried
playing with any available settings there?
Comment 6 Robert Forsman 2005-08-01 12:00:02 UTC
This is the keyboard built-in to a ZV-5000 laptop.

$ dmesg | grep -i key 
input: AT Translated Set 2 keyboard on isa0060/serio0

The BIOS on this laptop has almost NO options.  There is no setting for keyboard
autorepeat.
Comment 7 Daniel Drake (RETIRED) gentoo-dev 2005-08-02 09:18:18 UTC
Ok. Are you able to test with any external keyboards (e.g. PS2 or USB)?
Comment 8 Robert Forsman 2005-08-03 19:43:00 UTC
I attempted to attach a USB keyboard.  I did this after the laptop was booted. 
The external keyboard appeared to be non-functional in both the console and X11.
 I couldn't even get the lights to come on with numlock and capslock.

The xorg.conf man page was useless.  I tried some things from web pages
discovered with google, but none of them made the keyboard work in X11.
Comment 9 Daniel Drake (RETIRED) gentoo-dev 2005-08-04 02:59:25 UTC
Please plug the keyboard in, and then attach the output of "dmesg". Also, please
attach your kernel .config and the output of "lspci -v".
Comment 10 Robert Forsman 2005-08-04 08:00:41 UTC
I recompiled my kernel with CONFIG_USB_HIDINPUT once I discovered it was missing.

I currently have a USB keyboard attached.  Holding down a key on the laptop's
built-in keyboard autorepeats slowly.  Holding down a key on the USB keyboard
autorepeats quickly.  This is the same in X and console.
Comment 11 Daniel Drake (RETIRED) gentoo-dev 2005-08-05 08:15:55 UTC
OK, thanks for testing that!

Looks like we are going to have to file an upstream bug report.

Please reproduce this on vanilla-sources-2.6.13_rc6 (soon to be released). If
the problem still exists there, please save the output of "dmesg". Also, emerge
dmidecode and capture the output of "dmidecode" too.

Please attach those two outputs here. If it's not obvious to me, I'll point you
on to filing an upstream bug.

Thanks.
Comment 12 Daniel Drake (RETIRED) gentoo-dev 2005-08-23 07:33:16 UTC
Please reopen when you respond to comment #11
Comment 13 Robert Forsman 2005-09-09 07:47:10 UTC
I did a quickie reboot into 2.6.13-rc6 (vanilla) and the slow keyrepeat was
still a problem.  I still need to capture a dmesg and dmidecode output.