I connected yesterday a Raspberry Pi 3 Model B at a 3M touch Systems touchscreen. For installing I followed this tutorial that I found here: Inverted GPIO Touchscreen (Using 99-calibration.conf)
What I did was:
- git clone https://github.com/swkim01/waveshare-dtoverlays.git
- sudo cp waveshare-dtoverlays/waveshare35a-overlay.dtb /boot/overlays/
- sudo nano /boot/config.txt
- I added there: dtoverlay=waveshare35a:rotate=270,swapxy=1
- I ran xinput-calibration
- I added the values resulted from calibration into /X11/xorg.conf.d/99-calibration.conf and the following transformation matrix: 0 1 0 -1 0 1 0 0 1
The 99-calibration file looks like this:
Section "InputClass"
Identifier "calibration"
MatchProduct "3M 3M USB Touchscreen - EX II"
Option "MinX" "57679"
Option "MaxX" "7631"
Option "MinY" "8256"
Option "MaxY" "55187"
Option "TransformationMatrix" "0 1 0 -1 0 1 0 0 1"
EndSection
The problem is that the x axis is inverted. The SwapX or InvertX doesn't work. Also when I installed the raspberry pi the first time x and y axes were swaped. What should I do? Can You give me a Transformation Matrix that works both for x and y and doesn't swap them?