Add configurable x/y resolution to fix sensitivity on wide touchpads.

Synaptics uses anisotropic coordinate system.  On some wide touchpads
vertical resolution can be twice as high as horizontal which causes
unequal sensitivity on x/y directions.

VertResolution and HorizResolution can be used to set the resolution.
The ratio of the values is used to compensate x/y sensitivity.  The
properties are configured automatically if touchpad reports resolution
and if running on linux 2.6.31 or newer.

Fixes xorg bug #18351.

Signed-off-by: Tero Saarni <tero.saarni@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Tero Saarni
2009-07-12 19:24:40 +03:00
committed by Peter Hutterer
parent afb60a0b24
commit 0c3fbceb1b
7 changed files with 99 additions and 5 deletions

View File

@@ -149,4 +149,7 @@
* has_double, has_triple */
#define SYNAPTICS_PROP_CAPABILITIES "Synaptics Capabilities"
/* 32 bit unsigned, 2 values, vertical, horizontal in units/millimeter */
#define SYNAPTICS_PROP_RESOLUTION "Synaptics Pad Resolution"
#endif /* _SYNAPTICS_PROPERTIES_H_ */