From 19ae566e38565f0fbabc1b7a06dc77c30ba8ab7c45794638c95e68b81bd56958 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 16 Apr 2017 18:33:50 +0000 Subject: [PATCH 1/2] Accepting request 488184 from home:badshah400:branches:X11:Wayland Fix pressure-sensitivity levels on elantech touchpads. OBS-URL: https://build.opensuse.org/request/show/488184 OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/libinput?expand=0&rev=115 --- libinput-elantech-pressure-levels.patch | 15 +++++++++++++++ libinput.changes | 7 +++++++ libinput.spec | 3 +++ 3 files changed, 25 insertions(+) create mode 100644 libinput-elantech-pressure-levels.patch diff --git a/libinput-elantech-pressure-levels.patch b/libinput-elantech-pressure-levels.patch new file mode 100644 index 0000000..a543d38 --- /dev/null +++ b/libinput-elantech-pressure-levels.patch @@ -0,0 +1,15 @@ +Index: libinput-1.7.0/src/evdev-mt-touchpad.c +=================================================================== +--- libinput-1.7.0.orig/src/evdev-mt-touchpad.c ++++ libinput-1.7.0/src/evdev-mt-touchpad.c +@@ -2383,8 +2383,8 @@ tp_init_pressure(struct tp_dispatch *tp, + range = abs->maximum - abs->minimum; + + if (device->model_flags & EVDEV_MODEL_ELANTECH_TOUCHPAD) { +- tp->pressure.high = 24; +- tp->pressure.low = 10; ++ tp->pressure.high = 10; ++ tp->pressure.low = 8; + } else if (device->model_flags & EVDEV_MODEL_CYAPA) { + tp->pressure.high = 10; + tp->pressure.low = 8; diff --git a/libinput.changes b/libinput.changes index cd5d93a..0d0fbfa 100644 --- a/libinput.changes +++ b/libinput.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat Apr 15 02:03:21 UTC 2017 - badshah400@gmail.com + +- Add libinput-elantech-pressure-levels.patch to fix pressure + sensitivity for ELANTECH touchpads causing uncomfortable + two-finger taps, scrolls (boo#1034335, fdo#100463). + ------------------------------------------------------------------- Thu Mar 23 09:20:46 UTC 2017 - jengelh@inai.de diff --git a/libinput.spec b/libinput.spec index 718fb8a..bff71ac 100644 --- a/libinput.spec +++ b/libinput.spec @@ -32,6 +32,8 @@ Source: http://freedesktop.org/software/libinput/%name-%version.tar.xz Source2: http://freedesktop.org/software/libinput/%name-%version.tar.xz.sig Source3: baselibs.conf Source4: %name.keyring +# PATCH-FIX-UPSTREAM libinput-elantech-pressure-levels.patch boo#1034335 fdo#100463 badshah400@gmail.com -- Fix pressure sensitivity for ELANTECH touchpads causing uncomfortable two-finger taps, scrolls +Patch0: libinput-elantech-pressure-levels.patch #git#BuildRequires: autoconf >= 2.64 #git#BuildRequires: automake >= 1.11 #git#BuildRequires: libtool >= 2.2 @@ -98,6 +100,7 @@ to develop applications that require libinput. %prep %setup -qn %name-%version +%patch0 -p1 %build if [ ! -e configure ]; then From 8dba41de7ec7e011074db33c031f909b89584104e0e111abd6a256c94332d7bc Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 16 Apr 2017 18:35:51 +0000 Subject: [PATCH 2/2] Use the much better in-patch scheme OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/libinput?expand=0&rev=116 --- libinput-elantech-pressure-levels.patch | 8 ++++++++ libinput.spec | 5 ++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/libinput-elantech-pressure-levels.patch b/libinput-elantech-pressure-levels.patch index a543d38..6ff1de8 100644 --- a/libinput-elantech-pressure-levels.patch +++ b/libinput-elantech-pressure-levels.patch @@ -1,3 +1,11 @@ +From: badshah400@gmail.com + +Fix pressure sensitivity for ELANTECH touchpads causing uncomfortable +two-finger taps, scrolls. + +References: http://bugzilla.opensuse.org/1034335 +References: http://bugs.freedesktop.orgs/100463 + Index: libinput-1.7.0/src/evdev-mt-touchpad.c =================================================================== --- libinput-1.7.0.orig/src/evdev-mt-touchpad.c diff --git a/libinput.spec b/libinput.spec index bff71ac..5e76103 100644 --- a/libinput.spec +++ b/libinput.spec @@ -32,8 +32,7 @@ Source: http://freedesktop.org/software/libinput/%name-%version.tar.xz Source2: http://freedesktop.org/software/libinput/%name-%version.tar.xz.sig Source3: baselibs.conf Source4: %name.keyring -# PATCH-FIX-UPSTREAM libinput-elantech-pressure-levels.patch boo#1034335 fdo#100463 badshah400@gmail.com -- Fix pressure sensitivity for ELANTECH touchpads causing uncomfortable two-finger taps, scrolls -Patch0: libinput-elantech-pressure-levels.patch +Patch1: libinput-elantech-pressure-levels.patch #git#BuildRequires: autoconf >= 2.64 #git#BuildRequires: automake >= 1.11 #git#BuildRequires: libtool >= 2.2 @@ -100,7 +99,7 @@ to develop applications that require libinput. %prep %setup -qn %name-%version -%patch0 -p1 +%patch -P 1 -p1 %build if [ ! -e configure ]; then