Initial dotfiles for GPD Pocket 3

Tracks auto-rotation daemon, display scale, touch/pen calibration,
libwacom entry, and system udev/xorg configs for DSI-1 panel setup.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-24 21:51:20 +01:00
co-authored by Claude Sonnet 4.6
commit c6806fdcc8
8 changed files with 197 additions and 0 deletions
@@ -0,0 +1,5 @@
Section "InputClass"
Identifier "calibration"
MatchProduct "GXTP7380"
Option "TransformationMatrix" "0 1 0 -1 0 1 0 0 1"
EndSection
@@ -0,0 +1,2 @@
ACTION=="add", KERNEL=="event[0-9]*", ATTRS{name}=="GXTP7380:00 27C6:0113", ENV{LIBINPUT_CALIBRATION_MATRIX}="0 1 0 -1 0 1"
ACTION=="add", KERNEL=="event[0-9]*", ATTRS{name}=="GXTP7380:00 27C6:0113 Stylus", ENV{LIBINPUT_CALIBRATION_MATRIX}="0 1 0 -1 0 1"
+35
View File
@@ -0,0 +1,35 @@
#!/bin/sh
# GPD Pocket 3 screen rotation with hotkeys
# Cycles: right -> inverted -> left -> normal
id_touchscreen="16"
id_stylus="17"
R_0="0 1 0 -1 0 1 0 0 1"
R_90="-1 0 1 0 -1 1 0 0 1"
R_180="0 -1 1 1 0 0 0 0 1"
R_270="1 0 0 0 1 0 0 0 1"
screen_orientation=$(xrandr --query --verbose | grep DSI-1 | awk '{print $5}')
case "$screen_orientation" in
"right" )
xinput set-prop $id_touchscreen 'Coordinate Transformation Matrix' $R_90
xinput set-prop $id_stylus 'Coordinate Transformation Matrix' $R_90
xrandr --output DSI-1 --rotate inverted
;;
"inverted" )
xinput set-prop $id_touchscreen 'Coordinate Transformation Matrix' $R_180
xinput set-prop $id_stylus 'Coordinate Transformation Matrix' $R_180
xrandr --output DSI-1 --rotate left
;;
"left" )
xinput set-prop $id_touchscreen 'Coordinate Transformation Matrix' $R_270
xinput set-prop $id_stylus 'Coordinate Transformation Matrix' $R_270
xrandr --output DSI-1 --rotate normal
;;
"normal" )
xinput set-prop $id_touchscreen 'Coordinate Transformation Matrix' $R_0
xinput set-prop $id_stylus 'Coordinate Transformation Matrix' $R_0
xrandr --output DSI-1 --rotate right
;;
esac