Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X - Annoying keypress repetition bug hunt
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
rlittle
Apprentice
Apprentice


Joined: 17 Dec 2003
Posts: 200

PostPosted: Tue Nov 09, 2004 10:38 pm    Post subject: Reply with quote

I had a funky terminal problem when I upgraded Gnome a while back. What fixed it was deleting config/profile files in my home dir. (in this case: $HOME/.gconf/gnome-terminal/*)

I was *less* than surgical, I deleted everything in the directory and gnome-terminal recreated everything it really needed. If you've upgraded a bunch of your GUI packages (and you're all Gentoo users... :) ) your install may not overwrite all your old profile data so that you maintain your old desktops, colours, etc etc. One of these caused my problems, but I have no particular suggestions for KDE users. Hope this helps someone though.

Luck!
_________________
I need a better signature...
Back to top
View user's profile Send private message
Gaspode
n00b
n00b


Joined: 02 Oct 2004
Posts: 36

PostPosted: Fri Dec 17, 2004 2:02 am    Post subject: Reply with quote

OK, I started having this problem a couple weeks ago, and I still have not found a solution. I can confirm everything jonaswidarsson has said and summarized so far.

Interestingly enough, it started when I decided to switch to NPTL about a month ago. I changed my USE flags, re-emerged glibc and prelink, and then started to re-emerge world. Around that time I first noticed that keyboard repeat problem. I don't know what else I did; I probably changed some CFLAGs as well. And of course, during the update process, a lot of packages including KDE and Xorg got updated, so it's impossible to tell... but the previously installed X version was already xorg-x11-6.8.0-rx, so this was only a minor upgrade. I am at -r4 now, no change.

After a while, I switched back to linuxthreads instead of NTPL. During the last couple of days, I have recompiled everything without NTPL, no success. I have tried other tricks found in this thread to, including the AccessX things (bouncekeys), no success. I tried different kernels, also deactivating APIC and SMP and preempt, no success. I am desperate right now.

Some interesting phenomena: After logging freshly into X or KDE, I can work without any problems for a while, even under heavy system load everything remains snappy and there is no keyrepeat problem. At some point, something seems to snap internally and everything gets sluggish and the key repeat problems start. I could not find any particular event that could cause this change. It even happens if the machine is completely idle, although I am inclined to believe that compiling stuff triggers the change earlier. By the way, sometimes (yesterday, for instance) I was able to work without problems for several hours, compiling hundreds of packages and really stressing my system. I was already hoping I fixed it. But then suddenly it happened again.
The second thing is that sometimes the problem goes away even without restarting the X server. It just stops, and everything is snappy again. And again, I can't see any special event causing this.

I am inclined to believe that this is an X problem, not a KDE problem. First of all, some people report it with other window managers. Second of all, if I have a lagging system, end the KDE session and relogin, it is still there. If I restart the X server, it is gone. Furthermore, I observe that once the problem starts, X starts using dramatically more resources. It usually is around 1-2% if everything is smooth, and uses more than 10% permanently -- even on a otherwise completely idle system -- when the problem is around. Also, I think that 'top' shows me a lot more system CPU usage (as opposed to user CPU usage). I am not a hundred percent certain though. Resource usage of KDE components remains normal, it's only X that starts eating CPU. Also, KDE versions that used to work don't work anymore.

I think it does not make much sense to keep this in the Gentoo forums, since nobody was able to come up with a real solution so far (I believe that some people had different problems than me and jonaswidardsson, more related to general multitasking or resource problems). I would like to post a bugreport, so that developers actually start caring. I am willing to do whatever it takes to narrow this down. I _need_ a working system, I left Windows years ago and I am not going to go back. Since I recompiled everything multiple times without success, I do not believe that a reinstall would help me.

So the question would be: where to file the bug report? Is this the responsibility of the Gentoo xorg maintainer? Or the X people directly? After all, the Gentoo server is heavily patched. What about the fact that it happens to both XFree and Xorg? Maybe it is something completely different? Maybe the xkb driver is broken? Or something else? But since there are several people here able to confirm the problem, it makes sense to report it somewhere...

Any comments?

By the way, while I am writing this I can feel it starting again, slowly. X CPU usage went up to 10%, typing feels slightly laggy (no repeats so far, but it will only take some more minutes I guess...), by which I mean that the characters appear an instant later on the screen than they normally do. My system is completely idle, no compiling going on. Oh well...

That's it. The lag becomes larger and larger, now everything feels really sluggy again and I got the first repeats. THIS SUCKS.
Back to top
View user's profile Send private message
Gaspode
n00b
n00b


Joined: 02 Oct 2004
Posts: 36

PostPosted: Fri Dec 17, 2004 2:07 am    Post subject: Reply with quote

Some idea just came to me: Maybe it'd help to check what X is doing while it wastes time. Is there a way to find out which routines use up CPU? Well, I know there is, at least I think that's what profilers are for, but could somebody point me in the right direction on how to use these with X? I tried attaching strace one, but that crashed the system.
Back to top
View user's profile Send private message
jonaswidarsson
Apprentice
Apprentice


Joined: 16 Jan 2004
Posts: 273
Location: Göteborg, Sweden

PostPosted: Fri Dec 17, 2004 8:02 am    Post subject: Reply with quote

I guess this behaviour is a jungle of unlucky coincidences, but not necessarily caused by related errors and thus hard to isolate when debugging. In my case the nature of the problem was static. Time didn't affect the feel of using the keyboard at all. The only thing I did to solve it was to emerge xorg instead of xfree86. I had other issues regarding multitasking before, completely related to the sources or the compiler being incompatible with the hardware when using -march=pentium4. I don't dare to do that anymore. At least I won't as long as I am using this computer.

Well, good luck!
Back to top
View user's profile Send private message
TheSoko
n00b
n00b


Joined: 31 Dec 2003
Posts: 37
Location: Illinois

PostPosted: Sun Dec 19, 2004 11:35 pm    Post subject: Reply with quote

I too have this problem on my Dell Inspiron 700m Laptop. Keys will randomly behave like they're still pressed, including enter, backspace, and shift, which is super annoying, or sometimes they act like they haven't been pressed at all. I don't seem to have this problem in Win XP. I just tried it on a console as well and my keyboard seemed to behave normally. I tried upgrading my kerne from love-sources-2.6.9-rc4-love1 to love-sources-2.6.10-rc3 but to no avail.

It's a Pentium M 1.6GHz, 512MB of RAM. KDE 3.3.1. Not using NPTL. CFLAGS="-Os -march=pentium3 -fomit-frame-pointer"
_________________
"The illiterate of the 21st century will not be those who cannot read and write, but those who cannot learn, unlearn, and relearn."
-Alvin Toffler
Back to top
View user's profile Send private message
Gaspode
n00b
n00b


Joined: 02 Oct 2004
Posts: 36

PostPosted: Sun Dec 19, 2004 11:38 pm    Post subject: Reply with quote

Funny thing. I upgraded to the newest gentoo-dev-sources, and the problem seems to be gone. At least it did not happen to me during the past three days or so, although I was constantly recompiling my system (2 packages to go, yay!). I might go back to nitro or vivid just to see if it returns. Maybe it's some problem with the staircase scheduler or something like this, because this is what all the sources I tried before had in common, as far as I can see...
Back to top
View user's profile Send private message
TheSoko
n00b
n00b


Joined: 31 Dec 2003
Posts: 37
Location: Illinois

PostPosted: Thu Dec 23, 2004 6:01 am    Post subject: Reply with quote

I tried switching to gentoo-dev-sources also, but I still have the problem. :/

I might try switching to NPTL later this week, if not to solve this issue then for the novelty of it. *shrug*
_________________
"The illiterate of the 21st century will not be those who cannot read and write, but those who cannot learn, unlearn, and relearn."
-Alvin Toffler
Back to top
View user's profile Send private message
vyzivus
Apprentice
Apprentice


Joined: 05 Jul 2004
Posts: 173
Location: Slovakia

PostPosted: Mon Feb 28, 2005 12:35 am    Post subject: Reply with quote

Hi,
I have exactly the same problem as many have described here ('stuck' keys repeating endlessly, keyboard ignores keypress etc). I seem to have solved it by stopping gkrellm2 and gnome-battery-applet. I posted this message here aswell:
https://forums.gentoo.org/viewtopic-p-2136562.html#2136562
I think that this thread and the 'lost ticks' thread are related and both bugs are caused by a faulty ACPI driver/chipset/whatever (at least on my computer).
_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes or should I?
Back to top
View user's profile Send private message
vyzivus
Apprentice
Apprentice


Joined: 05 Jul 2004
Posts: 173
Location: Slovakia

PostPosted: Sat Mar 19, 2005 11:17 am    Post subject: Reply with quote

Ok, stopped gkrellm2 and battery-meter and it didn't help as expected. I went and upgraded to gentoo-dev-sources-2.6.11-r4 - problem persisted. So I got really pissed and removed Power Management Options>ACPI>ACPI support. CPU temperature went 10C above normal, but that damned keyboard finally worked normally! (OK, it messes up sometimes, but really rarely).
So, now I have this configuration:
Code:
[*] ACPI Support
  [ ]   Sleep States (EXPERIMENTAL)
  <M>   AC Adapter
  <M>   Battery
  <M>   Button
  < >   Video
  < >   Fan
  <*>   Processor
  <*>     Thermal Zone

I don't use those three modules when on AC. When running on battery, I just run
Code:
modprobe ac
modprobe battery

and enjoy the comeback of repetitive keys. Please try this somebody and post if it had resolved your problems.
_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes or should I?
Back to top
View user's profile Send private message
joebells
n00b
n00b


Joined: 14 Aug 2004
Posts: 16

PostPosted: Sat Mar 19, 2005 3:55 pm    Post subject: Reply with quote

mine happens in the console before I've even installed x. I feel that it might be my wireless keyboard though as it did it under windows too until I installed the intellitype software. It would be nice to get rid of this problem but it doesn't seem to happen very much anymore.
Back to top
View user's profile Send private message
TheSoko
n00b
n00b


Joined: 31 Dec 2003
Posts: 37
Location: Illinois

PostPosted: Thu Mar 24, 2005 9:45 am    Post subject: Reply with quote

The problem seems to be degrading for me, and I'm fairly certain now that it's a software issue. Now, whenever I'm scrolling through a large text file in eclipse or emacs, or even just holding down an arrow key in an Eterm, somewhere in the middle of the file, if it's the down key it will act like 2 is sticking, and if it's the up key it will act like 8 is sticking. I do not have this issue in Win XP. I doubt adjusing the repeat rates will fix this issue. The only things that's changed since last night when I did not have this issue would be installing the correct driver for DRI, and updating my toolchain. Perhaps tomorrow I'll try removing the DRI driver from my kernel.

The arrow keys issue seems to trigger these messages in dmesg:
Code:
[   54.028205] mtrr: base(0xe8020000) is not aligned on a size(0x640000) boundary
[  162.510920] atkbd.c: Unknown key released (translated set 2, code 0xe0 on isa0060/serio0).
[  162.510924] atkbd.c: Use 'setkeycodes e060 <keycode>' to make it known.


Here's emerge --info...
Code:
Gentoo Base System version 1.6.10
Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.11-love2 i686)
=================================================================
System uname: 2.6.11-love2 i686 Intel(R) Pentium(R) M processor 1.60GHz
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  7 2005, 00:07:02)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-Os -mtune=pentium-m"
CHOST="i586-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/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -mtune=pentium-m"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib acpi alsa apm arts avi berkdb bitmap-fonts crypt cups curl dvd emacs emboss encode esd fam flac font-server foomaticdb fortran gdbm ggi gif gnome gpm gtk gtk2 imagemagick imlib ipv6 ithreads java jpeg junit kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl oggvorbis opengl oss pam pdflib perl png pthreads python qt quicktime readline samba sdl spell ssl svg svga tcltk tcpd tiff truetype truetype-fonts type1-fonts wifi xine xml2 xmms xv zlib video_cards_i810"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS

_________________
"The illiterate of the 21st century will not be those who cannot read and write, but those who cannot learn, unlearn, and relearn."
-Alvin Toffler
Back to top
View user's profile Send private message
AhronZombi
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2004
Posts: 105

PostPosted: Thu Apr 21, 2005 10:00 am    Post subject: Reply with quote

this may be linked to the problem in the topic xorg lockups
_________________
tcotu.net Taking back our freedoms for good!
Back to top
View user's profile Send private message
meltie
n00b
n00b


Joined: 25 Jan 2005
Posts: 8
Location: Bremen, Germany

PostPosted: Tue Jun 07, 2005 1:25 pm    Post subject: Another victim of the strange keyboard problem! Reply with quote

Hi,

I'm having the exact same problem:
- key stay pressed in X
- keys act normal in Windows and in console

I didn't try for long in console, but because it happens frequently and didn'd happen there I believe it happens under X only.
Sometimes it doesn't happen for hours and other times I cannot type a sentence without it happening.

I tried the following to solve the problem:
- tried various 2.6 kernels - didn't change anything
- tried various versions of xorg - didn't change anything either
- tried gnome, because I thought it may be kde related - problem happens when using gnome

Right now I try re-emerging glibc, gcc, xorg, kde with ntpl USEFLAG set and will then, if the problem still exists, emerge -e world.

I 100 % believe it's a software problem.

This really sucks, I hope we find a solution soon.

meltie

P.S.: Typed this whole post without problems!
Back to top
View user's profile Send private message
fedekapo
Apprentice
Apprentice


Joined: 16 Jun 2003
Posts: 223
Location: Argentina

PostPosted: Sat Jul 09, 2005 9:49 pm    Post subject: Reply with quote

I have the same problem, did anyone find a solution?
Back to top
View user's profile Send private message
XMyth
n00b
n00b


Joined: 27 Mar 2005
Posts: 28

PostPosted: Sun Jul 10, 2005 10:53 pm    Post subject: Reply with quote

Just to shed some more light on the subject....

I have a microsoft wireless keyboard. 2.6.12-r4 kernel and KDE 3.4.1. I have the problem *rarely* in KDE but frequently when VNC'ing into KDE. I do NOT have the problem when VNC'ing to the box if it's not to my KDE desktop (i.e. if I just ran vncserver to start xfce or something).
Back to top
View user's profile Send private message
fedekapo
Apprentice
Apprentice


Joined: 16 Jun 2003
Posts: 223
Location: Argentina

PostPosted: Mon Jul 11, 2005 9:32 pm    Post subject: Reply with quote

This thing is killing me.. I don't know what to do..

:(

I've been using only linux for 2 years, and now I got a laptop and I can't use it because of this..
Laptop: Acer 3002LCI
Back to top
View user's profile Send private message
scylding
n00b
n00b


Joined: 24 May 2005
Posts: 12
Location: Wichita, KS

PostPosted: Wed Jul 13, 2005 12:48 am    Post subject: Autorepeat Problem on 700m Reply with quote

Quote:
I too have this problem on my Dell Inspiron 700m Laptop. Keys will randomly behave like they're still pressed, including enter, backspace, and shift, which is super annoying, or sometimes they act like they haven't been pressed at all. I don't seem to have this problem in Win XP. I just tried it on a console as well and my keyboard seemed to behave normally. I tried upgrading my kerne from love-sources-2.6.9-rc4-love1 to love-sources-2.6.10-rc3 but to no avail.

It's a Pentium M 1.6GHz, 512MB of RAM. KDE 3.3.1. Not using NPTL. CFLAGS="-Os -march=pentium3 -fomit-frame-pointer"


I have this problem on my 700m, too. Specs:

    2.0 GHz Pentium M
    512 MB ram
    Gnome 2.8.3
    Gentoo 2.6.11 Kernel
    I don't think I'm using NPTL
    CFLAGS="-march=pentium3 -O2 -fomit-frame-pointer -pipe"


Mine appeared to start after I emerge XMMS, which began freezing my system every time I tried to run it. I unmerged XMMS, which stopped the freezes, but the keys never stopped sticking. Very irritating.
_________________
Dell 700m, 2.0 GHz PM755, 512 KB, 80GB
2.6.11 Kernel, Stage 1 Install
Back to top
View user's profile Send private message
fedekapo
Apprentice
Apprentice


Joined: 16 Jun 2003
Posts: 223
Location: Argentina

PostPosted: Sat Jul 16, 2005 8:17 pm    Post subject: Reply with quote

Final Solution!!!:

This is what I did. I compiled psmouse as module and then I put in /etc/modules.autolado.d/kernel-2.6:

Code:

psmouse rate=40


AND THAT'S IT!!!

Sorry 4 my english
bye
Back to top
View user's profile Send private message
virtual
Tux's lil' helper
Tux's lil' helper


Joined: 12 Aug 2004
Posts: 132
Location: Bergen

PostPosted: Sun Jul 17, 2005 12:53 am    Post subject: Reply with quote

Maybe this will confuse the issue a bit. :D

I had this problem when I was backing up my partitions, I had booted from the 2005.0 x86 minimal CD.

The only (maybe) "common denominator" I can think of is frame buffers. Anyone who has the problem and not using frame buffers (vesafb, vesafb-tng)???
_________________
The roots of education are bitter but it's fruit is sweet.
Back to top
View user's profile Send private message
TheSoko
n00b
n00b


Joined: 31 Dec 2003
Posts: 37
Location: Illinois

PostPosted: Thu Jul 21, 2005 4:32 pm    Post subject: Reply with quote

I had this problem long before I got framebuffer working on my laptop.
_________________
"The illiterate of the 21st century will not be those who cannot read and write, but those who cannot learn, unlearn, and relearn."
-Alvin Toffler
Back to top
View user's profile Send private message
joaobertacchi
n00b
n00b


Joined: 21 Sep 2005
Posts: 6
Location: Campinas/SP - Brazil

PostPosted: Tue Apr 04, 2006 4:14 pm    Post subject: Reply with quote

I have the same problem discribed here. But I'll tell it to you shortly again:

Problems
- random keyboard repeat rate in X. In console it's ok.
- mouse click problems
*double-click don't works (maybe I need to be very fast to it works)
*right-click don't shows the menu. I need to click and keep pressed

More Info
- I use a serial mouse
- xfce4
- In login manager (gdm) there is no problem!!!!
- In another computer (serial mouse and almost the same hardware) with Ubuntu the problem is there.

The problem started after some package compilation. Stopped and started again always after compile some package...
I have another hd with a working gentoo with kde. In there, no problem. If you want, I can do some tests to help....

I'll try to remove the kernel support to "AC Adapter" and "Battery" in ACPI.
Back to top
View user's profile Send private message
joaobertacchi
n00b
n00b


Joined: 21 Sep 2005
Posts: 6
Location: Campinas/SP - Brazil

PostPosted: Tue Apr 04, 2006 11:38 pm    Post subject: Reply with quote

After recompile the kernel without AC Adapter, Battery and not needed device drivers (IDE, audio, video and imput devices that are not present in my computer) every things started to work fine.
Back to top
View user's profile Send private message
smadasam
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jun 2005
Posts: 82
Location: Seattle, WA

PostPosted: Tue May 02, 2006 5:54 pm    Post subject: gnome terminal Reply with quote

I was having the same problem. Every thing worked fine in a virtual console, but the keyboard seemed extreemly lagy in gnome. Just as a test, I tried xterm. That seems to work properly. I re-emerged gnome terminal, and that seemed to fix it for me.
_________________
Intel 486 DX4 100
16 MB RAM
ATI Mach64 2 MB
300 MB HD
14.4 kbps
Back to top
View user's profile Send private message
joaobertacchi
n00b
n00b


Joined: 21 Sep 2005
Posts: 6
Location: Campinas/SP - Brazil

PostPosted: Sun May 28, 2006 9:02 pm    Post subject: Solved Reply with quote

The changes that I suggested didn't work.
The defect is totally random. Some times it occurs and other times didn't. But the symptoms only changes when I restart the computer.
I saved a copy of dmesg when the system was bad and another copy when it was OK.
I noticed that when the system isn't ok, the timesource is pmtmr and when it's ok, the timesource is tsc.
Bellow is a part of diff.

Code:
-Using pmtmr for high-res timesource
+PM-Timer had inconsistent results: 0x0x4485db, 0x0x4481e2 - aborting.
+Detected 451.101 MHz processor.
+Using tsc for high-res timesource


This links talk about the clock timesource.
http://www.linuxquestions.org/questions/showthread.php?t=285791
http://lists.debian.org/debian-amd64/2006/02/msg00161.html
/usr/src/linux/Documentation/kernel-parameters.txt

To force kernel to use tsc use "clock=tsc" parameter.
After change this my computer is ok (until now for a week)
Back to top
View user's profile Send private message
coregan
n00b
n00b


Joined: 21 Jun 2005
Posts: 9
Location: Montreal, Canada

PostPosted: Mon Nov 06, 2006 4:02 pm    Post subject: Re: Solved Reply with quote

joaobertacchi wrote:
To force kernel to use tsc use "clock=tsc" parameter.
After change this my computer is ok (until now for a week)


Many, many thank yous for pointing me in the right direction. I have been experiencing similar problems for the past couple of months and getting pretty desperate.

In my case, my time source switched from pmtmr to tsc after a kernel update, so it was tsc that was wreaking havoc. After recompiling my kernel with support for pmtmr (for some reason it was disabled after the kernel update) and passing the "clock=pmtmr" parameter to the kernel, my problems went away.

After much Googling, my understanding is that tsc does not work correctly on dual-core or multiple CPU systems, particularly on a notebook where the CPU might change freqency dynamically to save on power consumption. When my system switch to using tsc, it caused problems for applications that need a reliable time source, like keyboard entry (i.e. counting how long a key has been pressed).


Chris
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
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