| View previous topic :: View next topic |
| Author |
Message |
willfe n00b

Joined: 08 Jan 2005 Posts: 16
|
Posted: Sat Jan 08, 2005 3:53 am Post subject: X (xorg) - Dropped keystrokes, random repeats, held metas |
|
|
Hello, all!
I've got a fairly new notebook (Acer Aspire 1522MLi, amd64 (but running Gentoo x86, *NOT* amd64)) that's been running Gentoo smoothly from the outset after some initial wrestling with ACPI.
In X, and *only* in X (running xorg 6.8.1), the keyboard is ... irritating
I actually also had trouble with the touchpad for awhile (synaptics driver). The touchpad threw random mouse movement events and button clicks (left, right, and middle), with TONS of "driver lost sync at byte 1..." messages in the kernel. I fixed that by adding "i8042.nomux" to the kernel boot parameters, so now the mouse is happy.
Now all that's left is this !@#$ing keyboard issue. Here are the symptoms (these all happen at random, whether the others are happening or not):
1) Meta-keys (shift, ctrl, alt, win, menu) stay "held down" even after being released. An example of this: since I use Enlightenment with virtual desktops, I use ALT-F1 through ALT-F4 frequently to switch between desktops. Even though I release ALT after the switch, it stays held down. Thus trying to type through to the application on that desktop ends up sending all those keys as if I was holding down ALT as I type them. This has caused Bad Things(tm) to happen
2) Keys repeat even though they're not being held down. Example: push [enter] to run a command at a bash prompt. You'll keep seeing new prompts every line (scrolling nonstop) as [enter] is held down (even though the key is pressed and released, not held).
[note, 1 and 2 seem to be symptoms of an underlying problem -- it looks like keypress release events aren't caught by X]
3) When holding down keys (the arrow keys are the worst), other keypresses are occasionally injected. Example: type out a nice long command line on the shell, or type something long-winded into a text input area in Firefox. Hold the left arrow key to go back to the beginning of the line (don't cheat and hit [HOME] ). There will now be, in random spots, the number "4" inserted. Now go back to the end by holding the right arrow key down. The number "6" gets put in. Same thing happens (with different numbers for each key) for up and down arrows.
4) Keystrokes are dropped. I'll re-type a part of item 3 here without correcting any keystroke problems. My typing doesn't suck, I promise:
| Quote: | | hen holdin down keys (the arrow keys re the worst), other keypresses are occasionally injected. Example: type out a nice long command line on the shell, r type something long-winded into a text input area in Firefox. |
Missing an uppercase "W", a lowercase "g", a lowercase "a", and a lowercase "o". And it was being generous as I did it. I had to hit backspace a dozen times to correct missing strokes in this paragraph.
So, things I've noticed about the problem:
* It doesn't happen on Windows XP (guh), or on the Linux console (so I can kill X, or even switch out of it while it's running, and keystrokes don't get dropped, keys don't repeat, etc.). Only happens in X.
* System temperature doesn't affect the problem. Neither does system load.
* On
* xorg 6.8.0 and 6.8.1 both exhibit this behavior.
* Kernel version seems not to affect this problem, though this is a pretty new box that has only seen kernels since 2.6.9-gentoo-r1.
Current versions of stuff:
xerces ~ # X -version
This is a pre-release version of the The X.Org Foundation X11.
It is not supported in any way.
Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
Select the "xorg" product for bugs you find in this release.
Before reporting bugs in pre-release versions please check the
latest version in the The X.Org Foundation "monolithic tree" CVS
repository hosted at http://www.freedesktop.org/Software/xorg/
X Window System Version 6.8.1.901 (6.8.2 RC 1)
Release Date: 16 December 2004
X Protocol Version 11, Revision 0, Release 6.8.1.901
Build Operating System: Linux 2.6.10-gentoo-r1 i686 [ELF]
Current Operating System: Linux xerces 2.6.10-gentoo #1 Sun Jan 2 14:03:24 MST 2005 i686
Build Date: 01 January 2005
Before reporting problems, check http://wiki.X.Org
to make sure that you have the latest version.
Module Loader present
xerces ~ # emerge --info
Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-gentoo i686)
=================================================================
System uname: 2.6.10-gentoo i686 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.8
Python: dev-lang/python-2.3.4 [2.3.4 (#1, Jan 1 2005, 19:00:14)]
ccache version 2.3 [enabled]
dev-lang/python: 2.3.4
sys-devel/autoconf: 2.59-r6, 2.13
sys-devel/automake: 1.5, 1.7.9, 1.9.3, 1.8.5-r2, 1.6.3, 1.4_p6
sys-devel/binutils: 2.15.92.0.2-r2
sys-devel/libtool: 1.5.10-r2
virtual/os-headers: 2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -pipe -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/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /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/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://mirrors.tds.net/gentoo http://mirrors.tds.net/gentoo http://gentoo.ccccom.com ftp://gentoo.ccccom.com"
LDFLAGS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/fluidportage/trunk"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib acl acpi aim alsa apache2 apm arts audiofile avi bash-completion bcmath berkdb bitmap-fonts bzlib cdr crypt cups dba dga divx4linux doc dvd dvdr encode esd ethereal fam fastcgi fbcon flac flash foomaticdb fortran gd gdbm gif gmp gnome gphoto2 gpm gps gtk gtk2 icq imagemagick imap imlib innodb ipv6 jabber java jpeg junit kde lesstif libwww mad maildir mbox mcal mikmod mmx motif mozilla mpeg msn mysql ncurses nls offensive oggvorbis oscan oss pam pcmcia pda pdflib perl php plotutils png pnp postgres ppds python qt quicktime readline samba scanner sdl session slang snmp spell sse ssl svga tcltk tcpd tetex tiff truetype trusted usb vhosts videos wmf xine xml xml2 xmlrpc xmms xosd xpm xvid yahoo zlib video_cards_via"
So, any ideas what could cause this or what might fix it? This machine is nice and fast and spiffy but it's bloody useless with a misbehaving keyboard
Thanks, all! |
|
| Back to top |
|
 |
hardcore l33t


Joined: 01 Nov 2003 Posts: 626 Location: MSU, MI
|
Posted: Sat Jan 08, 2005 4:09 am Post subject: |
|
|
This may sound stupid, but has someone spilled something sugary on the keyboard? My parents had such a keyboard, where alt would stay pressed down unless you banged on the keyboard. _________________ Nothing can stop me now, cuz I just don't care. |
|
| Back to top |
|
 |
willfe n00b

Joined: 08 Jan 2005 Posts: 16
|
Posted: Sat Jan 08, 2005 4:13 am Post subject: |
|
|
Heh, I wish someone had -- then I'd know who to smack
It's a pretty new machine -- it's been out of its box less than a month. It is a notebook, but it is in good condition, no spills (I did "sniff" it to make sure someone didn't spill something on it when I wasn't looking, but I rarely leave it unattended and no one else uses it).
So, no spills as far as I know.
Watching output from xev, it seriously does just seem to miss "Key Released" events, and also appears to miss "Key Pushed" events too. |
|
| Back to top |
|
 |
willfe n00b

Joined: 08 Jan 2005 Posts: 16
|
Posted: Sat Jan 08, 2005 4:14 am Post subject: |
|
|
Check that, I was mistaken -- in xev, when a key starts repeating by itself, both a keypress and keyrelease event are generated.
Just gets nastier and nastier  |
|
| Back to top |
|
 |
willfe n00b

Joined: 08 Jan 2005 Posts: 16
|
Posted: Sat Jan 08, 2005 4:16 am Post subject: |
|
|
| Also, just a quick note, 2.6.10-gentoo-r2 makes no difference in this behavior (just finished upgrading to it). |
|
| Back to top |
|
 |
hardcore l33t


Joined: 01 Nov 2003 Posts: 626 Location: MSU, MI
|
Posted: Sat Jan 08, 2005 4:24 am Post subject: |
|
|
Try popping a knoppix cd in, and run it for a few days, see if you can replicate the problem. Also if you have access to another OS, say windows, see the problem repeats itself using that OS. If you have the same problem across multiple OS's and linux distro's, you have yourself a hardware problem, and you should contact your notebook manufacturer.
It also could be your kernel which you correctly stated. Try using an earlier 2.6.* kernel, or a 2.4 kernel and see if the problem persists. _________________ Nothing can stop me now, cuz I just don't care. |
|
| Back to top |
|
 |
willfe n00b

Joined: 08 Jan 2005 Posts: 16
|
Posted: Sat Jan 08, 2005 4:27 am Post subject: |
|
|
Nah, I mentioned above (in the first horribly long-winded post, sorry ) that in Windows (XP Pro SP2) on the same hardware, all is well.
Also, the Linux console is unaffected. If I don't start X, or if I switch out of X to the framebuffer console, all is well.
Thanks though -- I'll grab Knoppix and see if I can coax it into misbehaving. |
|
| Back to top |
|
 |
rfdonnelly n00b


Joined: 31 Dec 2004 Posts: 68 Location: Riverside, CA USA
|
Posted: Sat Jan 08, 2005 8:09 am Post subject: |
|
|
In /var/log/messages do you see something similar to the following?:
| Code: | Jan 8 00:07:39 rob atkbd.c: Unknown key released (translated set 2, code 0x81 on isa0060/serio0).
Jan 8 00:07:39 rob atkbd.c: Use 'setkeycodes e001 <keycode>' to make it known.
|
|
|
| Back to top |
|
 |
willfe n00b

Joined: 08 Jan 2005 Posts: 16
|
Posted: Sat Jan 08, 2005 8:12 am Post subject: |
|
|
Yes, in droves. I've wondered about this but wasn't sure what to do about it (or whether it was related).
An example:
Jan 7 23:10:07 xerces atkbd.c: Unknown key released (translated set 2, code 0xe0 on isa0060/serio).
Jan 7 23:10:07 xerces atkbd.c: Use 'setkeycodes e060 <keycode>' to make it known. |
|
| Back to top |
|
 |
rfdonnelly n00b


Joined: 31 Dec 2004 Posts: 68 Location: Riverside, CA USA
|
Posted: Sat Jan 08, 2005 9:14 am Post subject: |
|
|
Well I wasn't able to find a straight answer for why this happens but I got the message to stop and the weird keyboard behavior seems to have stopped.
Basically do what the log tells you: setkeycodes e060 <keycode> where keycode is any(?) number not being used already. Use getkeycodes to check keycodes in use. Looks like mostly 80-255 are used so you should be safe just using a smaller number: setkeycodes e060 55 |
|
| Back to top |
|
 |
willfe n00b

Joined: 08 Jan 2005 Posts: 16
|
Posted: Sat Jan 08, 2005 9:26 am Post subject: |
|
|
When you mentioned the keycode error initially, I jumped the gun and started running setkeycodes against all the keys it complained about.
I've now set keycodes for each unknown event it spots, and the repeat/dropped keys issue persists The irritating thing here is that it *still* throws the errors into /var/log/messages even though getkeycodes shows definitions for the keys I defined.
Bleh Is it time for the mallet yet?  |
|
| Back to top |
|
 |
lothar Tux's lil' helper


Joined: 10 Mar 2004 Posts: 87 Location: Norway
|
Posted: Sat Jan 08, 2005 6:29 pm Post subject: |
|
|
I've got exactly the same problem!!! Its really annoying, and I get the same error in /var/log/messages...
Need a solution for this |
|
| Back to top |
|
 |
willfe n00b

Joined: 08 Jan 2005 Posts: 16
|
Posted: Sun Jan 09, 2005 2:53 pm Post subject: |
|
|
| So are there any other ideas for solving this? |
|
| Back to top |
|
 |
lothar Tux's lil' helper


Joined: 10 Mar 2004 Posts: 87 Location: Norway
|
Posted: Sun Jan 09, 2005 6:54 pm Post subject: |
|
|
When the keys get messed up on my comp. I just press all the meta keys and hammer all I can on the keyboard and suddenly after 5min or something the keys are back to normal.. Cant loose the precious uptime  |
|
| Back to top |
|
 |
willfe n00b

Joined: 08 Jan 2005 Posts: 16
|
Posted: Sun Jan 09, 2005 8:49 pm Post subject: |
|
|
Heh. The "bang on the keys" approach both feels good and makes meta keys stop sticking, but doesn't help with the repeating or dropped keystrokes  |
|
| Back to top |
|
 |
Jtb Apprentice

Joined: 19 Dec 2003 Posts: 157 Location: Germany/Darmstadt
|
Posted: Wed Jan 19, 2005 12:05 pm Post subject: |
|
|
I have an Acer Aspire 1501LMi and my keys seems to stuck also sometimes..
But this is not also a Gentoo/Linux-Problem but also a Windows (XP) problem - sometimes while playing e.g. Q3 one of the cursorkeys get stuck and I strafe all the time to left/right/..
Very often CTRL or ALT gets Stuck - maybe I should call Acer if it's a known problem  _________________ Jens
.. God is real - unless declared integer! |
|
| Back to top |
|
 |
willfe n00b

Joined: 08 Jan 2005 Posts: 16
|
Posted: Wed Jan 19, 2005 8:11 pm Post subject: |
|
|
See, lately I've thought it was hardware too, so to make sure I've been running the machine on Windows XP Pro for the last few days. I've played games, written journal entries, even coded (*gasp* -- ActiveState's ActivePython has a pretty damned nice development environment; I'm impressed), and haven't seen ONE dropped keystroke, repeat event, or other random nastiness exhibited in X.
As an update, I also ran for a couple days just on the framebuffer console (with X running in the background and without). The problem is definitely at its worst under X, however I *did* see very occasional keystroke drops even on the console. That and the "missed key release event" thing happens (as CTRL, SHIFT, ALT, etc., get held down) but not nearly as frequently. Whatever X is doing to poke this bug, it's sure good at it.
So to recap:
* In X, it's terrible. Lots of missed keystrokes, repeats, held-down meta keys, etc.
* On Linux console, it's definitely livable; one out of every five hundred strokes are missed, and over two days only one meta key got held down for me.
* On Windows, all is well. Not a single held key, dropped stroke, or repeat event.
If it's hardware, I'm stumped as to what it could really be. |
|
| Back to top |
|
 |
stuart Guru


Joined: 27 Apr 2003 Posts: 552
|
Posted: Fri Jan 21, 2005 12:34 pm Post subject: |
|
|
i have same problem
if you have any solution please post here _________________ Pochissime persone crescono. La maggior parte della gente invecchia. |
|
| Back to top |
|
 |
willfe n00b

Joined: 08 Jan 2005 Posts: 16
|
Posted: Mon Jan 31, 2005 7:27 pm Post subject: |
|
|
Posting an update, since the notebook had a hardware problem.
The hard disk in the machine crashed. Acer shipped a replacement, I reloaded everything (Windoze first, *sigh*), then put a fresh shiny new Gentoo install on the second partition from scratch again.
Days of compiling, and ...
... the damned keys still stick, hold down, get dropped, etc. The problem persists.
Bleh. Any ideas, anyone? |
|
| Back to top |
|
 |
lothar Tux's lil' helper


Joined: 10 Mar 2004 Posts: 87 Location: Norway
|
Posted: Mon Jan 31, 2005 8:40 pm Post subject: |
|
|
I've bough a new barebone computer.. The old computer is now just acting as server.. I've got all the same apps on the new computer, the only difference is that I'm not using ~x86 xorg, on the old computer I always had the "unstable" xorg..
Anyway, on the new computer I haven't got this problem at all. I'm even using my old home folder, shared via NFS from the server.. Weird..
Its either a hardware problem or a Xorg problem |
|
| Back to top |
|
 |
rfdonnelly n00b


Joined: 31 Dec 2004 Posts: 68 Location: Riverside, CA USA
|
Posted: Tue Feb 01, 2005 3:47 am Post subject: |
|
|
| lothar wrote: | I've bough a new barebone computer.. The old computer is now just acting as server.. I've got all the same apps on the new computer, the only difference is that I'm not using ~x86 xorg, on the old computer I always had the "unstable" xorg..
Anyway, on the new computer I haven't got this problem at all. I'm even using my old home folder, shared via NFS from the server.. Weird..
Its either a hardware problem or a Xorg problem |
Are you using the same keyboard on the new computer that you used on the old computer or are you using a whole different keyboard? If you are using the same keyboard on both then it would yeild some new information but if you are using a different keyboard then this isn't a big deal. Because, I think it is the software having trouble dealing with certain hardware.
Maybe if everyone experiencing this could start listing what hardware they are using. I am using a Microsoft Natural Wireless Multimedia Keyboard and am having issues.
This gives me another idea. Later on I'll try this keyboard on some other gentoo boxes. Will post again w/ results. |
|
| Back to top |
|
 |
rfdonnelly n00b


Joined: 31 Dec 2004 Posts: 68 Location: Riverside, CA USA
|
Posted: Tue Feb 01, 2005 3:51 am Post subject: |
|
|
| willfe wrote: | Nah, I mentioned above (in the first horribly long-winded post, sorry ) that in Windows (XP Pro SP2) on the same hardware, all is well.
Also, the Linux console is unaffected. If I don't start X, or if I switch out of X to the framebuffer console, all is well.
Thanks though -- I'll grab Knoppix and see if I can coax it into misbehaving. |
Did you get around to trying to replicate this on Knoppix? If so, what are your results? |
|
| Back to top |
|
 |
willfe n00b

Joined: 08 Jan 2005 Posts: 16
|
Posted: Tue Feb 01, 2005 7:31 am Post subject: |
|
|
I booted Knoppix 3.7 an hour ago and messed with it for awhile. Pretty spiffy actually, hadn't used it for a few years. ndiswrapper didn't work right though
However, the *keyboard* was flawless. X (XFree86, as opposed to xorg) started up fine (VESA-only; support doesn't yet exist for VIA Unichrome/S3 chipsets on notebook display panels), mouse and keyboard were both well behaved. No dropped keys, no repeats, no held-down metas, etc.
I did note in X's startup log that it was using the "legacy" driver to handle the keyboard. Does such exist on the x.org server? |
|
| Back to top |
|
 |
lothar Tux's lil' helper


Joined: 10 Mar 2004 Posts: 87 Location: Norway
|
Posted: Wed Feb 02, 2005 12:47 pm Post subject: |
|
|
| rfdonnelly wrote: | | lothar wrote: | I've bough a new barebone computer.. The old computer is now just acting as server.. I've got all the same apps on the new computer, the only difference is that I'm not using ~x86 xorg, on the old computer I always had the "unstable" xorg..
Anyway, on the new computer I haven't got this problem at all. I'm even using my old home folder, shared via NFS from the server.. Weird..
Its either a hardware problem or a Xorg problem |
Are you using the same keyboard on the new computer that you used on the old computer or are you using a whole different keyboard? If you are using the same keyboard on both then it would yeild some new information but if you are using a different keyboard then this isn't a big deal. Because, I think it is the software having trouble dealing with certain hardware.
Maybe if everyone experiencing this could start listing what hardware they are using. I am using a Microsoft Natural Wireless Multimedia Keyboard and am having issues.
This gives me another idea. Later on I'll try this keyboard on some other gentoo boxes. Will post again w/ results. |
I'm using the same keyboard but a different mouse..
But on the other computer I had a KVM-Switch, with the keyboard wired to the switch, and the mouse directly to the computer via USB.
Maby it was the KVM-switch that f*'ed it up.. But it did work fine on other computers when I used that KVM switch |
|
| Back to top |
|
 |
I want the best candy n00b

Joined: 03 Feb 2005 Posts: 1
|
Posted: Thu Feb 03, 2005 12:43 am Post subject: |
|
|
Sorry for a long post. I feel really sorry especially considering that it won't give any definitive answers to the problem. I will do my best to make it short. I emphasize that this won't be helpful very much, as I know very little about it.
1. This seems to be a xfree86 problem. It happens with xfree86, and the xorg implementation in at least two different underlying OS. Here is the post about the incident in FreeBSD - http://lists.freebsd.org/pipermail/freebsd-questions/2004-September/059594.html
2. The condition that causes the problem can't be narrowed down at the moment, but it seems to have something to do with
hardware (motherboard, KVM, PS/2 extension cable),
compile option of X.
3. There are folks who somehow "solved" the problem. The most were able to recompile X in a way that doesn't bring up the issue by trying different compile options.
4. It also affects a CPU usage, and sometimes involves a mouse problem.
5. Alt and Ctrl seem to be the most involved keys, and that often make the problem appear to be something else. For example, with these keys stuck, your mouse operation may give a strange behavior, and a user might not suspect the keyboard problem. The other keys of course may confuse users, like keys repeating but no input field opened, but slowing down CPU, which may appear to be a problem not related to keyboards.
6. Those who escaped the problem did so by recompiling X, so your best bet at the moment as gentoo users is trying different sets of USE in make.conf that affect X and see any of those do the trick.
7. The bug seems reported to XFree86. See http://marc.theaimsgroup.com/?l=xfree86&m=104879558008189&w=2 Haven't read any response from XFree86.
more observations.
related to #1 above - I have probably tried more than a dozen of different kernel versions to no avail. I have read others who tried different glibc without success. Desktop environments don't seem to matter either.
related to #2 - I've seen one motherboard that has this problem with a very long PS/2 extension cable, and another that shows the symptom much, much less frequently without KVM. The former may still have the problem without an extension cable, but I couldn't see it in a short period of time that I used.
Here is the link to the gentoo forum discussion. It includes the links to more posts about the problem. https://forums.gentoo.org/viewtopic.php?t=156477 |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|