From nobody@FreeBSD.org  Tue May 10 02:58:38 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7D32C16A4EC
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 10 May 2005 02:58:38 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6803143D64
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 10 May 2005 02:58:38 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j4A2wcfw040551
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 10 May 2005 02:58:38 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j4A2wbgv040550;
	Tue, 10 May 2005 02:58:37 GMT
	(envelope-from nobody)
Message-Id: <200505100258.j4A2wbgv040550@www.freebsd.org>
Date: Tue, 10 May 2005 02:58:37 GMT
From: Tim H <tim-freebsd@nth-order.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Increase compatibility of psm driver with KVM switches and scroll mouse
X-Send-Pr-Version: www-2.3

>Number:         80844
>Category:       kern
>Synopsis:       [psm] Increase compatibility of psm driver with KVM switches and scroll mouse
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    vwe
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 10 03:00:27 GMT 2005
>Closed-Date:    Sun Aug 08 21:35:31 UTC 2010
>Last-Modified:  Sun Aug 08 21:35:31 UTC 2010
>Originator:     Tim H
>Release:        5.3
>Organization:
>Environment:
FreeBSD atta.hamfamily.org 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #2: Sat Jan 29 16:41:31 PST 2005     xxx@xxx.xxx.org :/usr/obj/usr/src/sys/ATTAG  i386

>Description:
     There have been many complaints in the archives about KVM switches and mouse scroll not working when switching between Windows/Linux and FreeBSD.  The problem seemed isolated to users of certain brands of KVMs and or setups, but I think I have found the cause and a solution.

The problem comes from the way FreeBSD probes for PS/2 wheel mice, and the inability of Logitech mice to switch protocols.  For illustration, consider two computers, FreeBSD and Windows connected via a KVM switch, using a Logitech mouse.  When FreeBSD is booted first, the psm driver correctly identifies Logitech mouse and sets it to MouseMan protocol.  When windows boots and the kvm makes the switch, the windows will force the mouse to switch to MS Intellimouse protocol.  When kvm switches back to FreeBSD, the psm driver tries to reset the logitech mouse to MouseMan protocol.  At this point the mouse will fail to make the switch, and the FreeBSD will use a generic ps/2 mouse protocol, losing the ability to use the scroll wheel.
>How-To-Repeat:
     See Full Description
>Fix:
     Alter the ps/2 mouse probe order in psm.c in /usr/src/sys/isa/psm.c.  Move the lines 

    { MOUSE_MODEL_MOUSEMANPLUS,		/* Logitech MouseMan+ */
      0x08, MOUSE_PS2_PACKETSIZE, enable_mmanplus, },

below the lines

    { MOUSE_MODEL_INTELLI,		/* Microsoft IntelliMouse */
      0x08, MOUSE_PS2INTELLI_PACKETSIZE, enable_msintelli, },

so that logitech mouse will be probed as MS Intellimouse. Since all logitech mice are capable of emulating intellimouse, this should not cause any problems, and will allow KVM's to function properly.
>Release-Note:
>Audit-Trail:

From: John Baldwin <jhb@FreeBSD.org>
To: bug-followup@freebsd.org,
 tim-freebsd@nth-order.com
Cc:  
Subject: Re: kern/80844: [psm] [patch] Increase compatibility of psm driver with KVM switches and scroll mouse
Date: Thu, 13 Mar 2008 07:29:26 -0400

 This would effectively remove the MOUSEMANPLUS support from the sounds of it.  
 Is there anyway to make the PS/2 driver do a full re-probe if the mouse 
 protocol switch fails and end up using intellimouse on its own in this case?
 
 -- 
 John Baldwin
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Fri Mar 14 11:12:51 UTC 2008 
State-Changed-Why:  
Note that submitter has been asked for feedback. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80844 
State-Changed-From-To: feedback->suspended 
State-Changed-By: vwe 
State-Changed-When: Fri May 23 23:28:33 UTC 2008 
State-Changed-Why:  

unfortunately no resolution has been reached on this issue and no feedback 
has been provided for a while. We'll be happy to re-open this ticket as someone 
has an idea how to solve this without affecting other mice. 


Responsible-Changed-From-To: freebsd-bugs->vwe 
Responsible-Changed-By: vwe 
Responsible-Changed-When: Fri May 23 23:28:33 UTC 2008 
Responsible-Changed-Why:  

track 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80844 
State-Changed-From-To: suspended->closed 
State-Changed-By: vwe 
State-Changed-When: Sun Aug 8 21:35:03 UTC 2010 
State-Changed-Why:  
old issue, unsupported release, unlikely to be solved the suggested way 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80844 
>Unformatted:
