Subject: port-i386/6636: Wscons doesn't find the mouse for Toshiba Libretto 50CT
To: None <gnats-bugs@gnats.netbsd.org>
From: Krister Walfridsson <cato@ulysses.df.lth.se>
List: netbsd-bugs
Date: 12/22/1998 20:37:56
>Number: 6636
>Category: port-i386
>Synopsis: Wscons doesn't find the mouse for Toshiba Libretto 50CT
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Dec 22 11:50:01 1998
>Last-Modified:
>Originator: Krister Walfridsson
>Organization:
>Release: NetBSD-current Dec 21
>Environment:
System: NetBSD ulysses 1.3I NetBSD 1.3I (NWSCONS) #0: Mon Dec 21 21:39:42 CET 1998 cato@ulysses:/dsk2/tmp/nbsd981221.i386/src/sys/arch/i386/compile/NWSCONS i386
>Description:
The Libretto has a PS/2 mouse, but it is not found by the psm driver
used by wscons.
The problem is in pckbc_attach() (src/sys/dev/isa/pckbc.c). It sends a
KBC_AUXTEST, but gets a unexpected response (res == 1). I have no idea
what this test/response means, but permitting this response (as in the
patch below) makes everything work as it should.
--- pckbc.c.bak Tue Dec 22 02:31:32 1998
+++ pckbc.c Tue Dec 22 02:32:41 1998
@@ -446,7 +446,7 @@
return;
res = pckbc_poll_data1(iot, ioh_d, ioh_c, PCKBC_KBD_SLOT, 0);
- if (res == 0 || res == 0xfa) {
+ if (res == 0 || res == 0xfa || res == 1) {
#ifdef PCKBCDEBUG
if (res == 0xfa)
printf("kbc: returned 0xfa on aux slot test\n");
>How-To-Repeat:
>Fix:
>Audit-Trail:
>Unformatted: