Skip to content

Instantly share code, notes, and snippets.

@fijimunkii
Last active April 14, 2022 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fijimunkii/e36fd7c0d7fbeb250bb656ee3e5bb826 to your computer and use it in GitHub Desktop.
Save fijimunkii/e36fd7c0d7fbeb250bb656ee3e5bb826 to your computer and use it in GitHub Desktop.
GPD Pocket 3 setup

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment