Can't Calibrate Touchscreen

Hi All,

I’m trying to get HestiaPi running on my Raspberry Pi 3 using this tutorial:

At the LCD section, i can succesfully download the drivers and install them (the LCD is working, i can see the command line interace.

But after that i want to calibrate the LCD using this command (from the same guide):

sudo DISPLAY=:0.0 xinput_calibrator

Then i get the error: Unable to connect to X server

Does anyone know where i’m going wrong? i followed the guide literally, but no success :frowning:

if you run the command locally, that is connect keyboard and mouse on the Pi itself and not through SSH, then you don’t need the DISPLAY=:0.0 part in the command.

I´m afraid it still doesn´t work.

I connected a Keyboard to my Pi, and typed in the command “xinput_calibrator” (without quotes) but it still throws me the error “unable to connect to X server”

Any other ideas what might be going wrong?

are you typing sudo in front?
sudo xinput_calibrator
or over SSH:
sudo DISPLAY=:0.0 xinput_calibrator

I did, but eventually i gave up and bought a Rpi Zero :stuck_out_tongue:
Now everything works, thanks!

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.