-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Touchscreen calibration #1
Comments
Did you try this on Ubuntu 18.04? |
Yes (Kubuntu 18.04 to be precise, installed on the i15-TD model), but I suppose that it can be applied to any recent x.org install. |
I attach my configuration file just in case it is useful: |
Thank you. Which touch driver did you use? Can you share that as well please. |
I am not sure if I obtained the driver in the same way as described in this repository. First, I obtained the |
Greetings,
I had some success calibrating the screen with the following procedure:
xinput_calibration -v
/usr/share/X11/xorg.conf.d/99-calibration.conf
. Also take note of the coordinates of points 0 (x0, y0) and point 3 (x3, y3) as given by xinput_calibration.Option "CalibrationMatrix" "a 0 c 0 e f 0 0 1"
where numbers a, c, e and f are calculated as followswidth=1920
height=1200
a = (width * 6 / 8) / (x3 - x0)
c = ((width / 8) - (a * x0)) / width
e = (height * 6 / 8) / (y3 - y0)
f = ((height / 8) - (e * y0)) / height
For example, in my case the result was
Option "CalibrationMatrix" "2.0571 0 0.005 0 -2.7108 0.99247 0 0 1"
That is enough to make the touchscreen work more or less, depending on the accuracy of the input when running
xinput_calibration
I hope that it helps!
The text was updated successfully, but these errors were encountered: