[PATCH libinput 2/2] touchpad: Make pointer movements a bit faster by default

Peter Hutterer peter.hutterer at who-t.net
Wed May 21 23:30:17 PDT 2014


On Tue, May 20, 2014 at 11:19:50PM +0200, Jonas Ådahl wrote:
> Alter the so far hard coded parameters a bit to make the pointer
> acceleration profile accelerate the pointer movement a bit more than
> before.

This is much better on both the x220 and the t440s. The only problem I see
is that on the x220, which has a touchpad in ca 16:9 format the vertical
motion is now noticably faster than the horizontal motion. we
need to compensate for that soon.

https://bugs.freedesktop.org/show_bug.cgi?id=79056, so we don't
forget. Meanwhile, please apply this one.

Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net>

Cheers,
   Peter

> Signed-off-by: Jonas Ådahl <jadahl at gmail.com>
> ---
>  src/evdev-mt-touchpad.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c
> index 109441d..6c63cb6 100644
> --- a/src/evdev-mt-touchpad.c
> +++ b/src/evdev-mt-touchpad.c
> @@ -28,9 +28,9 @@
>  
>  #include "evdev-mt-touchpad.h"
>  
> -#define DEFAULT_CONSTANT_ACCEL_NUMERATOR 50
> -#define DEFAULT_MIN_ACCEL_FACTOR 0.16
> -#define DEFAULT_MAX_ACCEL_FACTOR 1.0
> +#define DEFAULT_CONSTANT_ACCEL_NUMERATOR 100
> +#define DEFAULT_MIN_ACCEL_FACTOR 0.20
> +#define DEFAULT_MAX_ACCEL_FACTOR 0.40
>  #define DEFAULT_HYSTERESIS_MARGIN_DENOMINATOR 700.0
>  
>  static inline int
> -- 
> 1.9.1
 


More information about the wayland-devel mailing list