Package: xinput-calibrator
Version: 0.7.5+git20140201-1+b2
Debian 11, Kernel 5.10.105

The output is broken in terms that the resulting file is not compatible anymore 
with current libinput.
The effect is that the Touch sensor calibration is not applied.

Output of actual xinput_calibrator (broken):
Section "InputClass"
        Identifier      "calibration"
        MatchProduct    "1c25000.rtp"
        Option  "MinX"  "117"
        Option  "MaxX"  "65738"
        Option  "MinY"  "1256"
        Option  "MaxY"  "65043"
        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

Output corrected (works):
Section "InputClass"
        Identifier "calibration"
        MatchProduct "1c25000.rtp"
        Option "TransformationMatrix" "1.03995747179332561054 0 
-.02581842994747449101 0 1.07016884940723080440 -.03731343283582089552 0 0 1"
EndSection

Unfortunately the package is very old and not maintained (last commit 9 yo).
This leaves Debian without a proper way to calibrate touch screens (checking on 
sid the package is the same, so still broken).

There's a fork/derived project with added features:
https://github.com/kreijack/xlibinput_calibrator

There are a few other solutions:
- Use a wrapper script, which use Debian provided old xinput_calibrator but with the 
newer "TransformationMatrix", available here:
https://wiki.archlinux.org/title/Talk:Calibrating_Touchscreen#Wrapper_around_xinput_calibrator (tested, working, modified to write directly to conf file)

- use an alternative calibration program, which can deal with the newer 
libinput, for example the fowllowing in python/tk:
https://github.com/reinderien/xcalibrate (tested, working, modified to write directly to conf file)

I could help the maintainer in the process of having a calibration tool up and 
running.

Best regards,
Adamo

--
Adamo Reggiani
Autron srl
via per Mirandola, 8
41033 Concordia s/S (MO) - Italy
C.F. e P.Iva 03069210361
Tel   : +39-0535.57276
Mobile: +39-335-7665877
web:http://www.autron.net
mailto:areggi...@autron.net

PRIVACY
Ai sensi della D.Lgs. 196/03 si precisa che le informazioni contenute in questo 
messaggio sono riservate ed a uso esclusivo del destinatario. Qualora il 
messaggio in parola Le fosse pervenuto per errore, la preghiamo di eliminarlo 
senza copiarlo e di non inoltrarlo a terzi, dandocene gentilmente 
comunicazione. Grazie.

DISCLAIMER
This message, for the law 196/03, may contain confidential and/or privileged 
information. If you are not the intended recipient or authorized to receive 
this for the addressee, you must not use, copy, disclose or take any action 
based on this message or any information herein. If you have received this 
message in error, please advise the sender immediately by reply e-mail and 
delete this message. Thank you for your cooperation.

Reply via email to