# xinput\_calibrator do not work

**URL:** <https://dietpi.com/forum/t/xinput-calibrator-do-not-work/2974>\
**Category:** Troubleshooting\
**Created:** [22 February 2019 20:17 UTC](https://dietpi.com/forum/t/xinput-calibrator-do-not-work/2974 "2019-02-22T20:17:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PoldiMUC](https://dietpi.com/forum/user_avatar/dietpi.com/poldimuc/32/20_2.png) [@PoldiMUC](https://dietpi.com/forum/u/PoldiMUC)\
**Post date:** [22 February 2019 20:17 UTC](https://dietpi.com/forum/t/xinput-calibrator-do-not-work/2974/1 "2019-02-22T20:17:12Z")

</div>

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

```nohighlight
xinput_calibrator -v

```

I get the following:

```nohighlight
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](http://www.DeepL.com/Translator)

---

<div class="post-metadata">

**Author:** ![PoldiMUC](https://dietpi.com/forum/user_avatar/dietpi.com/poldimuc/32/20_2.png) [@PoldiMUC](https://dietpi.com/forum/u/PoldiMUC)\
**Post date:** [19 March 2019 19:32 UTC](https://dietpi.com/forum/t/xinput-calibrator-do-not-work/2974/2 "2019-03-19T19:32:29Z")

</div>

Hello me again 😉

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.

```nohighlight
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

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [21 March 2019 17:30 UTC](https://dietpi.com/forum/t/xinput-calibrator-do-not-work/2974/3 "2019-03-21T17:30:59Z")

</div>

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 🤔.

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.
