[oe] [PATCH] xinput-calibrator: fix operation on multihead configuration

Martin Jansa martin.jansa at gmail.com
Fri Dec 23 11:02:43 UTC 2016


This belongs to openembedded-core ML.

On Fri, Dec 23, 2016 at 11:22 AM, Marcel Ziswiler <marcel at ziswiler.com>
wrote:

> From: Marcel Ziswiler <marcel.ziswiler at toradex.com>
>
> As e.g. the Toradex Colibri T20, Apalis/Colibri T30 and Apalis TK1
> modules are multihead capable and if HDMI is plugged in while the xinput
> calibrator was run this led to the following error message:
>
> root at apalis-t30:~# xinput_calibrator_once.sh
> Unknown option: 640x480
>
> Fix this by just using the first detected heads geometry definition.
>
> Signed-off-by: Marcel Ziswiler <marcel.ziswiler at toradex.com>
>
> ---
>
>  .../add-geometry-input-when-calibrating.patch                 | 11
> +++++++----
>  1 file changed, 7 insertions(+), 4 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
> index 9dc94ae..296b075 100644
> --- 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
> @@ -1,6 +1,6 @@
> -From 1cb83759632bb218559c4d0d65ff79f868c03dc5 Mon Sep 17 00:00:00 2001
> -From: "Maxin B. John" <maxin.john at intel.com>
> -Date: Tue, 9 Aug 2016 17:03:31 +0300
> +From d4699c60c773e75a68227f82afea0b607667a4c0 Mon Sep 17 00:00:00 2001
> +From: "Marcel Ziswiler" <marcel.ziswiler at toradex.com>>
> +Date: Thu, 22 Dec 2016 11:34:31 +0100
>  Subject: [PATCH] add geometry input when calibrating
>
>  Send monitor geometry to xinput_calibrator when running the script
> @@ -9,8 +9,11 @@ Update:
>
>  Upstream-Status: Inappropriate [no longer maintained]
>
> +Multihead capability update curtsy Toradex.
> +
>  Signed-off-by: Jonathan David <jonathan.david at ni.com>
>  Signed-off-by: Maxin B. John <maxin.john at intel.com>
> +Signed-off-by: Marcel Ziswiler <marcel.ziswiler at toradex.com>
>  ---
>   scripts/xinput_calibrator_pointercal.sh | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
> @@ -24,7 +27,7 @@ index fccb197..fea7c2f 100755
>   fi
>
>  -CALDATA=`$BINARY --output-type xinput -v | tee $LOGFILE | grep '
> xinput set' | sed 's/^    //g; s/$/;/g'`
> -+RESOLUTION=$(xrandr | awk -F '[[:space:]+]' '/ connected/ { if ($3 !=
> "primary") print $3; if ($3 == "primary") print $4 }')
> ++RESOLUTION=$(xrandr | awk -F '[[:space:]+]' '/ connected/ { if ($3 !=
> "primary") print $3; if ($3 == "primary") print $4 }' | sed q)
>  +CALDATA=`$BINARY --geometry $RESOLUTION --output-type xinput -v | tee
> $LOGFILE | grep '    xinput set' | sed 's/^    //g; s/$/;/g'`
>   if [ ! -z "$CALDATA" ] ; then
>     echo $CALDATA > $CALFILE
> --
> 2.9.3
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>



More information about the Openembedded-devel mailing list