better but still odd
- User
better but still odd
Assistant
If the touchscreen calibration still feels odd after using the aspect ratio adjustments, we might need to fine-tune the calibration matrices. This is often a trial-and-error process to get the perfect feel.
Here are some approaches to improve it:
1. Try Different Calibration Values
You can experiment with slightly different values in your config. For example:
# Try these alternative values for 90° rotation (left) bindsym $mod+Shift+l exec swaymsg output "<OUTPUT>" transform 90 \ && swaymsg input "<TOUCHSCREEN>" calibration_matrix 0 -1.65 1 0.6 0 0 0 0 1 # Alternative for 270° rotation (right) bindsym $mod+Shift+r exec swaymsg output "<OUTPUT>" transform 270 \ && swaymsg input "<TOUCHSCREEN>" calibration_matrix 0 1.65 0 -0.6 0 1 0 0 12. Add Offset Correction
Sometimes the issue is that the touch points need a slight offset. You can adjust the translation components (the third column in the matrix):
# With slight offset correction for 90° rotation bindsym $mod+Shift+l exec swaymsg output "<OUTPUT>" transform 90 \ && swaymsg input "<TOUCHSCREEN>" calibration_matrix 0 -1.78 1.05 0.5625 0 -0.02 0 0 1The
1.05and-0.02values add small offsets to help align touch points.3. Use a Diagnostic Approach
To find the perfect values, you can create a simple diagnostic mode:
# Diagnostic mode - try different calibration values bindsym $mod+Shift+1 exec swaymsg output "<OUTPUT>" transform 90 \ && swaymsg input "<TOUCHSCREEN>" calibration_matrix 0 -1.7 1 0.58 0 0 0 0 1 bindsym $mod+Shift+2 exec swaymsg output "<OUTPUT>" transform 90 \ && swaymsg input "<TOUCHSCREEN>" calibration_matrix 0 -1.8 1 0.55 0 0 0 0 1 bindsym $mod+Shift+3 exec swaymsg output "<OUTPUT>" transform 90 \ && swaymsg input "<TOUCHSCREEN>" calibration_matrix 0 -1.9 1 0.52 0 0 0 0 1This lets you quickly switch between different calibration settings to find what works best.
4. Consider Using libinput's Built-in Calibration
If your device supports it, you might get better results using libinput's calibration tools:
sudo apt install libinput-toolsThen run:
libinput measure touchscreen-calibrationThis will guide you through a calibration process that might give more accurate results.
5. Try a Simpler Approach
Sometimes, the simplest approach works better:
# Simple approach - just swap axes without scaling bindsym $mod+Shift+l exec swaymsg output "<OUTPUT>" transform 90 \ && swaymsg input "<TOUCHSCREEN>" calibration_matrix 0 -1 1 1 0 0 0 0 16. Check for Specific Device Quirks
Some touchscreens have specific quirks or need special handling. You might want to search for your specific device model to see if others have found optimal calibration settings.
Let me know which of these approaches you'd like to try, or if you'd prefer a completely different solution. Finding the perfect calibration often requires some experimentation.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.