From c183530b3820597228fee77d5c4fce35a516021f Mon Sep 17 00:00:00 2001 From: Stacy Harper Date: Thu, 20 May 2021 13:49:22 +0200 Subject: [PATCH] Fix rotation while simplifying id detection. We hardcode the default pinephone screen input id as we now can override it by device. --- scripts/core/sxmo_rotate.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/core/sxmo_rotate.sh b/scripts/core/sxmo_rotate.sh index fdec93f..96e41cf 100755 --- a/scripts/core/sxmo_rotate.sh +++ b/scripts/core/sxmo_rotate.sh @@ -5,9 +5,7 @@ . "$(dirname "$0")/sxmo_common.sh" applyptrmatrix() { - TOUCH_POINTER_ID="${TOUCH_POINTER_ID:- - (xinput | grep -iE 'touchscreen.+pointer' | grep -oE 'id=[0-9]+' | cut -d= -f2) - }" + TOUCH_POINTER_ID="${TOUCH_POINTER_ID:-8}" xinput set-prop "$TOUCH_POINTER_ID" --type=float --type=float "Coordinate Transformation Matrix" "$@" }