[PATCH libinput] Add a function to retrieve the udev_device handle from a libinput device

2014-11-30 Thread Peter Hutterer
The libinput device abstracts a number of things but sometimes the underlying device is important. The udev device provides the necessary handle to access that underlying device and various sysfs properties that may be necessary. A function returning the device node would've done the same thing bu

[PATCH libinput 4/4] Change default DPI to 1000

2014-11-30 Thread Peter Hutterer
400 used to be the default DPI for many mice but it it's not anymore. A survey of mice shows that 400 is still common as one of the pre-configured settings in switchable multi-resolution gaming mice, but devices with a single resolution mostly favor 1000 dpi. Let's make that switch now so that any

[PATCH libinput 3/4] Move DEFAULT_MOUSE_DPI to filter.h

2014-11-30 Thread Peter Hutterer
The filter code is what relies on some default dpi configuration to apply pointer acceleration and expects the input coordinates to be pre-scaled to that resolution. Let's move the define here so we can use it from the touchpad code too. No functional changes. Signed-off-by: Peter Hutterer ---

[PATCH libinput 0/4] pointer acceleration DPI normalization

2014-11-30 Thread Peter Hutterer
The first patch is just in this series for completeness, it's already been on this list. systemd has now merged the mouse DPI hwdb [1], so the next version will come with that enabled and we just need to start populating the actual database. The net effect for us is that we can start relying on d

[PATCH libinput 1/4] evdev: Query mouse DPI from udev

2014-11-30 Thread Peter Hutterer
From: Derek Foreman Instead of using a hard coded mouse DPI value, we query it from udev. If it's not present or the property is obviously broken we fall back to default. Signed-off-by: Derek Foreman Signed-off-by: Peter Hutterer Reviewed-by: Hans de Goede --- src/evdev.c | 26 ++

[PATCH libinput 2/4] filter: fix a comment, 400 isn't hard-coded anymore

2014-11-30 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- src/filter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filter.h b/src/filter.h index 0dc081b..9b12618 100644 --- a/src/filter.h +++ b/src/filter.h @@ -29,7 +29,7 @@ #include struct motion_params { - double dx, dy; /* in un