more nerdy stuff how I fixed touchscreen in landscape mode on xfce4 debian pinephone...
yes I am that nerdy.
here is the touchscreen
mobian@mobian:~$ sudo dmesg | grep Good
[ 13.940050] Goodix-TS 0-005d: ID 917S, version: 0200
[ 13.942347] Goodix-TS 0-005d: Direct firmware load for goodix_917S_cfg.bin failed with error -2
[ 13.982023] input: Goodix Capacitive TouchScreen as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-005d/input/input2
add rules to file /etc/udev/rules.d/99-goodix-touchscreen.rules
this
ACTION=="add|change", KERNEL=="event[0-9]*", ATTRS{name}=="Goodix Capacitive TouchScreen", ENV{LIBINPUT_CALIBRATION_MATRIX}="0 1 0 -1 0 1 0 0 1"
this makes xfce4 landscape mode work with touchscreen.