Rotate or Swap Touch Calibration - Linux

Rotate or Swap Touch Calibration - Linux

How can I rotate or swap the X and Y touch coordinates on Linux?

On Linux systems—or any operating system that does not support DISPLAX Connect—you may need to manually rotate or swap the touch coordinates. This is common on platforms such as Raspbian, Ubuntu Mate, or Raspberry Pi.

This can be done using the xinput utility by applying a Coordinate Transformation Matrix to the DISPLAX Touch Controller.


Step 1: Identify the Touch Input Device

Open a terminal and run:

xinput list

Locate the DISPLAX Touch Controller in the list.

Example

DISPLAX SKIN FIT (3d7be8aa9506c43779d)

You will use this exact device name in the commands below.


Step 2: Apply the Desired Rotation

Replace the device name in the examples below with your own.

Rotate Left (90° Clockwise)

xinput set-prop 'DISPLAX SKIN FIT (3d7be8aa9506c43779d)' 'Coordinate Transformation Matrix' 0 -1 1 1 0 0 0 0 1

Rotate 180° (Inverted)

xinput set-prop 'DISPLAX SKIN FIT (3d7be8aa9506c43779d)' 'Coordinate Transformation Matrix' -1 0 1 0 -1 1 0 0 1

Rotate Right (90° Counterclockwise)

xinput set-prop 'DISPLAX SKIN FIT (3d7be8aa9506c43779d)' 'Coordinate Transformation Matrix' 0 1 0 -1 0 1 0 0 1

Important Note (Persistence)

⚠️ These settings are not persistent across reboots.

To retain the rotation:

  • Create a startup script or service

  • Ensure the appropriate xinput set-prop command runs every time the system starts

Without this, the rotation or axis swap will be lost after reboot.


Summary

When DISPLAX Connect is not available, Linux users can rotate or swap touch coordinates using xinput. Applying the correct transformation matrix ensures accurate touch alignment for rotated or custom display orientations.


    • Related Articles

    • DISPLAX Skin Works With Linux

      Can DISPLAX Skin touch sensors be used with Linux? Yes. DISPLAX products work with Linux, provided the operating system includes a HID multitouch driver. DISPLAX products behave like other standard USB HID devices (such as keyboards, mice, or USB ...
    • One Skin with Dual Monitors (Skin working on just one monitor)

      How can I use one DISPLAX Skin with dual monitors and enable touch on only one screen? When using dual monitors on Ubuntu (or similar Linux distributions), touch input may default to only one display or behave incorrectly. To ensure the DISPLAX Skin ...
    • MacOS Monterey Workaround to Enable Touch

      How do I enable touch on macOS Monterey with DISPLAX controllers? With macOS Monterey and newer versions, native touch input is no longer supported by default for DISPLAX Skin line touch controllers. To restore touch functionality, DISPLAX provides a ...
    • DISPLAX Connect Does Not Start on Ubuntu

      Why does DISPLAX Connect fail to launch on Ubuntu? On some Ubuntu systems, DISPLAX Connect may fail to start because a required Qt library dependency is missing. Qt applications rely on several system libraries that are not always installed by ...
    • Cleaning Methods for DISPLAX Touchscreens

      Cleaning Methods for DISPLAX Touchscreens This technical bulletin describes the recommended cleaning and disinfecting procedures for DISPLAX Touch Modules. These instructions also apply to Coronavirus Disease 2019 (COVID-19) safety protocols. DISPLAX ...