[PATCH libinput 09/11] test: add tests for touch calibration

2014-08-26 Thread Peter Hutterer
Basic tests for rotation, translation and scaling events. Note that tests need to be added separately for single-touch and touch devices, this is a restriction of the litest framework. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- test/touch.c | 192

[PATCH libinput 06/11] util: add a couple of 3x3 matrix helper functions

2014-08-26 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/libinput-util.h | 100 test/misc.c | 78 2 files changed, 178 insertions(+) diff --git a/src/libinput-util.h b/src/libinput-util.h

Re: [PATCH libinput 05/11] evdev: apply calibration to multitouch values as well

2014-08-28 Thread Peter Hutterer
On Thu, Aug 28, 2014 at 03:02:33PM +0200, Hans de Goede wrote: Hi, On 08/27/2014 06:31 AM, Peter Hutterer wrote: We apply calibration to single-touch and absolute devices, but we might as well do so for multitouch events. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net

Re: [PATCH libinput 06/11] util: add a couple of 3x3 matrix helper functions

2014-08-28 Thread Peter Hutterer
On Thu, Aug 28, 2014 at 03:04:30PM +0200, Hans de Goede wrote: Hi, On 08/27/2014 06:31 AM, Peter Hutterer wrote: Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/libinput-util.h | 100 test/misc.c | 78

Re: [PATCH libinput 07/11] evdev: switch to a normalized transformation matrix

2014-08-28 Thread Peter Hutterer
On Thu, Aug 28, 2014 at 03:07:26PM +0200, Hans de Goede wrote: Hi, On 08/27/2014 06:31 AM, Peter Hutterer wrote: The big change here is the requirement to have the translation component in a device-normalized coordinate space. Without that, we cannot reliably rotate

[PATCH] doc/publican: stop excessive rebuilds

2014-09-01 Thread Peter Hutterer
Traced down to the server/client target always rebuilding, causing a rebuild of everything else. Rework this so the target name is a file we actually produce and can check for a timestamp. Note: this also changes the generated file from the doxygen directory into the en-US publican path and

[PATCH libinput 11/17] evdev: hook up a generic enable/disable interface for devices

2014-09-02 Thread Peter Hutterer
events on tapping, scrolling, and software buttons and need a more complex implementation. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/evdev.c | 59 ++- src/evdev.h | 5 + 2 files changed, 63 insertions(+), 1 deletion

[PATCH libinput 00/17] device enable/disable configuration

2014-09-02 Thread Peter Hutterer
Second attempt at the ability to enable/disable a device. The big difference to v1 is that this is hooked up to a configuration option this time and made clear how it behaves in the documentation. Patches 01-07 are general cleanup patches that can go in regardless of the config option. Note

[PATCH libinput 06/17] touchpad: fix tap-and-drag handling for timeouts

2014-09-02 Thread Peter Hutterer
Doing a tap-and-drag gesture but just holding the finger instead of moving should trigger a timeout and still switchin into tap-and-drag. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/evdev-mt-touchpad-tap.c | 1 - test/touchpad.c | 30

[PATCH libinput 12/17] evdev: don't resume a removed device

2014-09-02 Thread Peter Hutterer
was removed and libinput_dispatch() was called, we can short-cut the syspath comparison by setting it to NULL. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/evdev.c | 48 +++- src/evdev.h | 4 +++- src/path.c | 9

[PATCH libinput 17/17] test: test for release events on device suspend

2014-09-02 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- test/device.c | 239 ++ 1 file changed, 239 insertions(+) diff --git a/test/device.c b/test/device.c index 8db69fd..cf20632 100644 --- a/test/device.c +++ b/test/device.c @@ -30,6

[PATCH libinput 04/17] test: move assert_button_event to litest proper

2014-09-02 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- test/litest.c | 21 test/litest.h | 3 + test/pointer.c | 19 +--- test/touchpad.c | 329 ++-- 4 files changed, 181 insertions(+), 191 deletions(-) diff --git a/test

[PATCH libinput 13/17] test: add test for device suspend/resume

2014-09-02 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- test/Makefile.am | 7 +- test/device.c| 275 +++ 2 files changed, 281 insertions(+), 1 deletion(-) create mode 100644 test/device.c diff --git a/test/Makefile.am b/test

[PATCH libinput 10/17] Add a config interface for enabling/disabling event generation from a device

2014-09-02 Thread Peter Hutterer
option of enabled. Any device supports this, for the obvious reason. Disabling or conditionally disabling is left to the implementation. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/evdev.c| 25 + src/evdev.h| 3 ++ src/libinput-private.h | 9

[PATCH libinput 01/17] Add a helper function for clock_gettime

2014-09-02 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/evdev.c| 7 +-- src/libinput-private.h | 15 +++ src/libinput-util.h| 1 + src/timer.c| 29 - 4 files changed, 25 insertions(+), 27 deletions(-) diff --git

[PATCH libinput 02/17] test: avoid erroneous devices to be passed into the test suites

2014-09-02 Thread Peter Hutterer
-by: Peter Hutterer peter.hutte...@who-t.net --- test/litest.c | 5 + test/litest.h | 20 ++-- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/test/litest.c b/test/litest.c index dbbf054..2cea83c 100644 --- a/test/litest.c +++ b/test/litest.c @@ -159,6 +159,9

[PATCH libinput 09/17] evdev: prevent double-suspending a device

2014-09-02 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/evdev.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index 054beb6..9e91ee5 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -1168,16 +1168,23 @@ release_pressed_keys

[PATCH libinput 14/17] evdev: drop the button count when releasing keys on remove

2014-09-02 Thread Peter Hutterer
a bug. The dispatch should release the keys before we even get here (functionality added in a subsequent patch). Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/evdev.c | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/evdev.c b/src/evdev.c

[PATCH libinput 03/17] test: add litest_add_device()

2014-09-02 Thread Peter Hutterer
For adding a litest device to an existing context. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- test/litest.c | 12 test/litest.h | 2 ++ 2 files changed, 14 insertions(+) diff --git a/test/litest.c b/test/litest.c index 2cea83c..890b7e0 100644 --- a/test/litest.c

[PATCH libinput 05/17] test: wait for events in litest_assert_button_events

2014-09-02 Thread Peter Hutterer
Takes the onus of waiting from the caller. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- test/litest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/litest.c b/test/litest.c index 8f3784f..c3b99ef 100644 --- a/test/litest.c +++ b/test/litest.c @@ -1067,7

[PATCH libinput 07/17] evdev: prefix the hw key/button bitmask with 'hw'

2014-09-02 Thread Peter Hutterer
This bitmask reflects the hw state, prefix it accordingly. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/evdev.c | 12 ++-- src/evdev.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index 721238f..71c5236 100644

[PATCH libinput 08/17] evdev: factor out closing a device into evdev_suspend()

2014-09-02 Thread Peter Hutterer
No functional changes, just prep work for an upcoming patch Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/evdev.c | 13 +++-- src/evdev.h | 2 ++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index 71c5236..054beb6 100644

[PATCH libinput 16/17] touchpad: hook up sendevents configuration

2014-09-02 Thread Peter Hutterer
We may be in the middle of a software button click or a tap, so make sure we go back to the device-neutral state by unwinding. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/evdev-mt-touchpad-buttons.c | 10 + src/evdev-mt-touchpad-tap.c | 6 +++ src/evdev-mt-touchpad.c

Re: [PATCH 2/3] evdev: Move generic scroll code from evdev-mt-touchpad.c to evdev.c

2014-09-02 Thread Peter Hutterer
On Tue, Sep 02, 2014 at 04:34:49PM +0200, Hans de Goede wrote: So that it can be used for middle button trackpoint scrolling too. Signed-off-by: Hans de Goede hdego...@redhat.com --- src/evdev-mt-touchpad.c | 56 +++-- src/evdev-mt-touchpad.h |

Re: [PATCH 3/3] evdev: Add middle buttton scrolling for trackpoints

2014-09-02 Thread Peter Hutterer
{ + /* If the button is released early enough emit the s/early/quickly/ Reviewed-by: Peter Hutterer peter.hutte...@who-t.net otherwise. Cheers, Peter + * button press/release events. */ + evdev_pointer_notify_button(device, time

[PATCH libinput 4/5] touchpad: move softbutton initialization to separate function

2014-09-04 Thread Peter Hutterer
No functional changes Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/evdev-mt-touchpad-buttons.c | 77 + src/evdev-mt-touchpad.h | 3 ++ 2 files changed, 50 insertions(+), 30 deletions(-) diff --git a/src/evdev-mt-touchpad

[PATCH libinput 1/5] evdev: add a internal device notification mechanism

2014-09-04 Thread Peter Hutterer
, notification goes both ways: existing devices are notified about the new device, and the new device is notified about existing devices. On device removed, notification only goes one way. In both cases, the internal notification is complete before the event is sent to the caller. Signed-off-by: Peter

[PATCH libinput 0/5] Conditional touchpad disabling

2014-09-04 Thread Peter Hutterer
This patchset adds support for two features: * disabling the touchpad when a mouse is plugged in * allow top-software buttons to work when the touchpad is disabled Builds on the patchset sent out here: http://lists.freedesktop.org/archives/wayland-devel/2014-September/017032.html Full branch:

[PATCH libinput 2/5] evdev: add internal tagging system

2014-09-04 Thread Peter Hutterer
they get notified about the new device. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/evdev-mt-touchpad.c | 1 + src/evdev.c | 43 +++ src/evdev.h | 10 ++ 3 files changed, 54 insertions(+) diff --git a/src/evdev

[PATCH libinput 5/5] touchpad: when disabling a TOPBUTTONPAD, leave the buttons enabled

2014-09-04 Thread Peter Hutterer
configuration. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- Obviously the trackpoint detection is a bit rough here, see Hans' patch for how to do this based on the kernel property (once that is merged). src/evdev-mt-touchpad-buttons.c | 17 +++- src/evdev-mt-touchpad.c

[PATCH wayland] doc: replace publican with xmlto

2014-09-04 Thread Peter Hutterer
Publican isn't packaged for some distros, xmlto is a lot more common. Most of what publican provides for us is the stylesheet anyway, so we can just use xmlto and the publican stylesheet to get roughly the same look. PDF and XML generation has been dropped, this needs a bit more more effort than

X.Org looking for projects and mentors for the Outreach Program for Women

2014-09-04 Thread Peter Hutterer
Hi everyone, X.Org will join the Outreach Program for Women (OPW) in Round 9 (December 2014 - March 2015). The OPW is open to anyone who was assigned female at birth and anyone who identifies as a woman, genderqueer, genderfluid, or genderfree regardless of gender presentation or assigned sex at

[PATCH v2 weston] libinput: normalize WL_CALIBRATION before passing it to libinput

2014-09-04 Thread Peter Hutterer
WL_CALIBRATION, introduced in weston-1.1, requires the translation component of the calibration matrix to be in screen coordinates. libinput does not have access to this and it's not a very generic way to do this anyway. So with the libinput backend, WL_CALIBRATION support is currently broken

[PATCH v3 weston] libinput: normalize WL_CALIBRATION before passing it to libinput

2014-09-08 Thread Peter Hutterer
WL_CALIBRATION, introduced in weston-1.1, requires the translation component of the calibration matrix to be in screen coordinates. libinput does not have access to this and it's not a very generic way to do this anyway. So with the libinput backend, WL_CALIBRATION support is currently broken

Re: [PATCH v2 weston] libinput: normalize WL_CALIBRATION before passing it to libinput

2014-09-08 Thread Peter Hutterer
On Mon, Sep 08, 2014 at 08:16:07PM +0200, Jonas Ådahl wrote: On Fri, Sep 05, 2014 at 11:25:25AM +1000, Peter Hutterer wrote: WL_CALIBRATION, introduced in weston-1.1, requires the translation component of the calibration matrix to be in screen coordinates. libinput does not have access

Re: [PATCH v2 weston] libinput: normalize WL_CALIBRATION before passing it to libinput

2014-09-09 Thread Peter Hutterer
On Tue, Sep 09, 2014 at 10:42:26PM +0200, Jonas Ådahl wrote: On Tue, Sep 09, 2014 at 01:15:42PM +1000, Peter Hutterer wrote: On Mon, Sep 08, 2014 at 08:16:07PM +0200, Jonas Ådahl wrote: On Fri, Sep 05, 2014 at 11:25:25AM +1000, Peter Hutterer wrote: WL_CALIBRATION, introduced in weston

[PATCH libinput 2/2] Document the static udev configuration options we support

2014-09-09 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/libinput.h | 32 1 file changed, 32 insertions(+) diff --git a/src/libinput.h b/src/libinput.h index 7fde65f..a0e5d4c 100644 --- a/src/libinput.h +++ b/src/libinput.h @@ -104,6 +104,38 @@ extern C

[PATCH libinput 1/2] Document LIBINPUT_CALIBRATION_MATRIX properly

2014-09-09 Thread Peter Hutterer
Make this part of our API proper and outline the 4 most common examples. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/libinput.h | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/libinput.h b/src/libinput.h index 5af0dde..7fde65f 100644

Re: [PATCH libinput 1/2] Document LIBINPUT_CALIBRATION_MATRIX properly

2014-09-10 Thread Peter Hutterer
On Wed, Sep 10, 2014 at 08:34:17AM +0200, Jonas Ådahl wrote: On Wed, Sep 10, 2014 at 09:40:57AM +1000, Peter Hutterer wrote: Make this part of our API proper and outline the 4 most common examples. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/libinput.h | 18

Re: [PATCH 2/2] build: use symbol versioning

2014-09-11 Thread Peter Hutterer
On Thu, Sep 11, 2014 at 10:55:43PM +0200, Jonas Ådahl wrote: On Wed, Sep 10, 2014 at 01:32:25AM +0200, Jan Engelhardt wrote: Symbol versions provide a means by which ELF utilities can determine whether a program is incompatible with a too-old library version so that package management tools

Re: [PATCH libinput 0/5] Conditional touchpad disabling

2014-09-14 Thread Peter Hutterer
On Sun, Sep 14, 2014 at 08:39:17PM +0200, Hans de Goede wrote: Hi Peter, et al, On 09/04/2014 08:31 AM, Peter Hutterer wrote: This patchset adds support for two features: * disabling the touchpad when a mouse is plugged in * allow top-software buttons to work when the touchpad

Re: [PATCH libinput 0/8] Add libinput_device_suspend() to disable devices

2014-09-14 Thread Peter Hutterer
On Thu, Sep 11, 2014 at 04:34:48PM +0200, Bastien Nocera wrote: On Thu, 2014-08-21 at 16:18 +1000, Peter Hutterer wrote: replying to myself, now that I've had a bit of a think about this all. On Wed, Aug 20, 2014 at 01:18:48PM +1000, Peter Hutterer wrote: This patchset adds two new API

Re: [PATCH libinput 1/3] touchpad: Enlarge topbutton area a bit while the touchpad is disabled

2014-09-17 Thread Peter Hutterer
On Wed, Sep 17, 2014 at 03:35:30PM +0200, Hans de Goede wrote: Make it easier to hit the topbutton area when the touchpad is disabled, normally we don't want to make the topbutton area too big, so as to not interfere with normal touchpad operation, but when disabled we have no such worries.

Re: [PATCH libinput 3/3] test: Add trackpoint middlebutton scrolling tests

2014-09-17 Thread Peter Hutterer
On Wed, Sep 17, 2014 at 03:35:32PM +0200, Hans de Goede wrote: Signed-off-by: Hans de Goede hdego...@redhat.com --- test/Makefile.am | 5 +++ test/litest-trackpoint.c | 2 +- test/litest.h| 1 + test/trackpoint.c| 100

Re: [PATCH libinput 2/3] litest: Add litest_assert_scroll() helper function

2014-09-17 Thread Peter Hutterer
for the axis values we can skip the indentation/linewidth dance. Ok, and now that I wrote this I see that's just moving the code around. so Reviewed-by: Peter Hutterer peter.hutte...@who-t.net for this one and I'll push the updates on top of it. Cheers, Peter + } else

Re: [PATCH libinput 2/8] evdev: Add middle button scrolling for trackpoints

2014-09-17 Thread Peter Hutterer
On Tue, Sep 16, 2014 at 04:22:36PM +0200, Hans de Goede wrote: Most trackpoint users want to be able to scroll using the trackpoint with the middle button pressed, add support for this. Signed-off-by: Hans de Goede hdego...@redhat.com Reviewed-by: Peter Hutterer peter.hutte...@who-t.net

Re: [PATCH libinput 5/8] touchpad: Route top softbuttons through the trackstick if we've one

2014-09-17 Thread Peter Hutterer
there, and send the events directly from the touchpad device. Signed-off-by: Hans de Goede hdego...@redhat.com Reviewed-by: Peter Hutterer peter.hutte...@who-t.net but see the notes below --- doc/touchpad-softbutton-state-machine.svg | 200 +- src/evdev-mt-touchpad

[PATCH v2 libinput] touchpad: Route top softbuttons through the trackstick if we've one

2014-09-17 Thread Peter Hutterer
from the touchpad device. Signed-off-by: Hans de Goede hdego...@redhat.com Reviewed-by: Peter Hutterer peter.hutte...@who-t.net Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- Changes to v1: - rename is_top and active_is_top to *is_topbutton for better clarity - add timestamp to struct

[PATCH libinput 4/7] touchpad: move updating of buttons.old_state to the process function

2014-09-17 Thread Peter Hutterer
Update the old_state once we've posted the respective buttons rather than waiting for post_process to kick in. This allows calling our function multiple times without double-posting the events. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/evdev-mt-touchpad-buttons.c | 7

[PATCH libinput 0/7] Handle jumping cursors

2014-09-17 Thread Peter Hutterer
When a finger leaves the touchpad at the same time as another finger sets down, a touchpad may not notice the change in fingers but rather think the touchpoint moved to the new position. Bug 76722 has an event sequence but it really boils down to just a move of a touch, identifiable only by the

[PATCH libinput 5/7] touchpad: only send button events if we have button events queued

2014-09-17 Thread Peter Hutterer
Even if the button state differs, only send events if we claim we have a button press or release queued up. Otherwise, skip over the event. This cannot happen in the current code, it's prep-work for an upcoming patch. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/evdev-mt

[PATCH libinput 2/7] test: add helper functions for the two timers we care about

2014-09-17 Thread Peter Hutterer
Rather than a random msleep() with a comment, use a helper function that describes what we're waiting for. Also makes changing the timeouts easier in the future. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- test/litest.c | 12 test/litest.h | 3 +++ test

[PATCH libinput 3/7] test: add litest_push/pop_event_frame() helpers

2014-09-17 Thread Peter Hutterer
); litest_touch_down(d, 1, 20, 50); litest_pop_event_frame(d); Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- test/litest.c | 22 +- test/litest.h | 5 + 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/test/litest.c b/test/litest.c index 2b356be..eed41ba

[PATCH libinput 7/7] test: add some tests for jumping fingers on touchpads

2014-09-17 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- test/touchpad.c | 259 1 file changed, 259 insertions(+) diff --git a/test/touchpad.c b/test/touchpad.c index ea02f47..37df992 100644 --- a/test/touchpad.c +++ b/test/touchpad.c

[PATCH libinput 6/7] touchpad: detect coordinate jumps on touchpads

2014-09-17 Thread Peter Hutterer
appropriate). The jump threshold is 20mm on devices with resolution, or a quarter of the diagonal for devices without a resolution. https://bugs.freedesktop.org/show_bug.cgi?id=76722 Based on a patch by Alexander E. Patrakov patra...@gmail.com Signed-off-by: Peter Hutterer peter.hutte...@who-t.net

[PATCH libinput 3/3] test: add tests for natural scrolling

2014-09-18 Thread Peter Hutterer
2-finger scrolling only, we don't have anything else yet Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- test/touchpad.c | 49 + 1 file changed, 49 insertions(+) diff --git a/test/touchpad.c b/test/touchpad.c index 7ff3d14..2c2504f

[PATCH libinput 1/3] Add a configuration option for natural scrolling

2014-09-18 Thread Peter Hutterer
with the (currently in the works) edge scrolling. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/libinput-private.h | 9 ++ src/libinput.c | 37 +++ src/libinput.h | 81 ++ 3 files changed, 127 insertions

[PATCH libinput 2/3] touchpad: hook up natural scrolling configuration

2014-09-18 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/evdev-mt-touchpad.c | 64 + src/evdev-mt-touchpad.h | 5 2 files changed, 69 insertions(+) diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index 70a4e40..299f29f

Re: [PATCH libinput] cosmetic: Remove prototype for nonexistent create_linear_acceleration_filter()

2014-09-18 Thread Peter Hutterer
On Thu, Sep 18, 2014 at 05:02:39PM -0500, Derek Foreman wrote: --- src/filter.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/filter.h b/src/filter.h index 31ac7eb..8553495 100644 --- a/src/filter.h +++ b/src/filter.h @@ -52,9 +52,6 @@ struct motion_filter { struct

[PATCH libinput 05/10] filter: adjust acceleration curve depending on speed

2014-09-18 Thread Peter Hutterer
___|/_/ / / Note that there's a limit to what ascii art can do... Note that there are additional tweaks we can introduce later, such as decreaseing the unaccelerated speed of the device (i.e. lowering the first plateau). Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/filter.c | 19

[PATCH libinput 06/10] Add a pointer acceleration API

2014-09-18 Thread Peter Hutterer
map the [-1,1] range into a discrete set of steps as we do not communicate to the caller whether a specific value has changed the acceleration. Without that, a caller may assume that acceleration has changed even when it is not visible to the user. Signed-off-by: Peter Hutterer peter.hutte...@who

[PATCH libinput 07/10] evdev: hook into pointer acceleration config interface

2014-09-18 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/evdev.c | 39 +++ src/evdev.h | 1 + 2 files changed, 40 insertions(+) diff --git a/src/evdev.c b/src/evdev.c index de7ee16..eb570e2 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -861,6 +861,39

[PATCH libinput 08/10] touchpad: hook up pointer acceleration configuration

2014-09-18 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/evdev-mt-touchpad.c | 45 + 1 file changed, 45 insertions(+) diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index 0b51809..5637774 100644 --- a/src/evdev-mt-touchpad.c +++ b

[PATCH libinput 09/10] tools: keep a list of devices around for run-time changes

2014-09-18 Thread Peter Hutterer
Hard-coded to 50 devices, because for a debugging tool that's plenty. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- tools/event-gui.c | 36 1 file changed, 36 insertions(+) diff --git a/tools/event-gui.c b/tools/event-gui.c index 3ef3005

[PATCH libinput 03/10] filter: move the threshold/accel into the filter struct

2014-09-18 Thread Peter Hutterer
No functional changes, prep work for the config interface. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/filter.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/filter.c b/src/filter.c index 12bf8f6..5e627e1 100644 --- a/src/filter.c

[PATCH libinput 02/10] filter: add a filter-private.h header file

2014-09-18 Thread Peter Hutterer
To keep the implementation of a filter separate from the users of a filter. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/Makefile.am | 1 + src/filter-private.h | 42 ++ src/filter.c | 1 + src/filter.h | 12

[PATCH libinput 04/10] filter: add a configurable speed interface

2014-09-18 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/filter-private.h | 3 +++ src/filter.c | 28 +++- src/filter.h | 7 +++ 3 files changed, 37 insertions(+), 1 deletion(-) diff --git a/src/filter-private.h b/src/filter-private.h index

[PATCH libinput 10/10] tools: map KEY_UP/DOWN to pointer acceleration

2014-09-18 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- tools/event-gui.c | 52 +++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/tools/event-gui.c b/tools/event-gui.c index fcae236..142990d 100644 --- a/tools/event-gui.c +++ b

Re: X.Org looking for projects and mentors for the Outreach Program for Women

2014-09-19 Thread Peter Hutterer
had a nice range of projects available by then. Note that unlike GSoC, the scope is not limited to coding (see below). Cheers, Peter On Fri, Sep 05, 2014 at 09:01:44AM +1000, Peter Hutterer wrote: Hi everyone, X.Org will join the Outreach Program for Women (OPW) in Round 9 (December 2014

Re: [PATCH libinput 01/10] Replace pointer acceleration with a much simpler linear one

2014-09-21 Thread Peter Hutterer
On Fri, Sep 19, 2014 at 10:09:58AM +0100, Steven Newbury wrote: On Fri, 2014-09-19 at 15:44 +1000, Peter Hutterer wrote: We ran a userstudy, evaluating three different accel methods. Detailed results are available at: http://www.who-t.net/publications

[PATCH v2 libinput 05.5/10] touchpad: use the evdev device's filter struct

2014-09-21 Thread Peter Hutterer
We don't need a separate filter struct, we can use the parent evdev device. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- Changes to v1: - didn't exist in the first set of patches, slots in after 05/10 - prep work for having the same code for pointer accel functions src/evdev-mt

[PATCH v2 libinput 08/10] touchpad: hook up pointer acceleration configuration

2014-09-21 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- Changes to v1: - don't duplicate the accel config code, just re-use it for touchpad src/evdev-mt-touchpad.c | 7 +-- src/evdev.c | 6 +++--- src/evdev.h | 3 +++ 3 files changed, 7 insertions(+), 9 deletions

[PATCH v2 libinput 05/10] filter: adjust acceleration curve depending on speed

2014-09-21 Thread Peter Hutterer
_|_/_/ / / Note that there's a limit to what ascii art can do... Note that there are additional tweaks we can introduce later, such as decreaseing the unaccelerated speed of the device (i.e. lowering the first plateau). Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- Changes to v1: - change accel

Re: [PATCH libinput 1/3] core: Add internal event notification mechanism

2014-09-21 Thread Peter Hutterer
+libinput_device_add_eventlistener(struct libinput_device *device, event_listener vs eventlistener here, please use the former. otherwise: Reviewed-by: Peter Hutterer peter.hutte...@who-t.net Cheers, Peter + struct libinput_event_listener *listener

Re: [PATCH libinput 2/3] core: Move libinput_event definition to libinput-private.h

2014-09-21 Thread Peter Hutterer
On Thu, Sep 18, 2014 at 01:11:04PM +0200, Hans de Goede wrote: Signed-off-by: Hans de Goede hdego...@redhat.com Reviewed-by: Peter Hutterer peter.hutte...@who-t.net --- src/libinput-private.h | 5 + src/libinput.c | 5 - 2 files changed, 5 insertions(+), 5 deletions

Re: [PATCH libinput 3/3] touchpad: Disable touchpads on trackpoint activity

2014-09-21 Thread Peter Hutterer
from when it gets processes as opposed to when the physical interaction happened. That's something we should avoid. other than that, Reviewed-by: Peter Hutterer peter.hutte...@who-t.net Cheers, Peter +} + +static void tp_device_added(struct evdev_device *device, struct

[PATCH libinput 3/4] touchpad: hook up left-handed configuration

2014-09-23 Thread Peter Hutterer
Tapping and clickfinger is unaffected, physical and software buttons are swapped. The main area of a clickpad remains as left button though. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/evdev-mt-touchpad-buttons.c | 17 - src/evdev-mt-touchpad.c | 19

[PATCH libinput 1/4] Add configuration option for left-handed behavior

2014-09-23 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/libinput-private.h | 8 ++ src/libinput.c | 37 src/libinput.h | 78 ++ 3 files changed, 123 insertions(+) diff --git a/src/libinput

[PATCH libinput 2/4] evdev: hook up left-handed configuration option

2014-09-23 Thread Peter Hutterer
event is posted to switch the device to right/left-handed if applicable. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/evdev.c | 93 +++-- src/evdev.h | 28 +++ 2 files changed, 118 insertions(+), 3 deletions

[PATCH libinput 4/4] test: add some left-handed tests

2014-09-23 Thread Peter Hutterer
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- test/pointer.c | 128 test/touch.c| 23 + test/touchpad.c | 306 3 files changed, 457 insertions(+) diff --git a/test/pointer.c b/test/pointer.c

Re: [PATCH libinput 3/3] touchpad: Disable touchpads on trackpoint activity

2014-09-23 Thread Peter Hutterer
On Mon, Sep 22, 2014 at 09:22:02AM +0200, Hans de Goede wrote: Hi, On 09/22/2014 07:18 AM, Peter Hutterer wrote: On Thu, Sep 18, 2014 at 01:11:05PM +0200, Hans de Goede wrote: Some laptops with both a clickpad and a trackpoint have such a large touchpad, that parts of the users hands

Re: [PATCH weston 1/3] Introduce pointer lock interface

2014-09-23 Thread Peter Hutterer
On Tue, Sep 23, 2014 at 11:51:16AM -0700, Bill Spitzak wrote: On 09/23/2014 09:01 AM, Matthieu Gautier wrote: In fact, we may have a system where we have relative motion events but no wl_pointer. Think about a smart tv with a remote control with accelerator/gyroscope detectors. This remote

Re: [PATCH weston 1/3] Introduce pointer lock interface

2014-09-23 Thread Peter Hutterer
On Tue, Sep 23, 2014 at 04:50:19PM -0700, Bill Spitzak wrote: On 09/23/2014 03:15 PM, Jason Ekstrand wrote: Bill, That's an interesting idea, but there are a few problems (which may be solvable). I do kind of like the way it completely sidesteps the acceleration issue. Thanks This

Re: [PATCH libinput] cosmetic: convert evdev_need_touch_frame from int to bool

2014-10-06 Thread Peter Hutterer
On Fri, Oct 03, 2014 at 03:01:35PM -0500, Derek Foreman wrote: We use stdbool elsewhere, so use it here too for consistency. --- src/evdev.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index d8e3e5a..1b4ce10 100644 ---

Re: [PATCH libinput 0/8] Add libinput_device_suspend() to disable devices

2014-10-06 Thread Peter Hutterer
On Tue, Sep 30, 2014 at 11:36:30AM -0700, Bill Spitzak wrote: On 09/11/2014 07:34 AM, Bastien Nocera wrote: I don't like the Smart disable as a name because the consumer of the API might only see one device for both the trackpoint and the touchpad in which case you want to disable

Re: [PATCH libinput] Fix normalization functions

2014-10-08 Thread Peter Hutterer
On Wed, Oct 08, 2014 at 02:53:21PM -0700, Jason Gerecke wrote: We need to *subtract*, not *add* the minimum to determine the range-effective value. For example: if (min, current, max) is (100, 100, 1000) then the normalized value would be 0.0, not 0.2. woopsie. applied, thanks. Cheers,

Re: [PATCH libinput] Fix normalization functions

2014-10-10 Thread Peter Hutterer
On Thu, Oct 09, 2014 at 10:28:54AM +0200, Hans de Goede wrote: Hi, On 10/09/2014 12:56 AM, Bill Spitzak wrote: That certainly looks correct, but this code will return a value less than 1.0 when absinfo-value == absinfo-maximum. Is this correct? If it is supposed to be 1.0 then I would

Re: [PATCH libinput] tablet: Normalization functions can return 1.0

2014-10-12 Thread Peter Hutterer
On Fri, Oct 10, 2014 at 12:45:32PM -0700, Bill Spitzak wrote: --- src/evdev-tablet.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c index ff5f737..9921823 100644 --- a/src/evdev-tablet.c +++ b/src/evdev-tablet.c @@

Re: libinput: Support for long press key detection?

2014-10-22 Thread Peter Hutterer
On Tue, Oct 21, 2014 at 08:21:26PM +0200, Stefanie Behme wrote: Hi, on last ELCE in Duesseldorf I learned that the development of libinput was started to handle input devices in Wayland compositors. I had a look in the API documentation and found that the enum libinput_key_state has these

Re: Wayland, Weston and libinput to patchwork?

2014-10-24 Thread Peter Hutterer
On Sat, Oct 04, 2014 at 04:58:38PM +0200, Jonas Ådahl wrote: On Wed, Oct 01, 2014 at 11:45:26AM +0300, Pekka Paalanen wrote: Hi, at least with Wayland and Weston, we have bit of hard time tracking the patches that need attention. I think I am currently the only one who actually keeps a

Re: [PATCH wayland-web] Updated additional dependencies for a cleaner Ubuntu 12.04 LTS system.

2014-10-27 Thread Peter Hutterer
On Mon, Oct 27, 2014 at 11:39:39AM -0700, Bill Spitzak wrote: Looks good to me! I'll check if this is also needed for the 14.04 instructions. Probably it is. Also when I did these instructions, I just wrote what I found worked by pretty much blind searching. I am wondering if I missed

Re: [PATCH libinput] evdev: Log evdev event queue overflows

2014-10-27 Thread Peter Hutterer
On Mon, Oct 27, 2014 at 09:33:45AM -0500, Derek Foreman wrote: A couple of questions on this one: Is it ok to limit logging to 10 messages like this? IMO yes. Should I be doing that on a per device basis instead of globally? you are doing it per-device here, I'm not sure what you mean with

Re: [PATCH libinput] evdev: Log evdev event queue overflows

2014-10-27 Thread Peter Hutterer
On Mon, Oct 27, 2014 at 09:26:39AM -0500, Derek Foreman wrote: Log a message when the kernel event queue overflows and events are dropped. After 10 messages logging stops to avoid flooding the logs if the condition is persistent. --- src/evdev.c | 10 ++ 1 file changed, 10

Re: [PATCH libinput] evdev: Log evdev event queue overflows

2014-10-28 Thread Peter Hutterer
On Tue, Oct 28, 2014 at 02:18:25PM -0500, Derek Foreman wrote: On 28/10/14 03:20 AM, Ran Benita wrote: On Mon, Oct 27, 2014 at 09:26:39AM -0500, Derek Foreman wrote: Log a message when the kernel event queue overflows and events are dropped. After 10 messages logging stops to avoid flooding

Re: [PATCH libinput] evdev: Log evdev event queue overflows

2014-10-28 Thread Peter Hutterer
On Tue, Oct 28, 2014 at 09:32:20AM -0500, Derek Foreman wrote: On 27/10/14 07:11 PM, Peter Hutterer wrote: On Mon, Oct 27, 2014 at 09:33:45AM -0500, Derek Foreman wrote: A couple of questions on this one: Is it ok to limit logging to 10 messages like this? IMO yes. Should I

Re: [PATCH libinput v2] evdev: Log evdev event queue overflows

2014-10-30 Thread Peter Hutterer
On Wed, Oct 29, 2014 at 09:56:27AM -0500, Derek Foreman wrote: Log a message when the kernel event queue overflows and events are dropped. After 10 messages logging stops to avoid flooding the logs if the condition is persistent. merged locally, thanks. but please sign off your patches to

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

2014-10-30 Thread Peter Hutterer
On Thu, Oct 30, 2014 at 04:34:12PM -0500, Derek Foreman wrote: 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

Re: [PATCH libinput v2] evdev: Log evdev event queue overflows

2014-11-03 Thread Peter Hutterer
On Mon, Nov 03, 2014 at 11:49:12AM +0100, David Herrmann wrote: Hi On Wed, Oct 29, 2014 at 3:56 PM, Derek Foreman der...@osg.samsung.com wrote: Log a message when the kernel event queue overflows and events are dropped. After 10 messages logging stops to avoid flooding the logs if the

Re: [PATCH libinput v2 7/9] touchpad: Fix log_bug_libinput calls on tap enable with fingers down

2014-11-03 Thread Peter Hutterer
On Sun, Sep 28, 2014 at 01:21:06PM +0200, Hans de Goede wrote: Before this commit the tap code deals with enabled being set to false, by waiting for tap.state to become IDLE, and then ignoring any events from that point on. This causes a problem when enabled gets set to true again while

Re: [PATCH libinput v2 9/9] touchpad: Disable touchpads on trackpoint activity

2014-11-03 Thread Peter Hutterer
On Sun, Sep 28, 2014 at 01:21:08PM +0200, Hans de Goede wrote: Some laptops with both a clickpad and a trackpoint have such a large touchpad, that parts of the users hands will touch the pad when using the trackpoint. Examples of this are the Lenovo T440s and the Toshiba Tecra Z40-A. This

<    1   2   3   4   5   6   7   8   9   10   >