[PATCH libinput] filter: improve touchpad acceleration

2018-05-13 Thread Peter Hutterer
expect a touchpad to be a * lot slower than a mouse. Apply a magic factor to slow down all movements */ -#define TP_MAGIC_SLOWDOWN 0.37 /* unitless factor */ - -/* Touchpad acceleration */ -#define TOUCHPAD_DEFAULT_THRESHOLD 254 /* mm/s */ -#define TOUCHPAD_THRESHOLD_RANGE 184

[PATCH libinput 12/23] filter: split the touchpad acceleration code into a separate file

2018-04-11 Thread Peter Hutterer
ne TP_MAGIC_SLOWDOWN 0.37 /* unitless factor */ + +/* + * Default parameters for pointer acceleration profiles. + */ + +#define DEFAULT_THRESHOLD v_ms2us(0.4) /* in units/us */ +#define MINIMUM_THRESHOLD v_ms2us(0.2) /* in units/us */ +#define DEFAULT_ACCELERATION 2.0 /* unitle

Re: [PATCH libinput] filter: tweak touchpad acceleration code again

2017-02-24 Thread Hans de Goede
changes look good to me, as for how the new accel feels / works, I trust you've good reasons for these changes: Acked-by: Hans de Goede Regards, Hans --- This is the first time I'm quite happy with the touchpad acceleration. src/filter.c | 37 ++

[PATCH libinput] filter: tweak touchpad acceleration code again

2017-02-23 Thread Peter Hutterer
the screen with few motions. The patch also works the touchpad magic slowdown into the factor applied. Since this is a static number now, calculate it once at set-speed and then store the result in the filter. Signed-off-by: Peter Hutterer --- This is the first time I'm quite ha

Re: [PATCH 00/13] Revamp touchpad acceleration code

2016-12-20 Thread Hans de Goede
Hi, On 19-12-16 06:20, Peter Hutterer wrote: This patchset is a cleanup and revamp of the touchpad acceleration code. It doesn't give us perfect acceleration, but it goes from the current rather abysimal state to one that should at least be good enough most of the time. More tweaking will

[PATCH 00/13] Revamp touchpad acceleration code

2016-12-18 Thread Peter Hutterer
This patchset is a cleanup and revamp of the touchpad acceleration code. It doesn't give us perfect acceleration, but it goes from the current rather abysimal state to one that should at least be good enough most of the time. More tweaking will come, but meanwhile santa and whatnot. Right no

Re: Touchpad acceleration

2015-04-14 Thread Hans de Goede
I am not seeing this behavior when using Xorg or Windows on the same hardware (or OS X on different hardware.) Moving the "touchpad acceleration" slider to the "slowest" setting appears to remove this lag, at the cost of a too-slow-to-be-usable pointer. Moving the slider to th

Re: Touchpad acceleration

2015-04-11 Thread Hans de Goede
erent hardware.) Moving the "touchpad acceleration" slider to the "slowest" setting appears to remove this lag, at the cost of a too-slow-to-be-usable pointer. Moving the slider to the "fastest" setting appears to make things worse, in the sense that I find it impossible t