Datasheet

13.3inch HDMI LCD (H)
ROTATION
Display Rotating
1. To rotating the display, you can append this statement to the config file
display_rotate=1 #1: 90; 2: 180; 3: 270
2. Reboot the Raspberry Pi
sudo reboot
Touch Rotating
Note: To rotate the touch, you can re-compile the kernel as well. There is an example
for reference (use 7inch HDMI LCD (C).)
Re-Compilation Method
Another way, you can set the libinput.
1. Install libinput
sudo apt-get install xserver-xorg-input-libinput
2. create an xorg.conf.d folder
sudo mkdir /etc/X11/xorg.conf.d
3. copy file 40-libinput-conf to the folder which we created
sudo cp /usr/share/X11/xorg.conf.d/40-libinput.conf /etc/X11/xorg.conf.d/
4. Append a statement to touchscreen part of the file as below: