no, not better, worse again
- User
no, not better, worse again
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
no, not better, worse again
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
If the touchscreen still feels "odd" even with the rotation matrices, let's try a different approach: use the inverse rotation for the touchscreen to counteract the screen rotation. This way, the touchscreen coordinates rotate in the opposite direction of the screen, ensuring alignment.
Here are the correct matrices for inverse rotation, assuming your touchscreen's coordinate system is standard (0,0 at top-left):
# ─── Normal Orientation ───
bindsym $mod+Shift+o exec swaymsg output "<OUTPUT>" transform normal \
&& swaymsg input "<TOUCHSCREEN>" calibration_matrix 1 0 0 0 1 0 0 0 1
# ─── Rotate Screen 90° Left → Touchscreen rotates 270° Right ───
bindsym $mod+Shift+l exec swaymsg output "<OUTPUT>" transform 90 \
&& swaymsg input "<TOUCHSCREEN>" calibration_matrix 0 1 0 -1 0 0 0 0 1
# ─── Rotate Screen 270° Right → Touchscreen rotates 90° Left ───
bindsym $mod+Shift+r exec swaymsg output "<OUTPUT>" transform 270 \
&& swaymsg input "<TOUCHSCREEN>" calibration_matrix 0 -1 0 1 0 0 0 0 1
# ─── Inverted (180°) ───
bindsym $mod+Shift+i exec swaymsg output "<OUTPUT>" transform 180 \
&& swaymsg input "<TOUCHSCREEN>" calibration_matrix -1 0 1 0 -1 1 0 0 1
Inverse Rotation:
Matrix Details:
0 1 0
-1 0 0
0 0 1
0 -1 0
1 0 0
0 0 1
Verify Touchscreen Coordinates:
libinput debug-events to see raw touchscreen coordinates while touching the screen.Test with calibration Command:
calibration instead of calibration_matrix for simplicity:
# Example for 90° screen rotation
swaymsg input "<TOUCHSCREEN>" calibration 0 1 1 0
This inverts the Y-axis (useful if your touchscreen’s Y-axis is inverted).Adjust for Touchscreen Orientation:
calibration_matrix 0 1 0 1 0 0 0 0 1
<TOUCHSCREEN> and <OUTPUT>):# ─── Rotate Screen + Touchscreen ───
bindsym $mod+Shift+o exec \
swaymsg output "<OUTPUT>" transform normal && \
swaymsg input "<TOUCHSCREEN>" calibration_matrix 1 0 0 0 1 0 0 0 1
bindsym $mod+Shift+l exec \
swaymsg output "<OUTPUT>" transform 90 && \
swaymsg input "<TOUCHSCREEN>" calibration_matrix 0 1 0 -1 0 0 0 0 1
bindsym $mod+Shift+r exec \
swaymsg output "<OUTPUT>" transform 270 && \
swaymsg input "<TOUCHSCREEN>" calibration_matrix 0 -1 0 1 0 0 0 0 1
bindsym $mod+Shift+i exec \
swaymsg output "<OUTPUT>" transform 180 && \
swaymsg input "<TOUCHSCREEN>" calibration_matrix -1 0 1 0 -1 1 0 0 1
Mod+Shift+Ctrl+Q to restart Sway and reload the config.$mod+Shift+l (e.g., Super+Shift+l) and touch the screen to see if it aligns correctly.0.05 in the third column).Let me know if this works better, or if you need further tweaks!