From owner-freebsd-current Wed Aug 15 6:47:17 2001 Delivered-To: freebsd-current@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 5AE0037B40B for ; Wed, 15 Aug 2001 06:47:12 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id f7FDl7q12048; Wed, 15 Aug 2001 07:47:11 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.11.3/8.11.4) with ESMTP id f7FDl6W23619; Wed, 15 Aug 2001 07:47:07 -0600 (MDT) (envelope-from imp@harmony.village.org) Message-Id: <200108151347.f7FDl6W23619@harmony.village.org> To: Kazutaka YOKOTA Subject: Re: psmintr: out of sync (was: Re: FreeBSD's aggressive keyboard probe/attach) Cc: freebsd-current@FreeBSD.ORG In-reply-to: Your message of "Wed, 15 Aug 2001 18:24:39 +0900." <200108150924.SAA06230@zodiac.mech.utsunomiya-u.ac.jp> References: <200108150924.SAA06230@zodiac.mech.utsunomiya-u.ac.jp> Date: Wed, 15 Aug 2001 07:47:06 -0600 From: Warner Losh Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <200108150924.SAA06230@zodiac.mech.utsunomiya-u.ac.jp> Kazutaka YOKOTA writes: : Anyway, I am now considering the following experiment. : : - We make the psm driver count the number of the "out-of-sync" errors. : - When the error is detected for the first time, the psm driver will : throw few data bytes (up to entire packet size) and see if it can : get back to sync. : - If the error still persists, the psm driver disable/enable the mouse : and see if it works. : - If the error still persists and the count goes up to N (10 or 20?), : the psm driver reset and reinitialize the mouse. The counter : is reset to zero. : : Too complicated? I like this idea. It will allow mechanical KVM switches to "work" better than they do now (which is to say, not much at all). I also have one KVM switch that hits the out-of-sync problem when its power fails. Unfortunately, it has a horrible user interface: The power button and the switch console buttons are next to each other. I assume that initializing the mouse is somewhat expensive and something that you wish to avoid? Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message