Install OctoPrint

Update all packages

SSH into Pi and run:
sudo apt-get update
sudo apt-get upgrade

Download and install display driver(more info here)


Edit 99-calibration.conf

To open 99-calibration.conf run:
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf

Apend following lines

Press CTRL + O to save and CTRL + X to exit.

Install TouchUI

Access OctoPrint through web interface and install TouchUI plugin

To setup TouchUI autostartrun:
git clone ~/TouchUI-autostart/
sudo ~/TouchUI-autostart/helpers/install

Restart Pi
sudo reboot

Pi should boot into TouchUI interface.

## Calibrate display

Run to display calibration screen:
DISPLAY=:0.0 xinput_calibrator

Touch all four point on screen with stylus. Result should look similar to following image.

Copy calibration values eg. "248 4048 3842 200"

Open 99-calibration.conf:
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf

Edit calibration values you got from previous procedure.
Press CTRL + O to save and CTRL + X to exit.

Rotating screen

If you need to rotate screen 180 degrees, so usb ports on Pi are facing left, continue with:
sudo nano /boot/config.txt

Add rotate=270 inside following line
Press CTRL + O to save and CTRL + X to exit.


Last modified: February 4, 2022
Notify of
Inline Feedbacks
View all comments