[arch-commits] Commit in libinput/repos (10 files)

Laurent Carlier lcarlier at archlinux.org
Tue Jun 9 11:56:19 UTC 2015


    Date: Tuesday, June 9, 2015 @ 13:56:19
  Author: lcarlier
Revision: 240446

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  libinput/repos/testing-i686/0001-filter-require-minimum-acceleration-factor-of-0.3.patch
    (from rev 240445, libinput/trunk/0001-filter-require-minimum-acceleration-factor-of-0.3.patch)
  libinput/repos/testing-i686/PKGBUILD
    (from rev 240445, libinput/trunk/PKGBUILD)
  libinput/repos/testing-i686/libinput.install
    (from rev 240445, libinput/trunk/libinput.install)
  libinput/repos/testing-x86_64/0001-filter-require-minimum-acceleration-factor-of-0.3.patch
    (from rev 240445, libinput/trunk/0001-filter-require-minimum-acceleration-factor-of-0.3.patch)
  libinput/repos/testing-x86_64/PKGBUILD
    (from rev 240445, libinput/trunk/PKGBUILD)
  libinput/repos/testing-x86_64/libinput.install
    (from rev 240445, libinput/trunk/libinput.install)
Deleted:
  libinput/repos/testing-i686/PKGBUILD
  libinput/repos/testing-i686/libinput.install
  libinput/repos/testing-x86_64/PKGBUILD
  libinput/repos/testing-x86_64/libinput.install

-----------------------------------------------------------------------------+
 /PKGBUILD                                                                   |   84 ++++++++++
 /libinput.install                                                           |   22 ++
 testing-i686/0001-filter-require-minimum-acceleration-factor-of-0.3.patch   |   52 ++++++
 testing-i686/PKGBUILD                                                       |   35 ----
 testing-i686/libinput.install                                               |   11 -
 testing-x86_64/0001-filter-require-minimum-acceleration-factor-of-0.3.patch |   52 ++++++
 testing-x86_64/PKGBUILD                                                     |   35 ----
 testing-x86_64/libinput.install                                             |   11 -
 8 files changed, 210 insertions(+), 92 deletions(-)

Copied: libinput/repos/testing-i686/0001-filter-require-minimum-acceleration-factor-of-0.3.patch (from rev 240445, libinput/trunk/0001-filter-require-minimum-acceleration-factor-of-0.3.patch)
===================================================================
--- testing-i686/0001-filter-require-minimum-acceleration-factor-of-0.3.patch	                        (rev 0)
+++ testing-i686/0001-filter-require-minimum-acceleration-factor-of-0.3.patch	2015-06-09 11:56:19 UTC (rev 240446)
@@ -0,0 +1,52 @@
+From f6313a9d010f03a66fd1f68e0bbd5e073101f342 Mon Sep 17 00:00:00 2001
+From: Peter Hutterer <peter.hutterer at who-t.net>
+Date: Thu, 4 Jun 2015 11:40:15 +1000
+Subject: [PATCH libinput] filter: require minimum acceleration factor of 0.3
+
+For really slow motions, the previous acceleration factor would go down to
+effectively zero. So the slower the mouse motion was, the more it would be
+slowed down which made the mouse at low speeds almost unusable.
+
+Cap the minimum acceleration at 0.3 which provides a predictable slow motion
+for the cursor when high precision is required.
+
+New/old acceleration functions comparison:
+
+  ^
+  |               /
+  |              /
+ty|    _________/
+  |   / /
+  |  / /
+  | / /
+  |/ /    <----- new minimum accel factor
+  | /
+  |/___________________>
+      tx
+
+i.e. the general shape is maintained, but it doesn't go to zero anymore. The
+functions aren't parallel, the new shape is slightly flatter than the previous
+one and they meet at the point where the functions flatten for the threshold
+(tx/ty). ascii art has its limits...
+
+Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
+---
+ src/filter.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/filter.c b/src/filter.c
+index c54d866..ed5a184 100644
+--- a/src/filter.c
++++ b/src/filter.c
+@@ -354,7 +354,7 @@ pointer_accel_profile_linear(struct motion_filter *filter,
+ 	const double threshold = accel_filter->threshold; /* units/ms */
+ 	const double incline = accel_filter->incline;
+ 
+-	s1 = min(1, speed_in * 5);
++	s1 = min(1, 0.3 + speed_in * 4);
+ 	s2 = 1 + (speed_in - threshold) * incline;
+ 
+ 	return min(max_accel, s2 > 1 ? s2 : s1);
+-- 
+2.4.1
+

Deleted: testing-i686/PKGBUILD
===================================================================
--- testing-i686/PKGBUILD	2015-06-09 11:56:10 UTC (rev 240445)
+++ testing-i686/PKGBUILD	2015-06-09 11:56:19 UTC (rev 240446)
@@ -1,35 +0,0 @@
-# $Id$
-# Maintainer: Andreas Radke <andyrtr at archlinux.org>
-# Maintainer: Jan de Groot
-
-pkgname=libinput
-pkgver=0.17.0
-pkgrel=1
-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')
-install=libinput.install
-options=('!libtool')
-source=(http://freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.xz{,.sig})
-sha256sums=('b7db243be3a745c1031b364f3595ce9bb31347f874b7299ef8d44c98d2fb28db'
-            'SKIP')
-validpgpkeys=('3C2C43D9447D5938EF4551EBE23B7E70B467F0BF') # Peter Hutterer (Who-T) <office at who-t.net>
-
-build() {
-  cd $pkgname-$pkgver
-  ./configure --prefix=/usr --disable-static
-  make
-}
-
-check() {
-  cd $pkgname-$pkgver
-  make check
-}
-
-package() {
-  cd $pkgname-$pkgver
-  make DESTDIR="$pkgdir" install
-  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
-}

Copied: libinput/repos/testing-i686/PKGBUILD (from rev 240445, libinput/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2015-06-09 11:56:19 UTC (rev 240446)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+# Maintainer: Jan de Groot
+
+pkgname=libinput
+pkgver=0.17.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')
+install=libinput.install
+options=('!libtool')
+source=(http://freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.xz{,.sig}
+        0001-filter-require-minimum-acceleration-factor-of-0.3.patch)
+sha256sums=('b7db243be3a745c1031b364f3595ce9bb31347f874b7299ef8d44c98d2fb28db'
+            'SKIP'
+            '8d0fbee0669cdf6ad1318dcdb859efb59f6fb94d92e244fd71dd57a00fbda82b')
+validpgpkeys=('3C2C43D9447D5938EF4551EBE23B7E70B467F0BF') # Peter Hutterer (Who-T) <office at who-t.net>
+
+prepare() {
+  cd $pkgname-$pkgver
+  patch -Np1 -i ../0001-filter-require-minimum-acceleration-factor-of-0.3.patch
+}
+
+build() {
+  cd $pkgname-$pkgver
+  ./configure --prefix=/usr --disable-static
+  make
+}
+
+check() {
+  cd $pkgname-$pkgver
+  make check
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+}

Deleted: testing-i686/libinput.install
===================================================================
--- testing-i686/libinput.install	2015-06-09 11:56:10 UTC (rev 240445)
+++ testing-i686/libinput.install	2015-06-09 11:56:19 UTC (rev 240446)
@@ -1,11 +0,0 @@
-post_install() {
-  udevadm hwdb --update >/dev/null 2>&1
-}
-
-post_upgrade() {
-  post_install $1
-}
-
-post_remove() {
-  post_install $1
-}

Copied: libinput/repos/testing-i686/libinput.install (from rev 240445, libinput/trunk/libinput.install)
===================================================================
--- testing-i686/libinput.install	                        (rev 0)
+++ testing-i686/libinput.install	2015-06-09 11:56:19 UTC (rev 240446)
@@ -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/0001-filter-require-minimum-acceleration-factor-of-0.3.patch (from rev 240445, libinput/trunk/0001-filter-require-minimum-acceleration-factor-of-0.3.patch)
===================================================================
--- testing-x86_64/0001-filter-require-minimum-acceleration-factor-of-0.3.patch	                        (rev 0)
+++ testing-x86_64/0001-filter-require-minimum-acceleration-factor-of-0.3.patch	2015-06-09 11:56:19 UTC (rev 240446)
@@ -0,0 +1,52 @@
+From f6313a9d010f03a66fd1f68e0bbd5e073101f342 Mon Sep 17 00:00:00 2001
+From: Peter Hutterer <peter.hutterer at who-t.net>
+Date: Thu, 4 Jun 2015 11:40:15 +1000
+Subject: [PATCH libinput] filter: require minimum acceleration factor of 0.3
+
+For really slow motions, the previous acceleration factor would go down to
+effectively zero. So the slower the mouse motion was, the more it would be
+slowed down which made the mouse at low speeds almost unusable.
+
+Cap the minimum acceleration at 0.3 which provides a predictable slow motion
+for the cursor when high precision is required.
+
+New/old acceleration functions comparison:
+
+  ^
+  |               /
+  |              /
+ty|    _________/
+  |   / /
+  |  / /
+  | / /
+  |/ /    <----- new minimum accel factor
+  | /
+  |/___________________>
+      tx
+
+i.e. the general shape is maintained, but it doesn't go to zero anymore. The
+functions aren't parallel, the new shape is slightly flatter than the previous
+one and they meet at the point where the functions flatten for the threshold
+(tx/ty). ascii art has its limits...
+
+Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
+---
+ src/filter.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/filter.c b/src/filter.c
+index c54d866..ed5a184 100644
+--- a/src/filter.c
++++ b/src/filter.c
+@@ -354,7 +354,7 @@ pointer_accel_profile_linear(struct motion_filter *filter,
+ 	const double threshold = accel_filter->threshold; /* units/ms */
+ 	const double incline = accel_filter->incline;
+ 
+-	s1 = min(1, speed_in * 5);
++	s1 = min(1, 0.3 + speed_in * 4);
+ 	s2 = 1 + (speed_in - threshold) * incline;
+ 
+ 	return min(max_accel, s2 > 1 ? s2 : s1);
+-- 
+2.4.1
+

Deleted: testing-x86_64/PKGBUILD
===================================================================
--- testing-x86_64/PKGBUILD	2015-06-09 11:56:10 UTC (rev 240445)
+++ testing-x86_64/PKGBUILD	2015-06-09 11:56:19 UTC (rev 240446)
@@ -1,35 +0,0 @@
-# $Id$
-# Maintainer: Andreas Radke <andyrtr at archlinux.org>
-# Maintainer: Jan de Groot
-
-pkgname=libinput
-pkgver=0.17.0
-pkgrel=1
-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')
-install=libinput.install
-options=('!libtool')
-source=(http://freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.xz{,.sig})
-sha256sums=('b7db243be3a745c1031b364f3595ce9bb31347f874b7299ef8d44c98d2fb28db'
-            'SKIP')
-validpgpkeys=('3C2C43D9447D5938EF4551EBE23B7E70B467F0BF') # Peter Hutterer (Who-T) <office at who-t.net>
-
-build() {
-  cd $pkgname-$pkgver
-  ./configure --prefix=/usr --disable-static
-  make
-}
-
-check() {
-  cd $pkgname-$pkgver
-  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/PKGBUILD (from rev 240445, libinput/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2015-06-09 11:56:19 UTC (rev 240446)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+# Maintainer: Jan de Groot
+
+pkgname=libinput
+pkgver=0.17.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')
+install=libinput.install
+options=('!libtool')
+source=(http://freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.xz{,.sig}
+        0001-filter-require-minimum-acceleration-factor-of-0.3.patch)
+sha256sums=('b7db243be3a745c1031b364f3595ce9bb31347f874b7299ef8d44c98d2fb28db'
+            'SKIP'
+            '8d0fbee0669cdf6ad1318dcdb859efb59f6fb94d92e244fd71dd57a00fbda82b')
+validpgpkeys=('3C2C43D9447D5938EF4551EBE23B7E70B467F0BF') # Peter Hutterer (Who-T) <office at who-t.net>
+
+prepare() {
+  cd $pkgname-$pkgver
+  patch -Np1 -i ../0001-filter-require-minimum-acceleration-factor-of-0.3.patch
+}
+
+build() {
+  cd $pkgname-$pkgver
+  ./configure --prefix=/usr --disable-static
+  make
+}
+
+check() {
+  cd $pkgname-$pkgver
+  make check
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+}

Deleted: testing-x86_64/libinput.install
===================================================================
--- testing-x86_64/libinput.install	2015-06-09 11:56:10 UTC (rev 240445)
+++ testing-x86_64/libinput.install	2015-06-09 11:56:19 UTC (rev 240446)
@@ -1,11 +0,0 @@
-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/libinput.install (from rev 240445, libinput/trunk/libinput.install)
===================================================================
--- testing-x86_64/libinput.install	                        (rev 0)
+++ testing-x86_64/libinput.install	2015-06-09 11:56:19 UTC (rev 240446)
@@ -0,0 +1,11 @@
+post_install() {
+  udevadm hwdb --update >/dev/null 2>&1
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+post_remove() {
+  post_install $1
+}



More information about the arch-commits mailing list