<div dir="ltr">I have a question about setting the transformation matrix value to rotate touch coordinates on Ubuntu 18.04 and 20.04.<br><br>I used 2 portrait monitors.<br><br><span style="font-family:monospace">+-----------+ +-----------+<br>| 1080x1920 | | 1080x1920 |<br>|  (touch)  | |           |<br>|           | |           |<br>+-----------+ +-----------+</span><br><br>I used "TransformationMatrix" option in a configuration file.<br><br><span style="font-family:monospace">  root@touch-desktop:/usr/share/X11/xorg.conf.d# more 77-touch-matrix.conf<br>  Section "InputClass"<br>    Identifier "Touch rotation"<br>    MatchUSBID "2965:*"<br>    MatchDevicePath "/dev/input/event*"<br>    Driver "evdev" for Ubuntu 16.04, "libinput" for Ubuntu 18.04/20.04<br>    Option "TransformationMatrix" "0 -0.5 0.5 1 0 0 0 0 1"<br>  EndSection<br></span><br>It works well on Ubuntu 16.04 and Ubuntu 20.04, but does not work on Ubuntu 18.04.<br><br>As a workaround, I'm executing "xinput set-prop" as a startup script.<br><br><span style="font-family:monospace">  touch@touchDT:~$ more .profile<br>  /home/touch/set-matrix.sh &<br><br>  touch@touchDT:~$ more set-matrix.sh<br>  #!/bin/bash<br>  sleep 30<br>  /usr/bin/xinput set-prop 10 "Coordinate Transformation Matrix" 0 -0.5 0.5 1 0 0 0 0 1<br></span><br>I don't like it because<br>1) I'm using 30 seconds delay because the matrix is initialized during the startup phase and I want to confirm that my code is executed later.<br>2) The matrix value is sometimes changed while the system is turned on and under use.<br><br>Would you help me please?<br><br>--<br><br>Another related question is about eGalaxTouch.<br>If I change my monitor to a monitor with eGalaxTouch device,<br>the matrix value is automatically updated if I change the geometry of the monitors, only on Ubuntu 20.04.<br><br><span style="font-family:monospace">  touch@touchDT:~/Desktop$ xinput list-props 13<br>  Device 'eGalax Inc. eGalaxTouch P80H84 0765 v00T3_M02 k4.08.165':<br>    Device Enabled (161):   1<br>    Coordinate Transformation Matrix (163): 0.000000, -0.500000, 1.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000<br></span><br>I did not install the driver of it and did not run the daemon program ( /bin/eGTouchD).<br>I wonder how the matrix value is set correctly and touch works well even if I did not specify it on Ubuntu 20.04. For other touch monitors, I need to specify it manually in a configuration file.<br><br><div>Would you let me know where to start my investigation please?</div><div><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">--</div><div dir="ltr">Hugh Chang</div></div></div></div></div></div>