[arch-commits] Commit in libinput/trunk (0001_Elan_Touchpads_quirks.patch PKGBUILD)

Andreas Radke andyrtr at archlinux.org
Tue Sep 18 05:05:51 UTC 2018


    Date: Tuesday, September 18, 2018 @ 05:05:51
  Author: andyrtr
Revision: 334857

upgpkg: libinput 1.12.0-2

fix Elan touchpad - FS#60072

Added:
  libinput/trunk/0001_Elan_Touchpads_quirks.patch
Modified:
  libinput/trunk/PKGBUILD

----------------------------------+
 0001_Elan_Touchpads_quirks.patch |   39 +++++++++++++++++++++++++++++++++++++
 PKGBUILD                         |   14 ++++++++++---
 2 files changed, 50 insertions(+), 3 deletions(-)

Added: 0001_Elan_Touchpads_quirks.patch
===================================================================
--- 0001_Elan_Touchpads_quirks.patch	                        (rev 0)
+++ 0001_Elan_Touchpads_quirks.patch	2018-09-18 05:05:51 UTC (rev 334857)
@@ -0,0 +1,39 @@
+From dcfea54787a3efe1f1ab44eef998c2a7a723d80a Mon Sep 17 00:00:00 2001
+From: Peter Hutterer <peter.hutterer at who-t.net>
+Date: Tue, 18 Sep 2018 07:02:27 +1000
+Subject: [PATCH] quirks: extend/restore the Elan Touchpads quirks
+
+The hwdb match entry used to be this one:
+ libinput:name:*Elan Touchpad*:dt:*
+  LIBINPUT_ATTR_PRESSURE_RANGE=10:8
+from commit 596777a3147d4070f9598f051f6d7ae96fa2f49a. It was intended to match
+for devicetree only but the way the udev rules were composed, it ended up
+matching on any system.
+
+Restore that for all systems to have compatibility with 1.11. For this one,
+let's also add the resolution hint and hope that that works too.
+
+Fixes #140
+
+Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
+---
+ quirks/30-vendor-elantech.quirks | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/quirks/30-vendor-elantech.quirks b/quirks/30-vendor-elantech.quirks
+index e49c3415..9b3a1ba7 100644
+--- a/quirks/30-vendor-elantech.quirks
++++ b/quirks/30-vendor-elantech.quirks
+@@ -4,3 +4,8 @@
+ MatchName=*Elantech Touchpad*
+ AttrResolutionHint=31x31
+ AttrPressureRange=10:8
++
++[Elan Touchpads]
++MatchName=*Elan Touchpad*
++AttrResolutionHint=31x31
++AttrPressureRange=10:8
+-- 
+2.18.0
+
+

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-09-18 04:58:38 UTC (rev 334856)
+++ PKGBUILD	2018-09-18 05:05:51 UTC (rev 334857)
@@ -3,7 +3,7 @@
 
 pkgname=libinput
 pkgver=1.12.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Input device management and event handling library"
 url="https://www.freedesktop.org/wiki/Software/libinput/"
 arch=(x86_64)
@@ -14,11 +14,19 @@
 optdepends=('gtk3: libinput debug-gui'
             'python-pyudev: libinput measure'
             'python-evdev: libinput measure')
-source=(https://freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.xz{,.sig})
+source=(https://freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.xz{,.sig}
+       0001_Elan_Touchpads_quirks.patch)
 sha512sums=('4aee877785f9ac080e4f8ee20f3643bc4f3ddbc568aca6c363a962f8c8f76b8db7dc113c8167092f0277d112346a85b9a7e7c3c3f227ed243aaba32c9092c924'
-            'SKIP')
+            'SKIP'
+            '8d603a04e1ef737f8627d75d2da97d5cee7607e2604a31105496a6ea2db632d40d04a567ce22ac2cd4765a2fd1ec4945032bad0b8c3b9ed4a9bd333886976570')
 validpgpkeys=('3C2C43D9447D5938EF4551EBE23B7E70B467F0BF') # Peter Hutterer (Who-T) <office at who-t.net>
 
+prepare() {
+  cd $srcdir/$pkgname-$pkgver
+  # FS#60072
+  patch -Np1 -i ../0001_Elan_Touchpads_quirks.patch
+}
+
 build() {
   arch-meson $pkgname-$pkgver build \
     -Dudev-dir=/usr/lib/udev \



More information about the arch-commits mailing list