Skip to content

Instantly share code, notes, and snippets.

@xoquox
Created February 8, 2026 10:33
Show Gist options
  • Select an option

  • Save xoquox/e3a7d7e12ec341cd5c5c060364bc6ed9 to your computer and use it in GitHub Desktop.

Select an option

Save xoquox/e3a7d7e12ec341cd5c5c060364bc6ed9 to your computer and use it in GitHub Desktop.
Fix for Goodix Touch Display
#!/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