Skip to content

Touchscreen calibration #1

@jordi-s

Description

@jordi-s

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions