From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: "Russ Cox" To: 9fans@cse.psu.edu Subject: Re: [9fans] VMware and Plan9 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Mon, 17 Feb 2003 09:43:25 -0500 Topicbox-Message-UUID: 64e61e2c-eacb-11e9-9e20-41e7f4b1d025 Two things. First, go into Control Panel -> Mouse -> Trackpoint and make sure that the middle button setting is "neither" (there are three choices: "scrolling", "zooming", and "neither"). Second, start regedit. Look for HKEY_LOCAL_MACHINE System CurrentControlSet Enum ACPI IBM3780 DeviceParameters You may have to substitute something else for IBM3780 depending on who makes your laptop. Find the one with keys named "MouseResolution", "MouseDataQueueSize", etc. Add a new DWORD variable "NumberOfButtons" with value 3. Now you should be okay. The problem is actually not the IBM-supplied mouse driver but the underlying Windows-supplied basic i8042 PS/2 mouse driver, on which the Trackpoint driver sits. The Windows driver expects the Trackpoint to respond to command E9 as the Logitech mice do, giving the number of buttons as the second byte. Unfortunately, the Trackpoint sends back some form of sampling resolution instead, and even more unfortunately the default resolution is encoded as 0x02, tricking Windows into thinking that there are but two mouse buttons on the Trackpoint. Since this is the Trackpoint controller simply implementing a different command E9, the only way to get the hardware to respond correctly is to turn it off in the BIOS, so that the external mouse can respond for itself. Happily, Windows is nothing if not configurable. The registry key makes Windows ignore what it has incorrectly interpreted the hardware to have said. DirectInput (which VMware uses, but most apps don't) ignores the middle button when it thinks the mouse has only two buttons. The stock Windows mouse path has no problem with a "two"-button mouse generating middle-button events. Russ