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.
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.