Sample Header Ad - 728x90

How to Invert X-Axis for Touchscreen Calibration on Linux (Ubuntu)

0 votes
1 answer
455 views
I'm encountering an issue with touchscreen calibration on a kiosk system I'm building. The setup consists of Linux Ubuntu with a JavaFX front end and a Python Flask back end. The problem is that touches on the left side of the screen are registered on the right side and vice versa, effectively creating a mirrored X-axis. I've attempted various configurations using xinput and xinput_calibrator, but I haven't been able to resolve the issue. Here is a summary of what I've tried so far: Adjusting the transformation matrix using xinput set-prop commands. Using xinput_calibrator to recalibrate, but the calibration doesn't seem to stick. Here's a sample of the xinput command I've been working with: xinput set-prop "Device Name" "Coordinate Transformation Matrix" 1 0 0 0 1 0 0 0 1 Despite these efforts, the touch input remains inverted along the X-axis. enter image description here Could anyone provide guidance on how to correctly invert the X-axis for the touchscreen? Any insights or alternative approaches would be greatly appreciated. Thank you!
Asked by GetTheLoot (3 rep)
Jun 17, 2024, 07:56 AM
Last activity: Jun 17, 2024, 10:21 AM