[PATCH libinput 0/4] some acceleration fixes, mostly for high DPI mice

Derek Foreman derekf at osg.samsung.com
Thu Oct 30 14:34:12 PDT 2014


The acceleration filter currently isn't particularly pleased with gaming mice.

They generally have high DPI (can be over 8000 DPI) and can have high update
rates (1000+ per second).  This can result in the accel curve being biased
heavily towards the high points on the accel curve.

This patch set allows a way to normalize the deltas to 400DPI so when the
DPI setting of the mouse is correct, it should feel much the same as a
normal mouse.

This is, of course, only a partial solution.  Setting a reasonable default
is a massive problem that needs to be addressed in the future - for now
we just set it to 400 (which may actually not be that prevalent any more
but there doesn't seem to be such thing as a "standard" DPI mouse).

Derek Foreman (4):
  filter: Fix typo
  filter: perform speed computations with doubles
  evdev: add DPI to evdev calculations
  config: Allow setting non-default device DPI

 src/evdev.c    | 15 ++++++++++++---
 src/evdev.h    |  5 +++++
 src/filter.c   |  6 +++---
 src/filter.h   |  2 +-
 src/libinput.c |  7 +++++++
 src/libinput.h | 22 ++++++++++++++++++++++
 6 files changed, 50 insertions(+), 7 deletions(-)

-- 
2.1.1



More information about the wayland-devel mailing list