Created
February 8, 2026 10:33
-
-
Save xoquox/e3a7d7e12ec341cd5c5c060364bc6ed9 to your computer and use it in GitHub Desktop.
Fix for Goodix Touch Display
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| #only works on X, no touch fix for waylan right now (Feb. 2026) | |
| #wait timer for x to fully start, only needed if you add those scritpt to autostart | |
| sleep 5 | |
| #find the right id | |
| ID=$(xinput list --id-only "pointer:Goodix Capacitive TouchScreen" | head -n2) | |
| #you might have to alter the touch matrix for your device an dislplay rotation | |
| if [ -n "$ID" ]; then | |
| xinput set-prop "$ID" "Coordinate Transformation Matrix" \ | |
| -1 0 1 \ | |
| 0 -1 1 \ | |
| 0 0 1 | |
| fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment