LoginSignup
0
0

More than 3 years have passed since last update.

GPD P2 Max Ubuntu Mateインストールメモ

Last updated at Posted at 2020-02-10

インストール前

http://gpd.hk/gpdp2maxfirmwaredriverbios
実行するまえにBIOSのアップデートを行う
公式ツールはWindows用
アップデートしないとタッチパネルが認識しない

インストールについて

https://ubuntu-mate.org/download/
ISOイメージからUSBメモリ起動ディスクを作るツールで
起動メモリを作る
あとは、ガイダンス通り実行する

タッチパネルが狂っている場合

xinputコマンドを実行
Goodix Capacitive TouchScreen id=16 [slave pointer (2)]

が表示されるので、
xinput set-prop '16' 'Coordinate Transformation Matrix' 0 -1 1 1 0 0 0 0 1
を実行すれば、タッチパネルの位置は修正できる。
自動起動するアプリに登録すれば、治った状態で起動できる

xinput set-prop `xinput|grep Goodix|grep pointer|awk -F'id=' '{print $2}'|awk '{print $1}'` 'Coordinate Transformation Matrix' 0 -1 1 1 0 0 0 0 1

回転用のスクリプト

script.sh
#!/bin/sh

case $1 in
"help" )

echo left of help
;;
"left"|"-l" )
xrandr -o left
xinput set-prop `xinput|grep Goodix|grep pointer|awk -F'id=' '{print $2}'|awk '{print $1}'` 'Coordinate Transformation Matrix' -1 0 1 0 -1 1 0 0 1
;;
"right"|"-r" )
xrandr -o right
xinput set-prop `xinput|grep Goodix|grep pointer|awk -F'id=' '{print $2}'|awk '{print $1}'` 'Coordinate Transformation Matrix' 1 0 0 0 1 0 0 0 1
;;
* )
xrandr -o normal
xinput set-prop `xinput|grep Goodix|grep pointer|awk -F'id=' '{print $2}'|awk '{print $1}'` 'Coordinate Transformation Matrix' 0 -1 1 1 0 0 0 0 1
esac
export MOZ_USE_XINPUT2=1
exit

#xinput set-prop '16' 'Coordinate Transformation Matrix' 0 -1 1 1 0 0 0 0 1
xinput set-prop `xinput|grep Goodix|grep pointer|awk -F'id=' '{print $2}'|awk '{print $1}'` 'Coordinate Transformation Matrix' 0 -1 1 1 0 0 0 0 1
export MOZ_USE_XINPUT2=1
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0