I suggest to try the following steps:
-
Install the Touch Display plugin.
-
Execute
sudo apt-get -y install xserver-xorg-video-fbturbo
sudo apt-get -y install xserver-xorg-input-evdev
sudo cp /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
sudo curl -L https://github.com/goodtft/LCD-show/raw/master/usr/mhs35-overlay.dtb -o /boot/overlays/mhs35.dtbo
sudo curl -L https://raw.githubusercontent.com/goodtft/LCD-show/master/usr/99-calibration.conf-mhs35-90 -o /etc/X11/xorg.conf.d/99-calibration.conf
sudo curl -L https://raw.githubusercontent.com/goodtft/LCD-show/master/usr/99-fbturbo.conf -o /usr/share/X11/xorg.conf.d/99-fbturbo.conf
cat >> /boot/userconfig.txt <<EOL
dtparam=spi=on
dtoverlay=mhs35
EOL
-
Reboot.
-
If the display should not have the orientation you are looking for, add a rotation parameter to the overlay in “/boot/userconfig.txt” so it looks something like this:
dtoverlay=mhs35:rotate=90
This would rotate the display (not touch) by 90 degrees clockwise.
-
Reboot once again.
-
If the display rotation appears to be correct now, check if the touch function is already properly aligned to the display. If this should not the be case try to find out by what amount touch has to be rotated, so we can have a look how to correct that.
Edit: Changed the order of commands in step 2.
Edit 2: Changed the calibration file according to post #313 ff. in order to have touch aligned to the display in landscape mode.