<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font color="black">Dear Peter Hutterer,</font><br>
<div class="moz-signature"><font color="black"><br>
>> Driver "evdev" for Ubuntu 16.04, "libinput" for
Ubuntu 18.04/20.04<br>
><br>
> just skip this line and let the default snippets take care
of it. Given that<br>
> this is a server option anyway, you don't need to assign a
driver.<br>
<br>
I removed the "Driver" line and verified that it works well on
Ubuntu 16.04, 18.04, and 20.04. Thank you very much for the
great tip.<br>
<br>
> run xinput watch-props "whatever device name" to check if
it is being reset.<br>
> could be that something in your desktop environment is
interfering, but<br>
> given it works on 20.04 whatever it is is likely fixed
since.<br>
<br>
I added <br>
<font face="monospace"> /home/touch/watch-matrix.sh &<br>
/home/touch/set-matrix.sh &<br>
</font>to ~/.profile.<br>
<br>
<font face="monospace"> touch@touchDT:~$ cat watch-matrix.sh
<br>
#!/bin/bash<br>
/usr/bin/gnome-terminal -e "/usr/bin/xinput watch-props
10"<br>
<br>
touch@touchDT:~$ cat 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>
</font><br>
The output was<br>
<br>
<font face="monospace">Device 'Kortek Kortek Touch':<br>
Device Enabled (161): 1<br>
Coordinate Transformation Matrix (163): 0.000000,
-0.500000, 0.500000, 1.000000, 0.000000, 0.000000, 0.000000,
0.000000, 1.000000<br>
libinput Calibration Matrix (298): 1.000000, 0.000000,
0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000,
1.000000<br>
libinput Calibration Matrix Default (299): 1.000000,
0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000,
0.000000, 1.000000<br>
libinput Send Events Modes Available (281): 1, 0<br>
libinput Send Events Mode Enabled (282): 0, 0<br>
libinput Send Events Mode Enabled Default (283): 0, 0<br>
Device Node (284): "/dev/input/event3"<br>
Device Product ID (285): 10597, 20515<br>
Property 'Coordinate Transformation Matrix' changed.<br>
Coordinate Transformation Matrix (163): 1.000000,
0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000,
0.000000, 1.000000<br>
Property 'Coordinate Transformation Matrix' changed.<br>
Coordinate Transformation Matrix (163): 1.000000,
0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000,
0.000000, 1.000000<br>
Property 'Coordinate Transformation Matrix' changed.<br>
Coordinate Transformation Matrix (163): 1.000000,
0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000,
0.000000, 1.000000<br>
Property 'Coordinate Transformation Matrix' changed.<br>
Coordinate Transformation Matrix (163): 1.000000,
0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000,
0.000000, 1.000000<br>
Property 'Coordinate Transformation Matrix' changed.<br>
Coordinate Transformation Matrix (163): 1.000000,
0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000,
0.000000, 1.000000<br>
Property 'Coordinate Transformation Matrix' changed.<br>
Coordinate Transformation Matrix (163): 1.000000,
0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000,
0.000000, 1.000000<br>
Property 'Coordinate Transformation Matrix' changed.<br>
Coordinate Transformation Matrix (163): 1.000000,
0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000,
0.000000, 1.000000<br>
Property 'Coordinate Transformation Matrix' changed.<br>
Coordinate Transformation Matrix (163): 0.000000,
-0.500000, 0.500000, 1.000000, 0.000000, 0.000000, 0.000000,
0.000000, 1.000000<br>
</font><br>
So I could see that my matrix value is </font><font
color="black"><font color="black">undesirably</font> overwritten
7 times to the identy matrix on Ubuntu 18.04.<br>
Now I want to identify what package I should update on Ubuntu
18.04 to solve this problem.<br>
It is because my customer won't change the OS version and I need
to recommend things to solve it.<br>
Would you recommend which are the possible candidate packages to
update, please?</font></div>
<div class="moz-signature"><font color="black">I'll appreciate any
clue and I'm willing to try as much as I can.<br>
</font></div>
<div class="moz-signature"><font color="black">My current
installation is the clean ubuntu-18.04.5-desktop-amd64.iso.<br>
<br>
> GNOME's mutter has an automatic touch screen mapping using
heuristics. This<br>
> may be the reason it fails on 18.04 if the heuristics get
confused. <br>
<br>
Thank you very much for this great information.<br>
I'll investigate the source code of GNOME's mutter to find why
EETI (eGalaxTouch) works well and the other does not on Ubuntu
20.04 (not 18.04).<br>
</font></div>
<br>
<div class="moz-signature"><font color="black">Best regards,<br>
Hugh Chang<br>
<br>
</font></div>
<blockquote type="cite" cite="mid:20201020224636.GA388311@koala"
style="border:none !important; margin-left:0px !important;
margin-right:0px !important; margin-top:0px !important;
padding-left:0px !important; padding-right:0px !important">
</blockquote>
</body>
</html>