mihailnica10 / OneMix-3-Pro-Autorotation

bash script for screen and touchscreen rotation
2 stars 0 forks source link

Dell Venue 11 Pro 7130 Orientation #1

Open markosjal opened 3 years ago

markosjal commented 3 years ago

I tested this on my new install of Linux Mint 20.1 and my Dell Venue 11 Pro 7130 . It turned out that THe image was always on its side.

`

!/bin/sh

killall monitor-sensor monitor-sensor > /dev/shm/sensor.log 2>&1 & xrandr -o left xinput set-prop 15 'Coordinate Transformation Matrix' 0 -1 1 1 0 0 0 0 1 while inotifywait -e modify /dev/shm/sensor.log; do ORIENTATION=$(tail /dev/shm/sensor.log | grep 'orientation' | tail -1 | grep -oE '[^ ]+$') case "$ORIENTATION" in bottom-up) xrandr -o inverted xinput set-prop 15 'Coordinate Transformation Matrix' 0 1 0 -1 0 1 0 0 1;; normal) xrandr -o normal xinput set-prop 15 'Coordinate Transformation Matrix' 0 -1 1 1 0 0 0 0 1;; right-up) xrandr -o right xinput set-prop 15 'Coordinate Transformation Matrix' 1 0 0 0 1 0 0 0 1;; left-up) xrandr -o left xinput set-prop 15 'Coordinate Transformation Matrix' -1 0 1 0 -1 1 0 0 1;; esac done

`

Now, Immediately when I launch it the display comes out vertical format , even when display is Horizontal(no big deal a rotate then re-synces it.)

The bigger issue is that the mouse is not synchronized with the screen. does this script modify the mouse or only display? I think the "Coordination Transformation Matrix" option is for the mouse but unsure how to modify it.

markosjal commented 3 years ago

ok this problem is with touch screen only, not mouse