From owner-freebsd-bugs@FreeBSD.ORG Thu Feb 7 15:50:05 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68D4016A41B for ; Thu, 7 Feb 2008 15:50:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3D32313C44B for ; Thu, 7 Feb 2008 15:50:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m17Fo5m5079250 for ; Thu, 7 Feb 2008 15:50:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m17Fo5vU079249; Thu, 7 Feb 2008 15:50:05 GMT (envelope-from gnats) Date: Thu, 7 Feb 2008 15:50:05 GMT Message-Id: <200802071550.m17Fo5vU079249@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Andriy Gapon Cc: Subject: Re: kern/118578: [psm] All A4Tech X-7xx mice don't work through ps2 jack X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andriy Gapon List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Feb 2008 15:50:05 -0000 The following reply was made to PR kern/118578; it has been noted by GNATS. From: Andriy Gapon To: bug-followup@FreeBSD.org, yarodin@gmail.com Cc: Subject: Re: kern/118578: [psm] All A4Tech X-7xx mice don't work through ps2 jack Date: Thu, 07 Feb 2008 17:46:10 +0200 Also, just for the PR track record I am including information from the mailing list discussion. on 01/02/2008 11:38 said the following: [Andriy Gapon wrote] I compared FreeBSD and Linux sources more thoroughly and found the following: http://lxr.linux.no/linux+v2.6.24/drivers/input/mouse/psmouse-base.c#L464 static int im_explorer_detect(struct psmouse *psmouse, int set_properties) { struct ps2dev *ps2dev = &psmouse->ps2dev; unsigned char param[2]; intellimouse_detect(psmouse, 0); I.e., first thing the explorer probe does is massaging a mouse with IntelliMouse magic commands. I did the same in FreeBSD psm.c, i.e., added a call to enable_msintelli() at the very start of enable_msexplorer(). And voilĂ  - everything is perfect, correct ID is returned, probing succeeds, the mouse works great. I think that this change is quite safe to make in FreeBSD, because with Linux user-base we can be 99% percent sure that this change won't break anything. [Vojtech Pavlik wrote] It is even correct: A mouse isn't required to be able to jump straight into the Explorer mode, it is supposed to always go through the IntelliMouse mode. A side note: Vojtech is an active Linux developer, a maintainer of their psm driver. And a final authority on this matter: http://www.microsoft.com/whdc/device/input/5b_wheel.mspx -- Andriy Gapon