xinput set-prop 'pointer:Goodix Capacitive TouchScreen' 'Coordinate Transformation Matrix' 0 1 0 -1 0 1 0 0 1 |
sudo nano /usr/share/X11/xorg.conf.d/40-libinput.conf |
Option "TransformationMatrix" "0 1 0 -1 0 1 0 0 1" |
"0 1 0 -1 0 1 0 0 1" #90度(右旋轉) "-1 0 1 0 -1 1 0 0 1" #180度(上下顛倒) "0 -1 1 1 0 0 0 0 1" #270度(左旋轉) |
加入完後,這一段應該長這樣:
Section "InputClass" Indentifier "libinput touchscreen catchall" MatchIsTouchscreen "on" Option "TransformationMatrix" "0 1 0 -1 0 1 0 0 1" MatchDevicePath "/dev/input/event*" Driver "libinput" EndSection |
測試環(huán)境: ubuntu unity 23.10.1