xinput_calibrator do not work

Hello, everybody,
i have installed an old Lenovo display (1600x900), a Raspberry Pi3 and a 15,4 tochscreen in a picture frame. Everything works but the tochscreen cannot be calibrated. If I enter

xinput_calibrator -v

I get the following:

root@DietPi:~# xinput_calibrator -v
DEBUG: XInputExtension version is 2.3
DEBUG: Skipping virtual master devices and devices without axis valuators.
DEBUG: Skipping device 'Virtual core XTEST pointer' id=4, does not report Absolute events.
DEBUG: Skipping device 'HID 046a:0023' id=7, does not report Absolute events.
DEBUG: Skipping device 'HID 046a:0023' id=8, does not report Absolute events.
DEBUG: Selected device: eGalax Inc. USB TouchController
DEBUG: Not usbtouchscreen calibrator: Not a usbtouchscreen device
DEBUG: Not evdev calibrator: Evdev: invalid "Evdev Axis Calibration" property format
Calibrating standard Xorg driver "eGalax Inc. USB TouchController"
	current calibration values: min_x=0, max_x=65535 and min_y=0, max_y=65535
	If these values are estimated wrong, either supply it manually with the --precalib option, or run the 'get_precalib.sh' script to automatically get it (through HAL).
DEBUG: Found that 'eGalax Inc. USB TouchController' is a sysfs name.
DEBUG: Adding click 0 (X=343, Y=193)
DEBUG: Adding click 1 (X=1281, Y=187)
DEBUG: Adding click 2 (X=332, Y=699)
DEBUG: Adding click 3 (X=1277, Y=703)
	--> Making the calibration permanent <--
DEBUG: Found that 'eGalax Inc. USB TouchController' is a sysfs name.
  copy the snippet below into '/etc/X11/xorg.conf.d/99-calibration.conf' (/usr/share/X11/xorg.conf.d/ in some distro's)
Section "InputClass"
	Identifier	"calibration"
	MatchProduct	"eGalax Inc. USB TouchController"
	Option	"MinX"	"7397"
	Option	"MaxX"	"58814"
	Option	"MinY"	"7634"
	Option	"MaxY"	"57246"
	Option	"SwapXY"	"0" # unless it was already set to 1
	Option	"InvertX"	"0"  # unless it was already set
	Option	"InvertY"	"0"  # unless it was already set
EndSection
root@DietPi:~#

Does anyone recognize an error?
To me, it looks like the calibration was successful, but the resolution of the touchscreen doesn’t seem to match that of the display.

Translated with www.DeepL.com/Translator

Hello me again :wink:

i use now the raspbian distro cause i like the PIXEL desktop. But under raspbian i had have the same problem.

Here is the solution under raspbian, but i think it will be the same for dietpi.

apt-get install xserver-xorg-input-evdev
cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf

Greetings
Poldi

Thanks for sharing this solution.For the LCDs supported by dietpi-config we install this package already but mostly set a default calibration as well. But of course if you use a LCD that is not in the list, you need to do that manually.

Perhaps we can add a “Generic LCD” option that installs the required packages fbset xinput-calibrator xserver-xorg-input-evdev and runs the input calibration command. Perhaps this works even better for supported displays instead of manually create the calibration config :thinking:.

Why cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf was required? The contained settings are applied then two times. This only makes a difference if there is a config file with prefix number between 10 and 45 that as well contains calibration settings, overriding the ones from 10-evdev.conf. But in this case I would check and in case remove those file. Otherwise:
mv /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf so you don’t have the same settings two times.