Touch Screen Calibration Registry Path in Windows
This article provides an overview of where Windows stores system-wide touch screen calibration matrices and digitizer coordinates in the Windows Registry (Regedit). In Windows operating systems, calibration matrices determine how physical digitizer touches translate into on-screen pixel coordinates. Accessing these keys allows administrators and advanced users to inspect, back up, or reset touch screen calibration settings directly.
Primary Registry Locations for Calibration Matrices
Windows stores touch screen calibration matrices in two primary locations within the Registry: the central Tablet PC control key and individual Human Interface Device (HID) hardware instance keys.
1. System-Wide Tablet PC Linearity Data
When you calibrate a touch display using the built-in Windows
calibration tool (tabcal.exe), the transformation matrix is
written to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TabletPC
Under this key, you will find the binary values representing the calibration matrices: * LinearityData: Stores the baseline hardware linearity matrix provided by the device driver or manufacturer. * UserLinearityData: Stores the custom system-wide transformation matrix generated by the user’s manual calibration.
If multiple monitors or digitizers are connected, subkeys matching the specific device IDs are created under this path containing their respective calibration arrays.
2. Device-Specific HID Parameters
For certain HID-compliant touch screens and OEM-specific touch digitizers, hardware-level calibration matrices are mapped directly under the device instance parameters:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\HID\[Device_ID]\[Instance_ID]\Device Parameters
Key binary values under this path include: * CalibrationData: A binary stream containing mapping coordinates (min/max X, Y, and skew parameters). * TouchMappingMatrix: Used by specific touch drivers to store 3x3 transformation matrix coefficients for coordinate rotation and scaling.
Structure of the Calibration Matrix
The calibration data stored in the UserLinearityData or
CalibrationData binary values typically consists of: 1.
Header Information: Specifies the number of calibration
points (such as 4-point, 16-point, or grid-based calibration). 2.
Raw Coordinate Pairs: The raw digitizer input
coordinates captured during calibration. 3. Screen Target
Coordinates: The actual pixel locations on the display that
correspond to each input point.
Resetting Calibration via Registry
To completely reset a corrupted touch screen calibration back to the
factory hardware defaults: 1. Navigate to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TabletPC.
2. Delete the UserLinearityData value (or the
corresponding display subkey). 3. Restart the Touch Keyboard and
Handwriting Panel Service (TabletInputService) or
reboot the system.