Re: Stuck shift key on one virtual console (2.0.36)

Guest section DW (dwguest@win.tue.nl)
Wed, 17 Mar 1999 00:52:44 +0100 (MET)


pfaffben@pilot.msu.edu writes:

> the shift key on my first virtual console became `stuck'.
> All the other vts behave normally.

This is possible:

Since you have two shift keys that both may or may not
be down, the kernel does

k_down[value]++;

upon keypress, and

if (k_down[value])
k_down[value]--;

upon key release.
If somehow the release was missed once, you have a stuck key.

However, the key down array is recomputed on various occasions,
like when loadkeys (more precisely, the KDSKBENT ioctl) is
executed *and something actually changes*, or when you do
"kbd_mode -a", so i should be possible to get out of this
without a reboot or so.

Andries

# uptime
12:46am up 763 days, 13:36, 4 users, load average: 1.00, 1.00, 1.00

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/