Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Feb 1999 00:41:56 -0500 (EST)
From:      "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com>
To:        adamk@voicenet.com (Adam K Kirchhoff)
Cc:        questions@FreeBSD.ORG
Subject:   Re: Not detecting PS/2 mouse
Message-ID:  <199902230541.AAA21181@cc942873-a.ewndsr1.nj.home.com>
In-Reply-To: <36D16D1E.652C4D01@voicenet.com> from Adam K Kirchhoff at "Feb 22, 99 09:43:42 am"

next in thread | previous in thread | raw e-mail | index | archive | help
Adam K Kirchhoff wrote,
> 
>     For some reason, FreeBSD (versions 2.2.8, and 3.1, as well as a
> snapshot of 3.0) doesn't detect my ps/2 mouse.  I've tried a number of
> different mice (Logitech 3-button, Microsoft, Compaq), all of which have
> worked under Linux and OpenBSD, but which have never been detected by
> FreeBSD.  Even thought the GENERIC kernel is supposed to support the
> ps/2 mouse, I went ahead and recompiled the kernel under 2.2.8, but it
> still refused to see it.
>     During the boot process I've also gone in UserConfig mode to specify
> different io ports...  Still no luck.
>      I'm going to try to recompile the kernel under 3.1 tonight and give
> it another go.
>     I would really like to give up on Linux and switch over to FreeBSD
> but I have no free serial ports and can't exactly do much without a
> mouse.
>     The computer is a Compaq Presario 2200, with a Cyrix MediaGX
> processor and any help would be greatly appreciated.
>     Thanks.

There was a rash of people with this problem with PS/2 a few months
ago. I was one of them. After much searching I managed to get a hold
of the author of psm0 driver(Kazutaka YOKOTA
<yokota@zodiac.mech.utsunomiya-u.ac.jp>), and with some of the dmesg
output from my system he was kind enought to get out a quick patch. I
know the  patch helped me and a few other people, but I had not heard
many troubles lately and had assumed the patch or a better fix had
been  committed to 2.2.8. 

Could someone out there let me know if this was included in 2.2.8 
or later? It's one of the things that makes me hesitant to move out 
of 2.2.7... that and I have no really good reason to change.

Index: psm.c
===================================================================
RCS file: /src/CVS/src/sys/i386/isa/psm.c,v
retrieving revision 1.54
diff -u -r1.54 psm.c
--- psm.c       1998/07/06 16:10:06     1.54
+++ psm.c       1998/10/12 01:40:02
@@ -576,6 +576,7 @@
 
     switch((i = test_aux_port(kbdc))) {
     case 1:    /* ignore this error */
+    case PSM_ACK:
        if (verbose)
            log(LOG_DEBUG, "psm%d: strange result for test aux port (%d).\n",
                unit, i);
@@ -807,9 +808,11 @@
      * it has the perfectly functional aux port. We have to ignore this
      * error code. Even if the controller HAS error with the aux port,
      * it will be detected later...
+     * XXX: another incompatible controller returns PSM_ACK (0xfa)...
      */
     switch ((i = test_aux_port(sc->kbdc))) {
     case 1:       /* ignore this error */
+    case PSM_ACK:
         if (verbose)
            printf("psm%d: strange result for test aux port (%d).\n",
                unit, i);

-- 
Crist J. Clark                           cjclark@home.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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