Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jul 2000 09:30:42 +0900
From:      Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
To:        Donn Miller <dmmiller@cvzoom.net>
Cc:        Robert Watson <rwatson@FreeBSD.org>, freebsd-current@FreeBSD.org, yokota@zodiac.mech.utsunomiya-u.ac.jp
Subject:   Re: Mouse behaving funny since 5.0-CURRENT upgrade 
Message-ID:  <200007280030.JAA02407@zodiac.mech.utsunomiya-u.ac.jp>
In-Reply-To: Your message of "Thu, 27 Jul 2000 18:53:38 -0400." <3980BD72.C3540196@cvzoom.net> 
References:  <Pine.NEB.3.96L.1000727125136.96611A-100000@fledge.watson.org> <3980BD72.C3540196@cvzoom.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
Try the attached patch for /sys/isa/psm.c, and please report the
result.

Kazu

>Robert Watson wrote:
>> 
>> I'm using a Micron P133 box with a PS/2 mouse.  Up until this morning, I
>> was running 4.0-STABLE from a month or two back.  I upgraded to
>> 5.0-CURRENT, and since that time, my mouse has been responding slowly and
>> erratically, jumping as it moves, et al.
>
>> I'm using the default arguments to moused, with moused enabled in
>> /etc/rc.conf.  I'm not sure what changed, but it would be nice if it
>> hadn't :-).
>
>Yep.  It's been that way in 5.0-current for about 2-3 weeks now.  When
>I use /dev/sysmouse in X, my mouse is really jumpy.  It's so bad that
>I don't use moused anymore in X.  When I use my mouse normally, i.e.
>without moused (/dev/mouse), in X, mouse movements are OK.  Also,
>cursor motion is jumpy as well.  Must be the recent commits to
>syscons.
>
>-- 
>- Donn


Index: psm.c
===================================================================
RCS file: /src/CVS/src/sys/isa/psm.c,v
retrieving revision 1.27
diff -u -r1.27 psm.c
--- psm.c	2000/07/22 04:08:12	1.27
+++ psm.c	2000/07/27 06:53:24
@@ -1827,9 +1827,11 @@
 {
     struct psm_softc *sc;
     int unit;
+    int s;
 
     unit = (int)arg;
     sc = devclass_get_softc(psm_devclass, unit);
+    s = spltty();
     if (sc->watchdog && kbdc_lock(sc->kbdc, TRUE)) {
 	if (verbose >= 4)
 	    log(LOG_DEBUG, "psm%d: lost interrupt?\n", unit);
@@ -1837,6 +1839,7 @@
 	kbdc_lock(sc->kbdc, FALSE);
     }
     sc->watchdog = TRUE;
+    splx(s);
     sc->callout = timeout(psmtimeout, (void *)unit, hz);
 }
 



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




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