Public bug reported:
This happened in 7.10, I upgraded to 8.04 mostly because I hoped to get
rid of it. It happened today to kubuntu 8.04 with today's latest
updates. The X configuration is untouched by me, the X log file is
uninformative (but not appended this time, see below).
Occasionally (sometimes twice in a day, sometimes it doesn't happen for
weeks) the keyboard stops being heard by X applications. Logging out and
in again (via kdm) fixes the problem.
I had time to look at it today, so I logged in remotely and played
around.
When I press and release the left shift key, the X server process
receives two bytes from the keyboard:
# /usr/bin/strace -tt -p 5267 -e read
Process 5267 attached - interrupt to quit
12:19:41.070772 read(4, "*", 64) = 1
12:19:41.143004 read(30, "[EMAIL PROTECTED]", 4096) = 8
12:19:41.143231 read(30, 0x8f953b8, 4096) = -1 EAGAIN (Resource temporarily
unavailable)
12:19:41.173063 read(4, "\252", 64) = 1
12:19:46.144177 read(30, "[EMAIL PROTECTED]", 4096) = 8
12:19:46.144382 read(30, 0x8f953b8, 4096) = -1 EAGAIN (Resource temporarily
unavailable)
12:19:51.145174 read(30, "[EMAIL PROTECTED]", 4096) = 8
12:19:51.145377 read(30, 0x8f953b8, 4096) = -1 EAGAIN (Resource temporarily
unavailable)
Process 5267 detached
The values seem plausible enough to me, but it's been a decade, actually
almost two, since I last dealt with PC keycodes, so...
File descriptor 30 is a unix socket connected to an X client.
So I tried running 'chvt 4' and the kernel instantly hung. No response
to ping, nothing. I had to press the off button for four seconds.
This is on a fairly boring desktop. Via Eden chipset, PS/2 keyboard, no
fancy hardware anywhere.
I'll play around a little more next time it happens. Maybe unload and
reload the keyboard kernel module. Certainly copy all the log files to
another host before a crash can make them untrustworthy.
** Affects: linux-source-2.6.22 (Ubuntu)
Importance: Undecided
Status: New
--
x randomly stops responding to keyboard, chvt then freezes kernel
https://bugs.launchpad.net/bugs/231031
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs