mirror of
https://github.com/X11Libre/xf86-input-synaptics.git
synced 2026-03-24 01:34:04 +00:00
Turn down the default sensitivity for unibody MacBook touchpads
The touchpads are too sensitive by default. A touch is activated when a finger hovers a millimeter off the device. This change turns down the default sensitivity so that accidental touchpad interactions are lessened and pointer interaction accuracy is increased. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
committed by
Peter Hutterer
parent
4fa880d2b1
commit
0e222876d7
@@ -319,17 +319,23 @@ static void
|
||||
calculate_tap_hysteresis(SynapticsPrivate * priv, int range,
|
||||
int *fingerLow, int *fingerHigh)
|
||||
{
|
||||
if (priv->model == MODEL_ELANTECH) {
|
||||
switch (priv->model) {
|
||||
case MODEL_ELANTECH:
|
||||
/* All Elantech touchpads don't need the Z filtering to get the
|
||||
* number of fingers correctly. See Documentation/elantech.txt
|
||||
* in the kernel.
|
||||
*/
|
||||
*fingerLow = priv->minp + 1;
|
||||
*fingerHigh = priv->minp + 1;
|
||||
}
|
||||
else {
|
||||
break;
|
||||
case MODEL_UNIBODY_MACBOOK:
|
||||
*fingerLow = 70;
|
||||
*fingerHigh = 75;
|
||||
break;
|
||||
default:
|
||||
*fingerLow = priv->minp + range * (25.0 / 256);
|
||||
*fingerHigh = priv->minp + range * (30.0 / 256);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user