If you are using touch screen in portrait mode, the touch input may have to be aligned to the new directions. One way to do is
- Install xinput - sudo apt-get install -y xinput
-
export DISPLAY=:0.0 (sets the HDMI monitor as the display)
-
xinput --list (output will be something as follows)
Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Logitech USB Receiver id=7 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Logitech USB Receiver id=6 [slave keyboard (3)]
↳ Logitech USB Receiver id=8 [slave keyboard (3)]
- Look for Touch device id - here it is 7 (logitech USB receiver) and use the ID in the below command (7 is used below)
-
xinput --set-prop 7 'Coordinate Transformation Matrix' 0 1 0 -1 0 1 0 0 1
Comments
0 comments
Please sign in to leave a comment.