Skip to contentSkip to conversation

2.6.31-rc2: X stop accepting keystrokes?

DISCUSSION Pavel Machek 3 participants 10 messages Jul 14, 2009 – Jul 26, 2009 HID

lore
Share & tools
lore
#0 lore raw

Hi!

...it happened second time now. In one case, ctrl-alt-backspace helped and I got at least console back, in the other case I had to reboot using sysrq.

...hmm. It was probably same crash, because console switching has probably been locked by X, and I have just one console. I ended up on empty console before.

Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#1 lore raw

Hi,

I'm having very similar issues currently, on two of my systems now (used to be one only for months, now the second one started having the same issues about 4 weeks ago, with no recognizable config change).

Symptoms are that I keep swearing over the system mixing up special key state (Ctrl, Alt, AltGr, etc.), resulting in all sorts of awful actions such as shell logout, view switch, going back to tty, killing text etc.pp.
And sometimes full lockup of keyboard in X.

Interestingly, while trying to fix it, KDE 4.2.2 systemsettings did NOT manage to get my keyboard back when resetting keyboard or mouse dialog state. HOWEVER, switching screen resolution in the graphics configuration section DID get my keyboard back!
Installing entire armadas of xkb*, xinput* packages/utilities had NOT managed to do so...

First system: Desktop, 2.6.30-rc5, Debian testing or unstable, PS/2 keyboard, tweaked xorg.conf (--> HAL input unknown).
Second system: Netbook, Acer Aspire One, 2.6.30(.0), u9.04, PS/2 internal, no xorg.conf (--> HAL input?).

Interesting (if rather non-clueful) pages are
https://wiki.ubuntu.com/X/Troubleshooting/HalBreaksKeyboardAndMouse
https://wiki.ubuntu.com/X/Config/Input

Or it could just really be something strongly kernel-specific for you and something entirely unrelated to the pages and problems above.

Come to think of it, I had some full-keyboard-lockup situation(s) even earlier on my netbook (maybe as far back as 6 weeks?), thus it might actually be my recent kernel update indeed.

And rest assured that it's annoying as hell. :P

Andreas Mohr

#3 lore raw
In reply to Pavel Machek

Hi!

Quoted 7 lines

...it happened second time now. In one case, ctrl-alt-backspace helped and I got at least console back, in the other case I had to reboot using sysrq.

...hmm. It was probably same crash, because console switching has probably been locked by X, and I have just one console. I ended up on empty console before.

It happened four times now. It seems to happen when I type heavily. I was once able to reproduce it by hitting keys heavily/randomly.

Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#4 lore raw
Quoted 6 lines · Pavel Machek

Hi!

Quoted 4 lines

...it happened second time now. In one case, ctrl-alt-backspace helped and I got at least console back, in the other case I had to reboot using sysrq.

Quoted 6 lines
Quoted 3 lines

...hmm. It was probably same crash, because console switching has probably been locked by X, and I have just one console. I ended up on empty console before.

It happened four times now. It seems to happen when I type heavily. I was once able to reproduce it by hitting keys heavily/randomly.

Two more crashes today :-(. -rc2 is pretty much unusable.

...and they seem to be slightly different crashes. Once keyboard was dead but mouse worked, second time keyboard still worked but xterms kept locking up. I managed to type dmesg into one of them, but that xterm hung in middle of dump :-(.

Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#5 lore raw

[ adding some CCs ]

Quoted 14 lines · Pavel Machek
Quoted 6 lines · Pavel Machek

Hi!

Quoted 4 lines

...it happened second time now. In one case, ctrl-alt-backspace helped and I got at least console back, in the other case I had to reboot using sysrq.

Quoted 6 lines
Quoted 3 lines

...hmm. It was probably same crash, because console switching has probably been locked by X, and I have just one console. I ended up on empty console before.

It happened four times now. It seems to happen when I type heavily. I was once able to reproduce it by hitting keys heavily/randomly.

Quoted 6 lines

Two more crashes today :-(. -rc2 is pretty much unusable.

...and they seem to be slightly different crashes. Once keyboard was dead but mouse worked, second time keyboard still worked but xterms kept locking up. I managed to type dmesg into one of them, but that xterm hung in middle of dump :-(.

I guess that both keyboard and mouse are PS/2 connected, right?

Any possibility to capture serial console output?

Signature · 2 lines
Jiri Kosina
SUSE Labs
#6 lore raw

xterms freezing on 2.6.31-rc2 (was Re: [regression] Re: 2.6.31-rc2: X stop accepting keystrokes?)

Quoted 19 lines · Jiri Kosina

[ adding some CCs ]

Quoted 14 lines · Pavel Machek
Quoted 12 lines · Pavel Machek

Hi!

Quoted 7 lines

...it happened second time now. In one case, ctrl-alt-backspace helped and I got at least console back, in the other case I had to reboot using sysrq.

...hmm. It was probably same crash, because console switching has probably been locked by X, and I have just one console. I ended up on empty console before.

It happened four times now. It seems to happen when I type heavily. I was once able to reproduce it by hitting keys heavily/randomly.

Quoted 8 lines
Quoted 6 lines

Two more crashes today :-(. -rc2 is pretty much unusable.

...and they seem to be slightly different crashes. Once keyboard was dead but mouse worked, second time keyboard still worked but xterms kept locking up. I managed to type dmesg into one of them, but that xterm hung in middle of dump :-(.

I guess that both keyboard and mouse are PS/2 connected, right?

Thinkpad internal keyboard/mouse, yes.

Quoted 1 line

Any possibility to capture serial console output?

I managed to get dmesg via magic sysrq at some point. I got some softlockup messages and processes seemed to hang.

I'm no longer sure how much keyboard related it is. It seems to happen while typing, but ... the system still reacts to keyboard but xterms hang.
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#7 lore raw

Re: xterms freezing on 2.6.31-rc2 (was Re: [regression] Re: 2.6.31-rc2: X stop accepting keystrokes?)

Quoted 5 lines · Pavel Machek
Quoted 5 lines
Quoted 4 lines

...and they seem to be slightly different crashes. Once keyboard was dead but mouse worked, second time keyboard still worked but xterms kept locking up. I managed to type dmesg into one of them, but that xterm hung in middle of dump :-(.

Quoted 8 lines
Quoted 1 line

I guess that both keyboard and mouse are PS/2 connected, right?

Thinkpad internal keyboard/mouse, yes.

Quoted 1 line

Any possibility to capture serial console output?

I managed to get dmesg via magic sysrq at some point. I got some softlockup messages and processes seemed to hang.

Softlockup in which area?

Are you able to ssh into the machine? Where do the xterms hang? (/proc/<pid>/stack)

Quoted 3 lines

I'm no longer sure how much keyboard related it is. It seems to happen while typing, but ... the system still reacts to keyboard but xterms hang.

Could this be related to

	http://lkml.org/lkml/2009/7/16/268

?

Signature · 2 lines
Jiri Kosina
SUSE Labs
#8 lore raw

Re: xterms freezing on 2.6.31-rc2 (was Re: [regression] Re: 2.6.31-rc2: X stop accepting keystrokes?)

Quoted 9 lines · Jiri Kosina
Quoted 7 lines · Pavel Machek
Quoted 6 lines
Quoted 4 lines

...and they seem to be slightly different crashes. Once keyboard was dead but mouse worked, second time keyboard still worked but xterms kept locking up. I managed to type dmesg into one of them, but that xterm hung in middle of dump :-(.

I guess that both keyboard and mouse are PS/2 connected, right?

Quoted 8 lines
Quoted 6 lines

Thinkpad internal keyboard/mouse, yes.

Quoted 1 line

Any possibility to capture serial console output?

I managed to get dmesg via magic sysrq at some point. I got some softlockup messages and processes seemed to hang.

Softlockup in which area?

Sorry, I did not write it down :-(.

Quoted 2 lines

Are you able to ssh into the machine? Where do the xterms hang? (/proc/<pid>/stack)

I was not able to capture that. I'll try pen and paper next :-).

Quoted 7 lines
Quoted 3 lines

I'm no longer sure how much keyboard related it is. It seems to happen while typing, but ... the system still reacts to keyboard but xterms hang.

Could this be related to

	http://lkml.org/lkml/2009/7/16/268

Actually... that sounds suspiciously like it. I'll try -rc3 update.

Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#9 lore raw

Re: xterms freezing on 2.6.31-rc2 (was Re: [regression] Re: 2.6.31-rc2: X stop accepting keystrokes?)

In reply to Jiri Kosina
Quoted 13 lines · Jiri Kosina
Quoted 11 lines · Pavel Machek
Quoted 6 lines
Quoted 4 lines

...and they seem to be slightly different crashes. Once keyboard was dead but mouse worked, second time keyboard still worked but xterms kept locking up. I managed to type dmesg into one of them, but that xterm hung in middle of dump :-(.

I guess that both keyboard and mouse are PS/2 connected, right?

Thinkpad internal keyboard/mouse, yes.

Quoted 1 line

Any possibility to capture serial console output?

Quoted 7 lines
Quoted 2 lines

I managed to get dmesg via magic sysrq at some point. I got some softlockup messages and processes seemed to hang.

Softlockup in which area?

Are you able to ssh into the machine? Where do the xterms hang? (/proc/<pid>/stack)

I have not seen it for a while with new kernel, so I assume problem is gone.
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html