Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Aug 1999 12:12:18 +0900
From:      Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
To:        brian@pobox.com
Cc:        Ron Klinkien <ron@zappa.demon.nl>, freebsd-current@freebsd.org, yokota@zodiac.mech.utsunomiya-u.ac.jp
Subject:   Re: Problems with 4.0 keyboard input! 
Message-ID:  <199908140312.MAA10852@zodiac.mech.utsunomiya-u.ac.jp>
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> 

next in thread | previous in thread | raw e-mail | index | archive | help
[...]
>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908140312.MAA10852>