From owner-freebsd-current Fri Sep 17 5:38: 2 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 9443914A0B; Fri, 17 Sep 1999 05:37:59 -0700 (PDT) (envelope-from yokota@zodiac.mech.utsunomiya-u.ac.jp) Received: from zodiac.mech.utsunomiya-u.ac.jp (IDENT:e6KwvFFPBowbRE35ziqzGnem11R3xWFJ@zodiac.mech.utsunomiya-u.ac.jp [160.12.42.1]) by outmail.utsunomiya-u.ac.jp (8.9.3/3.7Wpl2) with ESMTP id VAA21270; Fri, 17 Sep 1999 21:37:30 +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 VAA23111; Fri, 17 Sep 1999 21:41:49 +0900 (JST) Message-Id: <199909171241.VAA23111@zodiac.mech.utsunomiya-u.ac.jp> To: Mike Pritchard Cc: freebsd-current@freebsd.org, yokota@zodiac.mech.utsunomiya-u.ac.jp Subject: Re: Weird syscons keyboard behaviour In-reply-to: Your message of "Fri, 17 Sep 1999 06:43:45 EST." <199909171143.GAA00356@mpp.pro-ns.net> References: <199909171143.GAA00356@mpp.pro-ns.net> Date: Fri, 17 Sep 1999 21:41:49 +0900 From: Kazutaka YOKOTA Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >I've noticed some odd syscons keyboard behaviour over the past >month or so. Sometimes I get a vty that outputs PC graphics characters >for all of my input. This is always at a "login:" prompt. I think >I can duplicate this by typing a bunch of garbage at a login prompt, >but I don't feel like trying to test it right now and have to >reboot my main machine. [...] >I think this might be some kind of timing problem. I was starting >to type in my username right away when I saw the boot was finishing, >and if I recall the past incidents correctly, I may have been >doing the same thing. > >I've seen this probably 4 or 5 times in the past month, maybe >6 weeks. Anyone have any ideas what is going on? It appears that if you hit the keyboard before (at the boot loader prompt or during the kernel is probing devices) or while the keyboard driver is being initialized, you may see the problem. The keyboard driver does try to flush keyboard input before it manipulates the keyboard controller and the keyboard, but apparently it is sometimes confused. # One possible explanation for this failure of keyboard flushing is # that the clock or timer calibration is not correctly done and I/O # delay is not working properly. Well, I am not sure, though... I have no idea why this is cropping up now, rather than before... The AT keyboard driver has unchanged for some time. Yes, there has been some commits in the past couple of months, but they don't change the basic operation of the driver. Would you please try the following patch for /sys/dev/kbd/atkbd.c and see how it fares? Kazu Index: atkbd.c =================================================================== RCS file: /src/CVS/src/sys/dev/kbd/atkbd.c,v retrieving revision 1.13 diff -u -r1.13 atkbd.c --- atkbd.c 1999/08/15 06:06:14 1.13 +++ atkbd.c 1999/08/19 12:08:22 @@ -1154,7 +1189,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