On Fri, 31 Jan 2003 at 10:00 -0500, Jason wrote:

> I searched the archives, found a few similair problems, and possible
> resolutions, but none have worked for me.

Perhaps you have already seen my Toshiba Satellite 1005-S157 page
which discusses a similar problem.  See:

    http://www.4gh.net/hints/toshiba/satellite1005-s157.html

In November you where trying 5.0 DP2 on a Toshiba 1901-S301.  Is this
the same machine?  Did the suggestions to disable EISA and/or SCSI
help in booting or has 5.0-RELEASE addressed the initial booting
problem?

> In windows, it is shown as an Alps Glidepoint on irq12, however fbsd
> refuses to find it.
>
> The device.hints file shows the correct info.  I ran acpidump, but was not
> quite sure what to look for.  (In one of the posts involving a sony with
> similair problems, someone said to check for MOUE <which I suspect they
> meant MOUSE> to get the ID to modify psm.c, but neither exist in acpidump
> results)
>
> Any ideas?

I have not yet tried FreeBSD 5.0 on my laptop, but src/isa/psm.c is
pretty similar between 4.7 and -CURRENT and my patch appears to apply
cleanly:

% patch psm.c < ~/psm.c.patch
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -r -u ../src_dist/sys/isa/psm.c ./sys/isa/psm.c
|--- ../src_dist/sys/isa/psm.c  Wed Mar 27 11:53:35 2002
|+++ ./sys/isa/psm.c    Wed Oct 16 16:15:17 2002
--------------------------
Patching file psm.c using Plan A...
Hunk #1 succeeded at 632 (offset -18 lines).
Hunk #2 succeeded at 1034 (offset 34 lines).
done
%

My patch is just a hack to make my Toshiba work correctly.  I tend to
think that test_aux_port() or its callers may need some work.  I'm
don't really like adding a third hack to the already existing two
hacks which ignore other return codes.  Someone more familiar with the
mouse and keyboard driver code may want to look at moving the default
processing for test_aux_port results to be the same as the current
PSM_ACK case.

Stuart
-- 
I've never been lost; I was once bewildered for three days, but never lost!
                                        --  Daniel Boone
diff -r -u ../src_dist/sys/isa/psm.c ./sys/isa/psm.c
--- ../src_dist/sys/isa/psm.c   Wed Mar 27 11:53:35 2002
+++ ./sys/isa/psm.c     Wed Oct 16 16:15:17 2002
@@ -650,6 +650,7 @@
 
     switch((i = test_aux_port(kbdc))) {
     case 1:    /* ignore this error */
+    case 2:    /* ignore this error */
     case PSM_ACK:
        if (verbose)
            log(LOG_DEBUG, "psm%d: strange result for test aux port (%d).\n",
@@ -999,9 +1000,11 @@
      * 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)...
+     * XXX: Toshiba Satellite 1005-S157 returns 2...
      */
     switch ((i = test_aux_port(sc->kbdc))) {
     case 1:       /* ignore this error */
+    case 2:       /* ignore this error */
     case PSM_ACK:
         if (verbose)
            printf("psm%d: strange result for test aux port (%d).\n",

Reply via email to