xenocara/driver/xf86-input-vmmouse
2007-03-25 13:02:54 +00:00
..
man regen with automake 1.9.6p2 2007-03-18 22:29:12 +00:00
src regen with automake 1.9.6p2 2007-03-18 22:29:12 +00:00
aclocal.m4 regen with libtool 1.5.22p9 2007-03-25 13:02:54 +00:00
ChangeLog Importing xf86-input-vmmouse 12.4.0 2006-11-26 19:58:05 +00:00
config.guess regenerate with OpenBSD autotools 2006-11-27 14:55:05 +00:00
config.h.in regen 2007-03-16 01:32:18 +00:00
config.sub regenerate with OpenBSD autotools 2006-11-27 14:55:05 +00:00
configure regen with libtool 1.5.22p9 2007-03-25 13:02:54 +00:00
configure.ac Importing xf86-input-vmmouse 12.4.0 2006-11-26 19:58:05 +00:00
COPYING Importing xf86-input-vmmouse 12.4.0 2006-11-26 19:58:05 +00:00
depcomp Importing xf86-input-vmmouse 12.4.0 2006-11-26 19:58:05 +00:00
INSTALL Importing xf86-input-vmmouse 12.4.0 2006-11-26 19:58:05 +00:00
install-sh Importing xf86-input-vmmouse 12.4.0 2006-11-26 19:58:05 +00:00
ltmain.sh regenerate with OpenBSD autotools 2006-11-27 14:55:05 +00:00
Makefile.am Importing xf86-input-vmmouse 12.4.0 2006-11-26 19:58:05 +00:00
Makefile.bsd-wrapper $Xenocara$ -> $OpenBSD$ 2006-11-27 19:27:25 +00:00
Makefile.in regen with automake 1.9.6p2 2007-03-18 22:29:12 +00:00
missing Importing xf86-input-vmmouse 12.4.0 2006-11-26 19:58:05 +00:00
README Importing xf86-input-vmmouse 12.4.0 2006-11-26 19:58:05 +00:00

VMMouse
-------

The VMMouse driver enables support for the special VMMouse protocol
that is provided by VMware virtual machines to give absolute pointer
positioning. 

Installing the driver will improve the user experience when using the 
mouse to interact with the guest operating system. In particular, use of 
the driver improves mouse "lag", provides mouse speed and acceleration 
consistent with the user's host operating system, and enables the 
auto-grab/ungrab feature in VMware products without requiring the VMware 
toolbox application.

Using the driver
----------------

Assuming you have built and installed the driver in the standard way
for autotools based packages (see INSTALL), or the driver was already
installed by your distro, using it is simply a matter of changing the
driver used for the mouse input device from "mouse" to "vmmouse".

The vmmouse driver is capable of falling back to the standard "mouse"
driver if a VMware virtual machine is not detected. This allows for
dual-booting of an operating system from a virtual machine to real hardware
without having to edit xorg.conf every time.

Implementation
--------------

The following is not necessary reading for anyone who wants to use the
driver, but should help anyone who wants to understand how it works or
who wants to write a driver for a different target, whether it's another
operating system, a linux kernel input driver or even gpm.

The driver is composed of three different layers:

1) The vmmouse protocol layer (vmmouse_proto.[c|h])
   - This provides the call to read and write the port over which 
     the vmmouse packets are transfered.

2) The vmmouse client layer (vmmouse_client.[c|h])
   - This builds on top of the protocol layer to provide higher
     level calls for enabling/disabling the vmmouse mechanism
     and for reading data.
   - A new driver for a different target would use this interface.

3) The Xorg vmmouse driver (vmmouse.c)
   - This is the actual Xorg specific part of the driver.
   - Note that interrupts indicating the presence of mouse data
     are still transmitted on the PS/2 port so it is necessary
     to be set up to receive those interrupts like a standard
     PS/2 driver, but the actual data on the PS/2 port is ignored.