So that is your main problem and the cause why you want to calibrate, I guess?
Maybe put on hold using xinput_calibrator and using “/etc/X11/xorg.conf.d/99-calibration.conf” for the moment and lets have a closer look if and how the touch is inverted or swapped.
For now I suggest to “deactivate” “99-calibration.conf” by renamig it
After rebooting systematically test where the cursor appears when you touch the screen in the corner areas and how it moves when you swipe from left to right and from up to down. Describe the results in detail so I can follow it.
Also please show the contents of “/boot/config,txt” and “/boot/userconfig,txt”:
This appears contradictory. Could you check again and / or clarify please?
From your description of the sliding / moving directions the X and Y axes seem to be swapped.
Now please rename “/etc/X11/xorg.conf.d/99-calibration.conf.bak`” back to “/etc/X11/xorg.conf.d/99-calibration.conf” and describe again where the cursor appears on touching at the four corners also swiping in the four directions.
Your screenshot is showing “/usr/share/X11/xorg.conf.d” while I asked for “99-calibration.conf” in “/etc/X11/xorg.conf.d”. Please check, if the file is present in there.
Ok, that clears things up (I hope). Now I don’t think the axes are swapped. In fact the touch function seems to be not aligned to the display but rotated by 90 degrees (related to the display).
The current content of “/etc/X11/xorg.conf.d/99-calibration.conf” would be of interest.
Section “InputClass”
Identifier “calibration”
MatchProduct “wch.cn USB2IIC_CTP_CONTROL”
Option “MinX” “8109”
Option “MaxX” “8223”
Option “MinY” “127748”
Option “MaxY” “127020”
Option “SwapXY” “1” # unless it was already set to 1
Option “InvertX” “0” # unless it was already set
Option “InvertY” “0” # unless it was already set
EndSection
I assume the file has been named “/etc/X11/xorg.conf.d/99-calibration.conf.bak” while you did the test with the results you desribed in post #45. (?)
If that is correct, now redo the test with the “/etc/X11/xorg.conf.d/99-calibration.conf.bak” renamed back to “/etc/X11/xorg.conf.d/99-calibration.conf” and describe again where the cursor appears on touching at the four corners and also how swiping in the four directions works.
So, the cursor appears at the same positions you described in post #45 no matter if the file is named “99-calibration.conf.bak” or “99-calibration.conf”? Did you reboot or restart the Touch Display plugin after renaming the .conf file?