From owner-freebsd-current Fri Aug 13 20:11:48 1999 Delivered-To: freebsd-current@freebsd.org Received: from outmail.utsunomiya-u.ac.jp (outmail.utsunomiya-u.ac.jp [160.12.196.3]) by hub.freebsd.org (Postfix) with ESMTP id 260C514DDF for ; Fri, 13 Aug 1999 20:11:45 -0700 (PDT) (envelope-from yokota@zodiac.mech.utsunomiya-u.ac.jp) Received: from zodiac.mech.utsunomiya-u.ac.jp (IDENT:S7gz0TSE7n4+clRDQnnd/1hGCf9AWVNg@zodiac.mech.utsunomiya-u.ac.jp [160.12.42.1]) by outmail.utsunomiya-u.ac.jp (8.9.3/3.7Wpl2) with ESMTP id MAA22278; Sat, 14 Aug 1999 12:07:59 +0900 (JST) Received: from zodiac.mech.utsunomiya-u.ac.jp (zodiac.mech.utsunomiya-u.ac.jp [160.12.42.1]) by zodiac.mech.utsunomiya-u.ac.jp (8.7.6+2.6Wbeta7/3.4W/zodiac-May96) with ESMTP id MAA10852; Sat, 14 Aug 1999 12:12:18 +0900 (JST) Message-Id: <199908140312.MAA10852@zodiac.mech.utsunomiya-u.ac.jp> To: brian@pobox.com Cc: Ron Klinkien , freebsd-current@freebsd.org, yokota@zodiac.mech.utsunomiya-u.ac.jp Subject: Re: Problems with 4.0 keyboard input! In-reply-to: Your message of "Fri, 13 Aug 1999 14:21:34 MST." <19990813212134.3021.rocketmail@web1002.mail.yahoo.com> References: <19990813212134.3021.rocketmail@web1002.mail.yahoo.com> Date: Sat, 14 Aug 1999 12:12:18 +0900 From: Kazutaka YOKOTA Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [...] >I also get the keyboard problem periodically, and I've been >trying to isolate just what I do to cause it. Generally, if I >reboot and don't hit a key before FreeBSD boots, it never >happens. If I tap enter to abort the countdown, the keyboard >scrambles perhaps one time in five. If you hit the keyboard at the "wrong" moment during keyboard initialization, the keyboard driver may get confused. In your case, you type something before the kernel is loaded and that seems to be causing the trouble. Such key input should be discarded by the keyboard driver before it tries to initialize the keyboard. There may be a nasty timing problem here... As a temporary workaround, please apply the following patch to /sys/dev/atkbd.c and see how it works. Kazu >Resetting seems to be the only remedy. This persists with two >different keyboard models and on unplugging and reinserting the >keyboard. Index: atkbd.c =================================================================== RCS file: /src/CVS/src/sys/dev/kbd/atkbd.c,v retrieving revision 1.12 diff -u -r1.12 atkbd.c --- atkbd.c 1999/07/18 06:16:25 1.12 +++ atkbd.c 1999/08/14 03:10:40 @@ -1153,7 +1178,7 @@ } /* save the current controller command byte */ - empty_both_buffers(kbdc, 10); + empty_both_buffers(kbdc, 200); c = get_controller_command_byte(kbdc); if (c == -1) { /* CONTROLLER ERROR */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message