Updated: April 19, 2023

Calibrate a touchscreen

This utility can only be used on resistive touch displays. If your touch display is capacitive, refer to the Calibrating touch section of this guide.


calib-touch [-config-file=config_file]

Runs on:

QNX Neutrino


Set an alternative configuration filename, as a string (default is /etc/system/config/calib.hostname). This calibration tool requires access to write a configuration file. If /etc/system/config is on a read-only filesystem, then you will need to specify a different path and filename so that calib-touch has permissions to write the configuration file.
Set the display ID (integer) or the connection type (string) to the display. If you provide an integer, Screen interprets the integer as the indication of the display identifier. Otherwise, if you provide a string, Screen interprets the string as the display connection type. The connection type of display port can be one of the following strings:
  • internal
  • composite
  • svideo
  • YPbPr
  • rgb
  • rgbhv
  • dvi
  • hdmi
Exit this application after 5 seconds of inactivity on each calibration screen, or 30 seconds of inactivity on the final calibration screen. Otherwise, the application restarts the calibration procedure.
Set the pixel format, as a string, of the window (default is the pixel format assigned by Screen Graphics Subsystem). The pixel format can be one of the following strings:
  • rgba8888
  • rgbx8888
  • rgb565
Set the swap interval, as an integer (default is 1). The swap interval is the minimum number of vsync periods between image updates.
Set the position, using integer x and y coordinates, of the viewport (default is 0, 0).
Perform a calibration despite the existence of a calibration file. The existing calibration file will be overwritten. You may need to recalibrate if you make any changes related to the touch device (e.g., changing your display or display resolution).
Set the number of samples, as an integer, for each target (default is 10).
Set the size, using integer values for width and height, of the viewport (default is fullscreen).
Set the verbosity level, as an integer (default is 0).
Set the z-order, as an integer, of the window (default is 0).


The calib-touch utility is a command-line tool that's used to calibrate a touchscreen. Once the touchscreen is successfully configured, the calib-touch utility saves a configuration file at /etc/system/config/calib.hostname.

Prior to starting the touch calibration, ensure that you have an appropriate begin mtouch section in your /etc/system/config/mtouch.conf file to define your touch device.

To run the calibration tool:

  1. Ensure that screen is running.
  2. Ensure that mtouch is running.
  3. Run calib-touch from either your starup script or from a shell.
  4. Touch the bull's-eye targets on each of the display screens.
  5. Touch the Accept button to finish calibration.

You can use the Esc key to exit the calibration tool at any time.


Calibrate for fullscreen:


Figure 1. First calibration screen

Figure 2. Second calibration screen

Figure 3. Third calibration screen

Figure 4. Final calibration screen