From owner-freebsd-stable Tue Oct 16 23:12:29 2001 Delivered-To: freebsd-stable@freebsd.org Received: from nasu.utsunomiya-u.ac.jp (nasu.utsunomiya-u.ac.jp [160.12.128.3]) by hub.freebsd.org (Postfix) with ESMTP id 4C75337B405 for ; Tue, 16 Oct 2001 23:12:18 -0700 (PDT) Received: from nantai.utsunomiya-u.ac.jp by nasu.utsunomiya-u.ac.jp (8.11.2/1.1.29.3/26Jan01-1134AM) id f9H6Bm5358607; Wed, 17 Oct 2001 15:11:48 +0900 (JST) Received: from zodiac.mech.utsunomiya-u.ac.jp by nantai.utsunomiya-u.ac.jp (8.11.2/1.1.29.3/30Jan01-0241PM) id f9H6BmE72747; Wed, 17 Oct 2001 15:11:48 +0900 (JST) Received: from zodiac.mech.utsunomiya-u.ac.jp (IDENT:2khbeYB8GKzRexMM8jP9RFS/eOrm4fzE@zodiac.mech.utsunomiya-u.ac.jp [160.12.43.7]) by zodiac.mech.utsunomiya-u.ac.jp (8.9.3+3.2W/3.7W/zodiac-May2000) with ESMTP id PAA02508; Wed, 17 Oct 2001 15:21:48 +0900 (JST) Message-Id: <200110170621.PAA02508@zodiac.mech.utsunomiya-u.ac.jp> To: Joe Kelsey Cc: freebsd-stable@freebsd.org, yokota@zodiac.mech.utsunomiya-u.ac.jp Subject: Re: psm0 out of sync In-reply-to: Your message of "Tue, 16 Oct 2001 10:37:25 MST." <15308.28757.640334.764871@zircon.zircon.seattle.wa.us> References: <15308.28757.640334.764871@zircon.zircon.seattle.wa.us> Date: Wed, 17 Oct 2001 15:21:47 +0900 From: Kazutaka YOKOTA 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 >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