From cd63a06153cbb6ec95fb221b99a463a1f7a8a1d6 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 5 Aug 2015 14:47:59 +1000 Subject: [PATCH] tools: add shell script for making the pointer acceleration graphs in the docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Peter Hutterer Reviewed-by: Jonas Ã…dahl --- tools/Makefile.am | 2 + tools/make-ptraccel-graphs.sh | 79 +++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100755 tools/make-ptraccel-graphs.sh diff --git a/tools/Makefile.am b/tools/Makefile.am index 68e60cbb..8f72db99 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -39,3 +39,5 @@ event_gui_LDADD = ../src/libinput.la libshared.la $(CAIRO_LIBS) $(GTK_LIBS) $(LI event_gui_CFLAGS = $(CAIRO_CFLAGS) $(GTK_CFLAGS) $(LIBUDEV_CFLAGS) event_gui_LDFLAGS = -no-install endif + +EXTRA_DIST = make-ptraccel-graphs.sh diff --git a/tools/make-ptraccel-graphs.sh b/tools/make-ptraccel-graphs.sh new file mode 100755 index 00000000..901baf9c --- /dev/null +++ b/tools/make-ptraccel-graphs.sh @@ -0,0 +1,79 @@ +#!/bin/bash + +tool=`dirname $0`/ptraccel-debug +gnuplot=/usr/bin/gnuplot + +outfile="ptraccel-linear" +for speed in -1 -0.75 -0.5 -0.25 0 0.5 1; do + $tool --mode=accel --dpi=1000 --filter=linear --speed=$speed > $outfile-$speed.gnuplot +done +$gnuplot < $outfile-$dpi.gnuplot +done + +$gnuplot < $outfile-mouse.gnuplot +$tool --mode=accel --dpi=1000 --filter=touchpad > $outfile-touchpad.gnuplot +$gnuplot < $outfile-mouse.gnuplot +for constaccel in 1 2 3; do + dpi=$((1000/$constaccel)) + $tool --mode=accel --dpi=$dpi --filter=trackpoint > $outfile-trackpoint-$constaccel.gnuplot +done +$gnuplot <