From owner-freebsd-stable Wed Oct 17 8:48:32 2001 Delivered-To: freebsd-stable@freebsd.org Received: from fizzbang.musinghalfwit.org (cs6669197-172.austin.rr.com [66.69.197.172]) by hub.freebsd.org (Postfix) with ESMTP id 9D0C937B405 for ; Wed, 17 Oct 2001 08:48:26 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) (uid 1001) by fizzbang.musinghalfwit.org with local; Wed, 17 Oct 2001 10:17:48 -0500 References: <15308.28757.640334.764871@zircon.zircon.seattle.wa.us> <200110170621.PAA02508@zodiac.mech.utsunomiya-u.ac.jp> In-Reply-To: <200110170621.PAA02508@zodiac.mech.utsunomiya-u.ac.jp> From: "Eric P Liedtke" To: Kazutaka YOKOTA Cc: freebsd-stable@freebsd.org Subject: Re: psm0 out of sync Date: Wed, 17 Oct 2001 15:17:48 GMT Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-ID: Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Kazutaka YOKOTA writes: > > >Eric P Liedtke writes: > > > I am currently having a problem with my mice losing sync > > > when using a belkin KVM switch. Any time I switch over and > > > back the mouse loses sync. Is there any way I can regain > > > sync without rebooting. I've tried killing and restarting > > > moused but of course that didn't help cuz moused isn't out of > > > sync the actual device is. Any help would be appreciated. > > > >Set bit 0x8000 in the psm device by modifying your loader.conf: > > > >psm_flags=0x8000 > > > >This will force a mouse reset when switching with the kvm box. > > Not quite "reset". It disables and then re-enable the mouse operation. > > >This should be installed as the default mode and not called a "hack" > >since it is the most logical thing to do. Unfortunately, the maintainer > >of psm.c has some sort of reservations about making this behavior the > >default. My wireless mouse requires this setting with no intervening > >switch box. I never see multiple instances of reset behavior, so I > >don't know why this completely logical code path is relegated to the > >euphemism of "hack" and not made default. > > This flag has remained an option in -STABLE, because it doesn't always > work. It works in some cases, but there are cases it just doesn't. > When it doesn't, it will produce a stream of disable/enable sequence > repeatedly, and that's too bad. > > -CURRENT now has much better recovery code for the "out of sync" > error. That will be merged to -STABLE in the next few weeks, after > initial glitches are sorted out in -CURRENT. > > But, if you cannot wait, you can find the patch for -STABLE at: > > http://people.freebsd.org/~yokota/psm-out-of-sync-STABLE.diff > > Apply the patch to /sys/isa/psm.c and see how it performs > in you system. > > Kazu > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message I am pleased to report that this patch works like a champ. I didn't need to set any flags on my psm device. I lost sync , hit the 20 bad byte count and the mouse was reset and began working correctly. Thanks for the patch Kazu. Eric Liedtke To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message