Date: Wed, 9 Jul 1997 11:40:03 -0700 (PDT) From: Tim Vanderhoek <hoek@hwcn.org> To: freebsd-bugs Subject: Re: i386/4030: syscons thinks CTRL is always pressed Message-ID: <199707091840.LAA00287@hub.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR i386/4030; it has been noted by GNATS.
From: Tim Vanderhoek <hoek@hwcn.org>
To: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: i386/4030: syscons thinks CTRL is always pressed
Date: Wed, 9 Jul 1997 14:32:57 -0400 (EDT)
On Mon, 7 Jul 1997, Kazutaka YOKOTA wrote:
> >>Number: 4030
> >>Category: i386
> >>Synopsis: syscons thinks CTRL pressed, must reboot [repeatable]
> Try this patch for /sys/i386/isa/syscons.c.
>
> --- syscons.c-1.220 Mon Jun 30 22:31:49 1997
> +++ syscons.c Mon Jul 7 12:35:14 1997
> @@ -3039,7 +3039,7 @@
> /* Check for make/break */
> action = key->map[state];
> if (scancode & 0x80) { /* key released */
> - if (key->spcl & 0x80) {
> + if (key->spcl & (0x80>>state)) {
> switch (action) {
> case LSH:
> shfts &= ~1;
>
>
> >This did not happen (I don't _believe_ it happened) in the SNAP of 2.2
> >that I had been running before.
>
> If the above patch works, then the problem did happen in the past too,
> I guess.
Okay, the patch works. However, I can still reproduce the
problem if I use a slight variation on the first keymap.
090 cr rctrl nl nl rctrl rctrl nl nl O
Press and hold Alt, then press rctrl. Release all keys. Then
press `d' or whatever and you'll log out.
[If X is running, you can switch to X and then switch back to
your text console and the keyboard state will return to normal]
The patch, as shown, is good enough for me, since the keymap one
would have to use to reproduce the bug now is not very useful
(for me, anyways).
--
Outnumbered? Maybe. Outspoken? Never!
tIM...HOEk
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707091840.LAA00287>
