I want to calibrate a touchscreen named "eGalax Inc. USB TouchController" on my Raspberry Pi. I think X and Y axes of the touchscreen are inverted. I used xinput_calibrator for this purpose. When I followed the xinput_calibrator instructions, it printed the following output:

Calibrating standard Xorg driver "eGalax Inc. USB TouchController"
    current calibration values: min_x=0, max_x=65535 and min_y=0, max_y=65535
    If these values are estimated wrong, either supply it manually with the --precalib option, or run the 'get_precalib.sh' script to automatically get it (through HAL).
    --> Making the calibration permanent <--
  copy the snippet below into '/etc/X11/xorg.conf.d/99-calibration.conf' (/usr/share/X11/xorg.conf.d/ in some distro's)
Section "InputClass"
    Identifier  "calibration"
    MatchProduct    "eGalax Inc. USB TouchController"
    Option  "MinX"  "20697"
    Option  "MaxX"  "20595"
    Option  "MinY"  "53036"
    Option  "MaxY"  "53090"
    Option  "SwapXY"    "1" # unless it was already set to 1
    Option  "InvertX"   "0"  # unless it was already set
    Option  "InvertY"   "0"  # unless it was already set

And it made no changes in the touchscreen behavior (It is not calibrated yet).

After that, I created the '/etc/X11/xorg.conf.d' directory and copied the snippet above (Section ... EndSection) into the '99-calibration.conf' in that directory as stated above, and finally rebooted the Raspberry Pi. But it didn't make any changes. What's going wrong?

migrated from superuser.com Jun 17 at 19:49

This question came from our site for computer enthusiasts and power users.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.