I’ve been trying to build a DIY Zynthian but am struggling with touchscreen calibration. It’s running on a Pi5 with the active cooler and the proper Pi power supply. The screen is a 1024 x 600 7 inch HDMI/USB Duinotech (XC9026) that works perfectly out of the box with Raspian (which I have installed on a second SD).
When running Zynthian, the display works well however when using the Generic Display option it wants to run at 1920 x 1080. If I set a lower resolution manually in webconfig it only uses a portion of the screen (with the Oram splash screen visible on the rest of the screen). Most of the other options don’t work well, apart from Waveshare 7 inch 1024 x 600 which gives a nice-looking display.
In all cases the touch response is misaligned. The top-left of the screen responds accurately, but the further I move from that point, the worse it gets. Basically, it looks like touch coordinates are being scaled by roughly 2:1 away from the origin.
I’ve already read almost every relevant thread I could find and have tried the following:
flashing a new (Sandisk Extreme Pro) SD card
changing the HDMI cable
using xinput_calibrator and putting the results in x.conf.d (in both /usr/share/X11/ and /etc/X11/)
changing hdmi_cvt in config
One problem is that whenever I try to run xinput or similar I get the following error: “Unable to connect to X server”
Any ideas?
Otherwise Zynthian is very, very cool and I look forward to playing with it!
Apart from adjusting the resolution, I haven’t really been able to change the touch behaviour at all, temporarily or permanently. In fact the ‘Option “TransformationMatrix” “2 0 0 0 2 0 0 0 1”‘ line in the log above was an attempt to make something happen via X.conf - I originally tried a matirx with 0.5 (to halve the scaling. I think…) and then changed it to 2 in case I was going the wrong way. But niether actually changed the scaling issue in any way.