Xorg.conf, InputClass section and calibration

Kernels & Hardware, configuring network, installing services

Xorg.conf, InputClass section and calibration

Postby JirkaRCK » 2018-02-28 14:58

I have an issue with LCD touch screen calibration. I have installed xorg and matchbox-window-manager. I would like to calibrate my touch LCD. I have tried xinput_calibrator. It worked fine and gave me output like that:
Code: Select all
Section "InputClass"
       Driver "libinput"
       MatchProduct "ar1021 I2C Touchscreen"
       Identifier      "calibration"
       Option  "MinX"  "1611"
       Option  "MaxX"  "63760"
       Option  "MinY"  "5234"
       Option  "MaxY"  "62213"
       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

I have added this section into my /etx/X11/xorg.conf file. But without any result. I have been searching through forums and found this another option for section InputClass: Option "TransformationMatrix" "1.08 0.0 -0.04 0.0 1.2 -0.12 0.0 0.0 1.0"

This TransformationMatrix works well, but I don't know how to recalculate MinMax XY output to this matrix (would not like to do it manually). My questions are:
- Why my xorg do not accept Min/Max X/Y format of InputClass section?
- Is there any way how to recalculate this output into the TransformationMatrix automaticly? (xinput_calibrator parameter or some console utility)

Many thanks in advance.
Posts: 2
Joined: 2018-02-27 08:14

Re: Xorg.conf, InputClass section and calibration

Postby bw123 » 2018-02-28 19:31

Have you checked the man page for libinput? Those options don't appear supported but there may be another way to calibrate with that driver.

This page says "recommended evdev touchscreen driver" for this tool.
https://www.freedesktop.org/wiki/Softwa ... alibrator/
User avatar
Posts: 2831
Joined: 2011-05-09 06:02
Location: TN_USA

Return to System configuration

Who is online

Users browsing this forum: shabbythought and 7 guests