[arch-commits] Commit in libinput/repos (8 files)
Andreas Radke
andyrtr at archlinux.org
Fri May 20 18:56:24 UTC 2016
Date: Friday, May 20, 2016 @ 20:56:24
Author: andyrtr
Revision: 268372
archrelease: copy trunk to testing-i686, testing-x86_64
Added:
libinput/repos/testing-i686/
libinput/repos/testing-i686/PKGBUILD
(from rev 268371, libinput/trunk/PKGBUILD)
libinput/repos/testing-i686/libinput.install
(from rev 268371, libinput/trunk/libinput.install)
libinput/repos/testing-i686/touchpad_only_use_negative_pressure_change_check.diff
(from rev 268371, libinput/trunk/touchpad_only_use_negative_pressure_change_check.diff)
libinput/repos/testing-x86_64/
libinput/repos/testing-x86_64/PKGBUILD
(from rev 268371, libinput/trunk/PKGBUILD)
libinput/repos/testing-x86_64/libinput.install
(from rev 268371, libinput/trunk/libinput.install)
libinput/repos/testing-x86_64/touchpad_only_use_negative_pressure_change_check.diff
(from rev 268371, libinput/trunk/touchpad_only_use_negative_pressure_change_check.diff)
----------------------------------------------------------------------+
testing-i686/PKGBUILD | 46 ++++++++++
testing-i686/libinput.install | 11 ++
testing-i686/touchpad_only_use_negative_pressure_change_check.diff | 42 +++++++++
testing-x86_64/PKGBUILD | 46 ++++++++++
testing-x86_64/libinput.install | 11 ++
testing-x86_64/touchpad_only_use_negative_pressure_change_check.diff | 42 +++++++++
6 files changed, 198 insertions(+)
Copied: libinput/repos/testing-i686/PKGBUILD (from rev 268371, libinput/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD (rev 0)
+++ testing-i686/PKGBUILD 2016-05-20 18:56:24 UTC (rev 268372)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+# Maintainer: Jan de Groot
+
+pkgname=libinput
+pkgver=1.3.0
+pkgrel=2
+pkgdesc="library that handles input devices for display servers and other applications that need to directly deal with input devices."
+arch=(i686 x86_64)
+url="http://www.freedesktop.org/wiki/Software/libinput/"
+license=(custom:X11)
+depends=('mtdev' 'systemd' 'libevdev' 'libwacom')
+checkdepends=('check')
+install=libinput.install
+options=('!libtool')
+source=(http://freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.xz{,.sig}
+ touchpad_only_use_negative_pressure_change_check.diff)
+sha256sums=('998a75fb261d161efaa7da44411cdc9a32a953280e4ffc6322ca19f057d0c1ea'
+ 'SKIP'
+ 'bfc71b3c3c18ab6dc6cb076e7b0410b5f3a51aa7b7db34f7fd35dd79c9615806')
+validpgpkeys=('3C2C43D9447D5938EF4551EBE23B7E70B467F0BF') # Peter Hutterer (Who-T) <office at who-t.net>
+
+prepare() {
+ cd $pkgname-$pkgver
+ # fix slow touchpad input, FS#49397
+ patch -Np1 -i ${srcdir}/touchpad_only_use_negative_pressure_change_check.diff
+}
+
+build() {
+ cd $pkgname-$pkgver
+ ./configure --prefix=/usr --disable-static
+ make
+}
+
+check() {
+ cd $pkgname-$pkgver
+# disabled for now:
+# https://github.com/libcheck/check/issues/18
+# make check
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+ install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+}
Copied: libinput/repos/testing-i686/libinput.install (from rev 268371, libinput/trunk/libinput.install)
===================================================================
--- testing-i686/libinput.install (rev 0)
+++ testing-i686/libinput.install 2016-05-20 18:56:24 UTC (rev 268372)
@@ -0,0 +1,11 @@
+post_install() {
+ udevadm hwdb --update >/dev/null 2>&1
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}
Copied: libinput/repos/testing-i686/touchpad_only_use_negative_pressure_change_check.diff (from rev 268371, libinput/trunk/touchpad_only_use_negative_pressure_change_check.diff)
===================================================================
--- testing-i686/touchpad_only_use_negative_pressure_change_check.diff (rev 0)
+++ testing-i686/touchpad_only_use_negative_pressure_change_check.diff 2016-05-20 18:56:24 UTC (rev 268372)
@@ -0,0 +1,42 @@
+From 2f5231cc88fccf389a78270d827f6c9201b86794 Mon Sep 17 00:00:00 2001
+From: Peter Hutterer <peter.hutterer at who-t.net>
+Date: Wed, 18 May 2016 07:35:36 +1000
+Subject: touchpad: only use negative pressure change check on Lenovo *50 and
+ *60 series
+
+This was introduced for bug 94379 - an X1 Carbon 3rd. Other touchpads have
+different pressure change ranges, causing this condition to trigger
+randomly and resulting in a jerky pointer motion.
+
+For now, reduce the check to the *50 and *60 series touchpads until we have
+data for more touchpads that we can add one-by-one.
+
+https://bugs.freedesktop.org/show_bug.cgi?id=95393
+
+Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
+Reviewed-by: Hans de Goede <hdegoede at redhat.com>
+
+diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c
+index 4c8c3a3..c854043 100644
+--- a/src/evdev-mt-touchpad.c
++++ b/src/evdev-mt-touchpad.c
+@@ -928,6 +928,7 @@ tp_detect_jumps(const struct tp_dispatch *tp, struct tp_touch *t)
+ static void
+ tp_process_state(struct tp_dispatch *tp, uint64_t time)
+ {
++ struct evdev_device *device = tp->device;
+ struct tp_touch *t;
+ unsigned int i;
+ bool restart_filter = false;
+@@ -953,7 +954,8 @@ tp_process_state(struct tp_dispatch *tp, uint64_t time)
+ if (!t->dirty)
+ continue;
+
+- if (t->pressure_delta < -7)
++ if ((device->model_flags & EVDEV_MODEL_LENOVO_T450_TOUCHPAD) &&
++ t->pressure_delta < -7)
+ tp_motion_history_reset(t);
+
+ if (tp_detect_jumps(tp, t)) {
+--
+cgit v0.10.2
Copied: libinput/repos/testing-x86_64/PKGBUILD (from rev 268371, libinput/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2016-05-20 18:56:24 UTC (rev 268372)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+# Maintainer: Jan de Groot
+
+pkgname=libinput
+pkgver=1.3.0
+pkgrel=2
+pkgdesc="library that handles input devices for display servers and other applications that need to directly deal with input devices."
+arch=(i686 x86_64)
+url="http://www.freedesktop.org/wiki/Software/libinput/"
+license=(custom:X11)
+depends=('mtdev' 'systemd' 'libevdev' 'libwacom')
+checkdepends=('check')
+install=libinput.install
+options=('!libtool')
+source=(http://freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.xz{,.sig}
+ touchpad_only_use_negative_pressure_change_check.diff)
+sha256sums=('998a75fb261d161efaa7da44411cdc9a32a953280e4ffc6322ca19f057d0c1ea'
+ 'SKIP'
+ 'bfc71b3c3c18ab6dc6cb076e7b0410b5f3a51aa7b7db34f7fd35dd79c9615806')
+validpgpkeys=('3C2C43D9447D5938EF4551EBE23B7E70B467F0BF') # Peter Hutterer (Who-T) <office at who-t.net>
+
+prepare() {
+ cd $pkgname-$pkgver
+ # fix slow touchpad input, FS#49397
+ patch -Np1 -i ${srcdir}/touchpad_only_use_negative_pressure_change_check.diff
+}
+
+build() {
+ cd $pkgname-$pkgver
+ ./configure --prefix=/usr --disable-static
+ make
+}
+
+check() {
+ cd $pkgname-$pkgver
+# disabled for now:
+# https://github.com/libcheck/check/issues/18
+# make check
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+ install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+}
Copied: libinput/repos/testing-x86_64/libinput.install (from rev 268371, libinput/trunk/libinput.install)
===================================================================
--- testing-x86_64/libinput.install (rev 0)
+++ testing-x86_64/libinput.install 2016-05-20 18:56:24 UTC (rev 268372)
@@ -0,0 +1,11 @@
+post_install() {
+ udevadm hwdb --update >/dev/null 2>&1
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}
Copied: libinput/repos/testing-x86_64/touchpad_only_use_negative_pressure_change_check.diff (from rev 268371, libinput/trunk/touchpad_only_use_negative_pressure_change_check.diff)
===================================================================
--- testing-x86_64/touchpad_only_use_negative_pressure_change_check.diff (rev 0)
+++ testing-x86_64/touchpad_only_use_negative_pressure_change_check.diff 2016-05-20 18:56:24 UTC (rev 268372)
@@ -0,0 +1,42 @@
+From 2f5231cc88fccf389a78270d827f6c9201b86794 Mon Sep 17 00:00:00 2001
+From: Peter Hutterer <peter.hutterer at who-t.net>
+Date: Wed, 18 May 2016 07:35:36 +1000
+Subject: touchpad: only use negative pressure change check on Lenovo *50 and
+ *60 series
+
+This was introduced for bug 94379 - an X1 Carbon 3rd. Other touchpads have
+different pressure change ranges, causing this condition to trigger
+randomly and resulting in a jerky pointer motion.
+
+For now, reduce the check to the *50 and *60 series touchpads until we have
+data for more touchpads that we can add one-by-one.
+
+https://bugs.freedesktop.org/show_bug.cgi?id=95393
+
+Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
+Reviewed-by: Hans de Goede <hdegoede at redhat.com>
+
+diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c
+index 4c8c3a3..c854043 100644
+--- a/src/evdev-mt-touchpad.c
++++ b/src/evdev-mt-touchpad.c
+@@ -928,6 +928,7 @@ tp_detect_jumps(const struct tp_dispatch *tp, struct tp_touch *t)
+ static void
+ tp_process_state(struct tp_dispatch *tp, uint64_t time)
+ {
++ struct evdev_device *device = tp->device;
+ struct tp_touch *t;
+ unsigned int i;
+ bool restart_filter = false;
+@@ -953,7 +954,8 @@ tp_process_state(struct tp_dispatch *tp, uint64_t time)
+ if (!t->dirty)
+ continue;
+
+- if (t->pressure_delta < -7)
++ if ((device->model_flags & EVDEV_MODEL_LENOVO_T450_TOUCHPAD) &&
++ t->pressure_delta < -7)
+ tp_motion_history_reset(t);
+
+ if (tp_detect_jumps(tp, t)) {
+--
+cgit v0.10.2
More information about the arch-commits
mailing list