mcuadros / OctoPrint-TFT

A OctoPrint touch interface for TFT touch modules based on GTK+3
GNU Affero General Public License v3.0
171 stars 79 forks source link

Rotation 270 buttons not working #25

Open jhopkins213 opened 6 years ago

jhopkins213 commented 6 years ago

Ok so everything is setup fine except I have my screen rotated 270 landscape everything displays fine but when I touch a command it selects the wrong one I did a ts calibration and that is correct and if I go into startx the touch screen works so not sure what’s going on

longman391 commented 6 years ago

Did you get this figured out? I'm having the same problem...

jameseleach commented 5 years ago

You need a X calibration file.

Create the file with: sudo nano /usr/share/X11/xorg.conf.d/99-calibration.conf

The contents, at least for me, are:

Section "InputClass"
  Identifier "STMPE Touchscreen Calibration"
  MatchProduct "stmpe"
  MatchDevicePath "/dev/input/event*"
  Driver "libinput"
  Option "TransformationMatrix" "0 -1 1 1 0 0 0 0 1"
EndSection