Re: [PATCH libinput 3/3] udev: Decrease high pressure value for Elantech touchpads

2017-04-23 Thread Peter Hutterer
On Fri, Apr 21, 2017 at 01:31:58PM +0200, Paul Kocialkowski wrote: > The high pressure value for Elantech touchpads (both PS/2 and I2C) is > not adapted to various devices, on which the touchpad is barely usable. > > Decreasing the high value makes those devices usable again, while not > introduci

Re: [PATCH libinput 2/3] udev: Add support for I2C Elan touchpads (without dmi)

2017-04-23 Thread Peter Hutterer
On Fri, Apr 21, 2017 at 01:31:57PM +0200, Paul Kocialkowski wrote: > This adds support for I2C Elan touchpads, such as the ones found in > various ARM CrOS devices. These devices do not use dmi. > > The pressure range is copied as-is from the current Elantech PS/2 > touchpads entry. It is not adap

Re: [PATCH libinput 1/3] udev: Add name-based input device detection without dmi

2017-04-23 Thread Peter Hutterer
On Fri, Apr 21, 2017 at 01:31:56PM +0200, Paul Kocialkowski wrote: > Some devices do not use dmi at all (this is the case on most non-x86 > platforms, such as arm and arm64) but should able to select specific > quirks based on the input device name too. > > This adds name-based input device detect

[PATCH libinput] doc: add documentation for touchpad pressure detection

2017-04-23 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- doc/Makefile.am | 1 + doc/faqs.dox | 5 ++ doc/page-hierarchy.dox| 1 + doc/touchpad-pressure.dox | 138 ++ 4 files changed, 145 insertions(+) create mode 100644 doc/touchpad-pressure.

Re: [RFC v2 wayland-protocols] inputfd - direct input access protocol

2017-04-23 Thread Peter Hutterer
On Sun, Apr 23, 2017 at 09:47:20AM -0700, Roderick Colenbrander wrote: > On Mon, Apr 17, 2017 at 9:05 PM, Peter Hutterer > wrote: > > > > On Fri, Apr 07, 2017 at 01:43:57PM +0300, Pekka Paalanen wrote: > > > On Fri, 7 Apr 2017 14:04:40 +1000 > > > Peter Hutterer wrote: > > > > > > > For the initi

[PATCH libinput] Add doc to discourage use of libinput_device_get_output_name()

2017-04-23 Thread Peter Hutterer
This is a leftover from when libinput was part of weston and we could interpret properties correctly. Realistically, the only way this could work with libinput as external library is if we define precisely what the definition of an output is. Practically, it's a lot easier to just throw up our hand

[PATCH libinput 3/7] Add libinput_device_switch_has_switch()

2017-04-23 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- src/evdev.c| 20 src/evdev.h| 4 src/libinput.c | 7 +++ src/libinput.h | 16 src/libinput.sym | 4 test/test-switch.c | 11 +++ 6 files changed, 62 insertions(+) diff --git

[PATCH libinput 7/7] Add support for SW_RFKILL_ALL

2017-04-23 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- src/evdev.c| 64 - src/evdev.h| 4 ++ src/libinput.h | 15 + test/Makefile.am | 1 + test/litest-device-thinkpad-extrab

[PATCH libinput 5/7] test: make some of the switch tests more generic

2017-04-23 Thread Peter Hutterer
Still hardcoded for lid switches, but easier to change for other switches now. Signed-off-by: Peter Hutterer --- test/test-switch.c | 81 -- 1 file changed, 30 insertions(+), 51 deletions(-) diff --git a/test/test-switch.c b/test/test-switch.c

[PATCH libinput 6/7] test: add test for switch capability

2017-04-23 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- test/test-switch.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/test/test-switch.c b/test/test-switch.c index b310a0c..3fbd244 100644 --- a/test/test-switch.c +++ b/test/test-switch.c @@ -42,6 +42,16 @@ START_TEST(switch_has_lid_switch) } EN

[PATCH libinput 4/7] test: rename 'sw' to 'dev' for the lid tests

2017-04-23 Thread Peter Hutterer
More in line with other tests and allows us to use 'sw' as name for the actual switch to be toggled later. The variable name 'sw' stays in those tests where we have touchpad/keyboard/etc. devices as well. Signed-off-by: Peter Hutterer --- test/test-switch.c | 40 -

[PATCH libinput 2/7] test: make the lid action helper function a generic switch action helper

2017-04-23 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- test/litest.c | 17 ++--- test/litest.h | 5 ++-- test/test-misc.c | 8 -- test/test-switch.c | 72 -- 4 files changed, 77 insertions(+), 25 deletions(-) diff --git a/test/litest.c b/t

[PATCH libinput 1/7] test: rename test-lid.c to test-switch.c

2017-04-23 Thread Peter Hutterer
So we can add other switch tests to it without confusing too many people. Signed-off-by: Peter Hutterer --- test/Makefile.am | 2 +- test/{test-lid.c => test-switch.c} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename test/{test-lid.c => test-switch.c} (100%) diff --

Re: [RFC v2 wayland-protocols] inputfd - direct input access protocol

2017-04-23 Thread Roderick Colenbrander
On Mon, Apr 17, 2017 at 9:05 PM, Peter Hutterer wrote: > > On Fri, Apr 07, 2017 at 01:43:57PM +0300, Pekka Paalanen wrote: > > On Fri, 7 Apr 2017 14:04:40 +1000 > > Peter Hutterer wrote: > > > > > For the initial patchset, see > > > https://lists.freedesktop.org/archives/wayland-devel/2017-March/