Skip to content
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

Open
jordi-s opened this issue Dec 21, 2019 · 5 comments
Open

Touchscreen calibration #1

jordi-s opened this issue Dec 21, 2019 · 5 comments

Comments

@jordi-s
Copy link

jordi-s commented Dec 21, 2019

Greetings,

I had some success calibrating the screen with the following procedure:

  • Run xinput_calibration -v
  • Add the section that xinput_calibration suggests to /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.
  • Now leave as the only option in that section Option "CalibrationMatrix" "a 0 c 0 e f 0 0 1" where numbers a, c, e and f are calculated as follows
    width=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!

@junocomp
Copy link
Owner

Did you try this on Ubuntu 18.04?

@jordi-s
Copy link
Author

jordi-s commented Dec 21, 2019

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.

@jordi-s
Copy link
Author

jordi-s commented Dec 21, 2019

I attach my configuration file just in case it is useful:
99-calibration.conf.zip

@junocomp
Copy link
Owner

Thank you. Which touch driver did you use? Can you share that as well please.

@jordi-s
Copy link
Author

jordi-s commented Dec 23, 2019

I am not sure if I obtained the driver in the same way as described in this repository.

First, I obtained the SileadTouch.sys windows driver. Then, with the following perl script I extracted a file that was automatically named firmware_00.fw. I renamed it to mssl1680.fw and copied it to /lib/firmware/silead/mssl1680.fw. After reboot, I had the touchscreen recognized, but without calibration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants