Waveshare 13.3 hdmi/usb touch screen + Pi5 : touch not working

Hello to all !

first of all, please find here the configuration of the system:

HARDWARE

Raspberry Pi 5 Model B Rev 1.0
Audio: Default
Display: WaveShare 10.1 HDMI+USB 1920x1080
Wiring: TOUCH_ONLY
I2C: Not detected
Profile: v5

SYSTEM

Debian GNU/Linux 12 (bookworm)
Build Date: 2025-11-05
Memory: 12% (1010M/8059M)
Internal Storage: 14% (16G/117G ext4)
Temperature: 45.5ºC
Overclock: None

OFTWARE

zyncoder: oram-2511.3 (e4c91c4)
zynthian-ui: oram-2511.3 (b4a605b)
zynthian-sys: oram-2511.3 (a596843)
zynthian-data: oram-2511.3 (e4e24b8)
zynthian-webconf: oram-2511.3 (f851967)

My problem is that : disply works, definition seems good and correct.

I tried the generic touch display… and finally choose to use the waveshare 10.1 display, with following configuration:

hdmi_force_hotplug=1
hdmi_drive=1
hdmi_group=2
hdmi_mode=82
hdmi_cvt=1920 1080 60 6 0 0 0
dtoverlay=vc4-kms-v3d
enable_overscan=1
overscan_left=8
overscan_right=8
overscan_top=0
overscan_bottom=0

But the touch disply seems only limited to a very very small area on left top of the screen…

so i guess there is an issue with calibration…
how to solve this ?

1 Like

by the way, i also tried the method shared by Floyd Steinberg to calibrate the screen, using xinpout-calibrator….

Here what i put in the 99-calibration.conf file :

Section “InputClass”

Identifier “calibration”
MatchProduct “ILITEK ILITEK-TP”
Option “Calibration” " 47 16329 -24 9629"
Option “SwapAxes” “0”

EndSection

No change …

The area where the touch screen works is always a 1cm x1cm area located on top left…

what i did wrong ?

Forgot also to mention that a mouse pointer appears in the middle of the display… while no mouse connected… would it be linked to the problem ?

and last point (promised) : i also tried the calibration function in the ADMIN UI from Zynthian… I see a cross in the middle of the display, touch it… becomes red…. and nothing… so after 15sec, it disappears… unless i made something wrong, this method seems not working for me.

Hi @erresse2 :slight_smile:

I am using a 16” Waveshare HDMI+USB touchscreen display with the same pixel resolution of your model, on one of my custom Zynths.

I didn’t experience any touch calibration or reception issues, except the notorious bug of having to briefly disconnect and reconnect the USB touch cable at startup.

At home I will check my display settings and overlay in webconf > hardware, but I seem to remember that I simply tailored the resolution of an existing Waveshare 7” screen driver.

1 Like

noted, thanks Aethermind. will check the unplug/plug solution also….

I will also try a bash script that i found in the forum to calculate transformation matrix… let’s see this solution.

By the way, as i use a UR12 Rolnad USB sound interface, i also experienced issue with start-up when the interface and the akai APC keyboard are plugged at same time. I used to unplugged the keyboard to let the interface be correctly detected.. I did not think it could also be the same with the touch display. Let’s try this tonight…

thanks

Praise the zynth-lord !!

The USB disonnect/reconnect solved the concern !!!

I presume the USB problem i have with the sound interface is also the same with the touch display… But when Akai APC is connected, the boot of UI is stopped by red ERROR audio/midi message…. And… (my bad), i did not think this problem could also affect the use of the touch functionnality for the display…

Thanks for the tip !! → issue can be considered as SOLVED

Definitley need to upload a mp3 hence :slight_smile:

You should configure zynthian to use the name of the soundcard, not is number. That may be the cause of failure to start.

1 Like

Brilliant! Very well then. :slight_smile: :+1:

i changed audio card to USB generic…. and choose UR12 for the name…

Audio

Soundcard
Generic Usb Device

Driver Config
Soundcard Device
Ur12

Software latency: 10.7ms. (Actual latency may be higher due to soundcard hardware.)
Note: Some parameter values do not work on some soundcards.

Samplerate
48000

Buffer Size
256

Number of Buffers
2

16-bit mode

Soft x-run mode

Jackd Options -P 70 -s -S -d alsa -d hw:UR12 -r 48000 -p 256 -n 2 -X raw
Aubionotes Options -O complex -t 0.5 -s -88 -p yinfft -l 0.5
Mixer Controls

This solved the booting issue when the AKAI APC is already plugged…. but the touch display remains unsuable : the solution in this case is to unplug and plug again .. probably this re-initialize the drive ?? this is far beyond my technical capabilities…

They are seperate issues. The system won’t start unless jack (sound subsystem) is running. Jack won’t start if it doesn’t have a valid soundcard. Using a numeric index of a soundcard is bad because if you have multile devices plugged in that the OS identifies as soundcards, then they may be detected in different orders on each boot and hence the wrong one may be used by jack and, if that isn’t a real soundcard then it will fail. This is why you should use a named device for the soundcard.

The touch interface is a flaw in the touch device and its linux driver (module). It is not being properly reset at boot, e.g. the driver loads but the device is not yet operational. Replugging after boot allows the device driver to react to the device becoming available. This shouldn’t be required but without a real device in our hands, we are unlikely to be able to resolve this. (There are some touchscreens that are simply broken and will never work properly without such work-arounds.)

1 Like

thanks for explanations. very helpful

i knew this story about jackd and UI…

will check what can be done with the touch display driver…

Hdmi works fine… so probably by an automatic delayed restart ? or delaying the driver ?… will see

I documented my trials with a different touch screen in this thread here: USB Touchscreen input scaling issue on 7" 1024x600; I'm almost resolved. One issue left! - #4 by musicToMyFears

I have used the information from the forum to run a script automatically after Zynthian is launched which fixes my calibration issues (a few minutes after start up). Perhaps this might be useful to you?

Good luck!

Hello ! and best wishes to all zynthian people there !

I read this discussion recently, but transformation matrix does not seem to be a solution to the waveshare…

As said, if i start zynthian without the USB connected to the waveshare, and then i connect it after the boot, everything works like a charm !

I contacted waveshare to get a support, they replied and suggested me to test the same with a brand new raspberry pi OS… hence i did it … and it works also like a charm ! If i start the pi 5 with Rasp pi OS (debian), waveshare being connected (hdmi and USB) before the boot, it works !

Which let me think there is probably something in the boot sequence (x server ? zynthian GUI ?)…

Comparing the way rasp pi OS and zytnhian OS are booting the different services could give some ideas… but this is far above my modest knoweldges…

I wonder if have you tried tapping in the top left corner of the screen before unplug and replug? There have been a few reports of folks having non-responsive touch screens until unplug/replug, while others have had scaling issues (myself included in the latter). I ask only because it could be helpful to categorize the issues.

2 Likes

Good tip, always thought that touch was not working, but no i understand that i belong to the scaling problem group. Now i have a new lead, and will pick up on solving that issue. Thx

1 Like

touch is working in a sense that when i tap the left top corner, something happens… it is always different. it looks like the input area is located on top left, but the area is so small that it is impossible to predict anything.

i tried different way to calculate a transofrmation matrix (several tips are given in the forum).

But impossible to have any data from the scripts : no transofrmation matrix given in output of the scripts…

do you mean that i shoudl try to make a X98 config file with a random transformation matrix just to see what would happen ?? i do not exactly understand what are the meaning of the figures of this matrix, i am little afraid about making a matrix with figures i do not know what they do….

I described using xinput calibrator in my very long post over here: USB Touchscreen input scaling issue on 7" 1024x600; I'm almost resolved. One issue left! - #3 by musicToMyFears

I think I also give an example of how you can use the transformation matrix “temporarily” using xinput set-prop

1 Like