summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/xinput-calibrator/xinput-calibrator
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/xinput-calibrator/xinput-calibrator')
-rw-r--r--meta/recipes-graphics/xinput-calibrator/xinput-calibrator/add-geometry-input-when-calibrating.patch34
1 files changed, 0 insertions, 34 deletions
diff --git a/meta/recipes-graphics/xinput-calibrator/xinput-calibrator/add-geometry-input-when-calibrating.patch b/meta/recipes-graphics/xinput-calibrator/xinput-calibrator/add-geometry-input-when-calibrating.patch
deleted file mode 100644
index 9dc94ae493..0000000000
--- a/meta/recipes-graphics/xinput-calibrator/xinput-calibrator/add-geometry-input-when-calibrating.patch
+++ /dev/null
@@ -1,34 +0,0 @@
1From 1cb83759632bb218559c4d0d65ff79f868c03dc5 Mon Sep 17 00:00:00 2001
2From: "Maxin B. John" <maxin.john@intel.com>
3Date: Tue, 9 Aug 2016 17:03:31 +0300
4Subject: [PATCH] add geometry input when calibrating
5
6Send monitor geometry to xinput_calibrator when running the script
7Update:
8 Remove bashism
9
10Upstream-Status: Inappropriate [no longer maintained]
11
12Signed-off-by: Jonathan David <jonathan.david@ni.com>
13Signed-off-by: Maxin B. John <maxin.john@intel.com>
14---
15 scripts/xinput_calibrator_pointercal.sh | 3 ++-
16 1 file changed, 2 insertions(+), 1 deletion(-)
17
18diff --git a/scripts/xinput_calibrator_pointercal.sh b/scripts/xinput_calibrator_pointercal.sh
19index fccb197..fea7c2f 100755
20--- a/scripts/xinput_calibrator_pointercal.sh
21+++ b/scripts/xinput_calibrator_pointercal.sh
22@@ -24,7 +24,8 @@ if [ -e $CALFILE ] ; then
23 fi
24 fi
25
26-CALDATA=`$BINARY --output-type xinput -v | tee $LOGFILE | grep ' xinput set' | sed 's/^ //g; s/$/;/g'`
27+RESOLUTION=$(xrandr | awk -F '[[:space:]+]' '/ connected/ { if ($3 != "primary") print $3; if ($3 == "primary") print $4 }')
28+CALDATA=`$BINARY --geometry $RESOLUTION --output-type xinput -v | tee $LOGFILE | grep ' xinput set' | sed 's/^ //g; s/$/;/g'`
29 if [ ! -z "$CALDATA" ] ; then
30 echo $CALDATA > $CALFILE
31 echo "Calibration data stored in $CALFILE (log in $LOGFILE)"
32--
332.4.0
34