Calibrate a touchscreen

Note: You must be root to run this utility.

The calib-touch utility is a window manager. If you have another window manager started by your startup script, it's best to run calib-touch before running your other window manager.


calib-touch [options]

Runs on:

QNX Neutrino


Set an alternative configuration filename (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 or the connection type to the display. If an integer is provided, Screen will interpret the integer as the indication of the display identifier. Otherwise, if a string is provided, Screen will interpret 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
  • hdmk
  • rgbhv
Exit this application after 5 seconds of inactivity on each calibration screen, or 30 seconds of inactivity on the final calibration screen. Otherwise, this application restarts.
Set the pixel format 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 (default is 1).
Set the position 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 for each target (default is 10).
Set the size of the viewport (default is fullscreen).
Set the verbosity level (default is 0).
Set the z-order of the window (default is 0).


The calib-touch utility is 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 graphics.conf file to define your touch device.

To invoke the calibration tool:

  1. Ensure that screen is running.
  2. Run calib-touch from either your startup script or from a shell.
  3. Touch the bull's-eye targets on each of the display screens.
  4. 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