Problems with display orientation and touch alignment on Pi 5 (DSI)

Hi folks!

I’m running Zynthian Oram-2511 on a Raspberry Pi 5 with a Waveshare 5" DSI Touch A display.

The UI has the wrong orientation being in “portrait”. I managed to rotate it with xrandr, but touchscreen coordinates don’t follow the rotation (touch is sideways), so the Zynthian UI is unusable. I also think that those settings might will be overwritten after zynthian updates.

What I’ve tried:

- Kernel / cmdline rotation doesnt influence Zynthian UI.

- “xrandr” rotation works for the display, but touch does not follow.

- “xinput” coordinate transformation doesnt work.

- Different config.txt flags like swapxy, invxy etc.

Questions:

1. Is there an official Zynthian way to rotate DSI displays and touchscreen (including multitouch) on Pi 5?

2. I’ve seen screenshots showing a “Rotate” (not the “touch rotate”) option in Webconf. Is this available in Oram, and if so how is it enabled?

3. What’s the recommended approach for 90° rotation with touch on DSI (DT overlay, Zynthian config, calibration)?

Thanks in advance,
Netrom.