From owner-freebsd-hackers Mon Mar 24 2:51:40 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 26D5C37B401; Mon, 24 Mar 2003 02:51:37 -0800 (PST) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9632243FA3; Mon, 24 Mar 2003 02:51:27 -0800 (PST) (envelope-from ru@whale.sunbay.crimea.ua) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) by whale.sunbay.crimea.ua (8.12.8/8.12.8/Sunbay) with ESMTP id h2OAoT0J028123 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 24 Mar 2003 12:50:29 +0200 (EET) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.8/8.12.8/Submit) id h2OAoOsu028108; Mon, 24 Mar 2003 12:50:24 +0200 (EET) (envelope-from ru) Date: Mon, 24 Mar 2003 12:50:24 +0200 From: Ruslan Ermilov To: Chip Norkus Cc: Alexey Zelkin , hackers@FreeBSD.org Subject: Re: KVM mice issues Message-ID: <20030324105024.GE23857@sunbay.com> References: <200303230957.36433.wd@arpa.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3XA6nns4nE4KvaS/" Content-Disposition: inline In-Reply-To: <200303230957.36433.wd@arpa.com> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-19.4 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --3XA6nns4nE4KvaS/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I think Alexey was having similar issues, and may have some non-production quality patches for you to try. On Sun, Mar 23, 2003 at 09:57:36AM -0600, Chip Norkus wrote: >=20 > Greetings hackers, >=20 > I have a KVM switch and a fairly new (Logitech MouseMan+ cordless) mouse,= =20 > and I've found that while FreeBSD properly detects the mouse and all its= =20 > functionality (buttons, scrollwheel, etc) upon boot if I switch to=20 > another port on the KVM and then switch back my mouse "loses" its=20 > functionality. >=20 > After spending a while trying to figure out this problem (and reading PRs= =20 > on the issue (esp. i386/25463)) I found that a solution was not=20 > immediately available, but might be somewhat easy to achieve. In=20 > particular, for my mouse, the mouse driver can and does detect invalid=20 > packets, and invalid packets are always received after a return to my=20 > FreeBSD system via the KVM. I found that doing a reinitialization of the= =20 > device would fix the mouse, but that doing it from the interrupt handler= =20 > (in sys/isa/psm.c around line 2170) caused some intermediate problems. = =20 > Normally the mouse would just bounce around and generate click events for= =20 > a while and then settle down, but occasionally the driver (or maybe=20 > mouse?) would lock solid and I'd have to reboot the system. >=20 > Anyways, I'd like to work further on this problem and hopefully find a=20 > solution, but I'm having some trouble understanding where and what I=20 > should do. I'm not a novice C hacker, but I *am* a very novice kernel=20 > hacker and would appreciate help from anyone with knowledge of the psm=20 > (and atkbdc) code. I've considered maybe adding an ioctl to reset the=20 > mouse and adding a signal handler to moused to force a reset, but that=20 > seems kind of silly when the kernel driver can detect the problem itself= =20 > and resolve it. On the other hand, maybe that's the right way to go? =20 > Advice would be greatly appreciated. >=20 > -chip > --=20 > chip norkus; renaissance hacker; wd@arpa.com > "question =3D (to) ? be : !be;" --Shakespeare http://telekinesis.org/ >=20 >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --3XA6nns4nE4KvaS/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+fuLvUkv4P6juNwoRAuT8AJ9L6zyNwZoGIkyz7miz4O/ZDaUjQgCfSlKO yPTtxXHtMvrslFUWHozQ7Eg= =mI63 -----END PGP SIGNATURE----- --3XA6nns4nE4KvaS/-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message