From owner-freebsd-current Sun May 26 04:56:04 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id EAA21639 for current-outgoing; Sun, 26 May 1996 04:56:04 -0700 (PDT) Received: from melbourne.DIALix.oz.au (seeuucp@melbourne.DIALix.oz.au [192.203.228.98]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id EAA21626 for ; Sun, 26 May 1996 04:55:59 -0700 (PDT) Received: (from seeuucp@localhost) by melbourne.DIALix.oz.au (sendmail) with UUCP id VAA10241; Sun, 26 May 1996 21:55:14 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by putte.seeware.DIALix.oz.au (8.7.5/8.7.3) with SMTP id TAA00369; Sun, 26 May 1996 19:30:54 +1000 (EST) Message-Id: <199605260930.TAA00369@putte.seeware.DIALix.oz.au> X-Authentication-Warning: putte.seeware.DIALix.oz.au: Host localhost [127.0.0.1] didn't use HELO protocol X-Mailer: exmh version 1.6.7 5/3/96 To: Bruce Evans cc: jkh@time.cdrom.com, freebsd-current@FreeBSD.ORG Subject: Re: bad keyboard reset routine? In-reply-to: Your message of "Sat, 25 May 1996 20:29:54 +1000." <199605251029.UAA13162@godzilla.zeta.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 26 May 1996 19:30:54 +1000 From: Mark Hannon Sender: owner-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi, I made the following changes to syscons.c: gotack: DELAY(10); j = 1000; /* Wait at most 10 ms (supposedly). */ while ((inb(KB_STAT) & KB_BUF_FULL) == 0 && --j > 0) DELAY(10); DELAY(10); val = inb(KB_DATA); if (val == KB_ACK && --i > 0) goto gotack; printf("scprobe: Keyboard reset sent %d times\n", 1000-i); if (val != KB_RESET_DONE) printf("scprobe: keyboard RESET failed (result = 0x%02x)\n", val); } ie, I stepped the number of retries to 1000, the following was the result: putte:~> dmesg | grep sc scprobe: Keyboard reset sent 13 times sc0 at 0x60-0x6f irq 1 on motherboard sc0: VGA color <16 virtual consoles, flags=0x0> The keyboard works now. Rgds/mark -- +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ | Mark Hannon,| FreeBSD - Free Unix for your PC| mark@seeware.DIALix.oz.au| | Melbourne, | PGP key available by fingering | epamha@epa.ericsson.se | | Australia | seeware@melbourne.DIALix.oz.au | | +-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+