From owner-freebsd-bugs Wed Jul 9 11:40:09 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id LAA00339 for bugs-outgoing; Wed, 9 Jul 1997 11:40:09 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.5/8.8.5) id LAA00287; Wed, 9 Jul 1997 11:40:03 -0700 (PDT) Date: Wed, 9 Jul 1997 11:40:03 -0700 (PDT) Message-Id: <199707091840.LAA00287@hub.freebsd.org> To: freebsd-bugs Cc: From: Tim Vanderhoek Subject: Re: i386/4030: syscons thinks CTRL is always pressed Reply-To: Tim Vanderhoek Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR i386/4030; it has been noted by GNATS. From: Tim Vanderhoek To: Kazutaka YOKOTA 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