prep xubuntu image with https://github.com/fijimunkii/umpc-ubuntu
add the following to /usr/share/X11/xorg.conf.d/20-intel.conf
# fix screen flickering
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "AccelMethod" "sna"
Option "TearFree" "true"
EndSection
add the following as a startup script:
# fix gpd pocket 3 touch coordinates
xinput set-prop "GXTP7380:00 27C6:0113" "Coordinate Transformation Matrix" 1 0 0 0 1 0 0 0 1
add the following as a startup script:
# turn off laptop screen when external is connected
while true; do sleep 2; xrandr | grep 'DP2 connected' && xrandr --output DSI1 --off || xrandr --output DSI1 --auto; done
add XKBOPTIONS="ctrl:nocaps"
to /etc/default/keyboard
, then run sudo dpkg-reconfigure keyboard-configuration