|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 03-May-2022 | - |
| fdi/ | H | 25-Jun-2015 | - | 535 | 424 |
| man/ | H | 25-Jun-2015 | - | 682 | 537 |
| shared/ | H | 25-Jun-2015 | - | 1,392 | 786 |
| src/ | H | 25-Jun-2015 | - | 2,333 | 1,514 |
| tools/ | H | 25-Jun-2015 | - | 1,317 | 954 |
| COPYING | H A D | 07-Sep-2010 | 2.7 KiB | 52 | 44 |
| ChangeLog | H A D | 25-Jun-2015 | 44.8 KiB | 1,305 | 879 |
| INSTALL | H A D | 25-Jun-2015 | 11.1 KiB | 292 | 219 |
| Makefile.am | H A D | 30-Oct-2014 | 1.5 KiB | 36 | 10 |
| Makefile.in | H A D | 25-Jun-2015 | 26.1 KiB | 837 | 721 |
| README | H A D | 07-Sep-2010 | 2.6 KiB | 67 | 51 |
| aclocal.m4 | H A D | 25-Jun-2015 | 411.8 KiB | 11,681 | 10,561 |
| config.guess | H A D | 25-Jun-2015 | 43.8 KiB | 1,531 | 1,321 |
| config.h.in | H A D | 25-Jun-2015 | 2.8 KiB | 122 | 81 |
| config.sub | H A D | 25-Jun-2015 | 34.6 KiB | 1,774 | 1,631 |
| configure | H A D | 03-May-2022 | 591.5 KiB | 20,836 | 16,976 |
| configure.ac | H A D | 25-Jun-2015 | 6.9 KiB | 216 | 187 |
| depcomp | H A D | 25-Jun-2015 | 20.4 KiB | 709 | 460 |
| install-sh | H A D | 25-Jun-2015 | 13.7 KiB | 528 | 351 |
| ltmain.sh | H A D | 25-Jun-2015 | 276.8 KiB | 9,656 | 7,304 |
| missing | H A D | 25-Jun-2015 | 10.1 KiB | 332 | 243 |
README
1VMMouse
2-------
3
4The VMMouse driver enables support for the special VMMouse protocol
5that is provided by VMware virtual machines to give absolute pointer
6positioning.
7
8Installing the driver will improve the user experience when using the
9mouse to interact with the guest operating system. In particular, use of
10the driver improves mouse "lag", provides mouse speed and acceleration
11consistent with the user's host operating system, and enables the
12auto-grab/ungrab feature in VMware products without requiring the VMware
13toolbox application.
14
15Using the driver
16----------------
17
18Assuming you have built and installed the driver in the standard way
19for autotools based packages (see INSTALL), or the driver was already
20installed by your distro, using it is simply a matter of changing the
21driver used for the mouse input device from "mouse" to "vmmouse".
22
23The vmmouse driver is capable of falling back to the standard "mouse"
24driver if a VMware virtual machine is not detected. This allows for
25dual-booting of an operating system from a virtual machine to real hardware
26without having to edit xorg.conf every time.
27
28Implementation
29--------------
30
31The following is not necessary reading for anyone who wants to use the
32driver, but should help anyone who wants to understand how it works or
33who wants to write a driver for a different target, whether it's another
34operating system, a linux kernel input driver or even gpm.
35
36The driver is composed of three different layers:
37
381) The vmmouse protocol layer (vmmouse_proto.[c|h])
39 - This provides the call to read and write the port over which
40 the vmmouse packets are transfered.
41
422) The vmmouse client layer (vmmouse_client.[c|h])
43 - This builds on top of the protocol layer to provide higher
44 level calls for enabling/disabling the vmmouse mechanism
45 and for reading data.
46 - A new driver for a different target would use this interface.
47
483) The Xorg vmmouse driver (vmmouse.c)
49 - This is the actual Xorg specific part of the driver.
50 - Note that interrupts indicating the presence of mouse data
51 are still transmitted on the PS/2 port so it is necessary
52 to be set up to receive those interrupts like a standard
53 PS/2 driver, but the actual data on the PS/2 port is ignored.
54
55vmmouse_detect
56--------------
57
58A simple program to detect whether the vmmouse device is present.
59It is used by the HAL callout script to automatically detect a
60vmmouse device.
61
62Returns 0 if we are running in a virtual machine where the vmmouse
63device is present.
64
65Returns 1 otherwise (either we are not in a VM or the vmmouse device
66was disabled).
67