četrtek, 21. februar 2013

Touchscreen calibration under Linux

If you have a touchscreen and want to caibrate it follow this steps:

  • sudo apt-get install xinput-calibrator
  • run it. You can run it from console or find it somewhere in your menu
  • after calibration you will get an output in your console and the line you should copy looks something like this:
    Option "Calibration" "77 3935 115 3984"
  • sudo vi /usr/share/X11/xorg.conf.d/10-evdev.conf and copy previous line in touchscreen section:
    Section "InputClass"        Identifier "evdev touchscreen catchall"
            MatchIsTouchscreen "on"        MatchDevicePath "/dev/input/event*"        Driver "evdev"        Option "Calibration" "77 3935 115 3984"EndSection
I've used xinput_calibrator on Ubuntu 10.11 and 12.04.

Objavite komentar