I am running Ubuntu 22.04 on a Raspberry Pi 4. I'm using a touch screen display (display is HDMI, touch is USB) which has a native Portrait orientation. The touch works perfectly out of the box in the native portrait orientation.
I want to use the display in landscape orientation, so I have successfully rotated the display 90° using the Settings -> Displays menu in Ubuntu.
My problem is that the touch input does not rotate to match the display orientation, so my touches correspond to incorrect screen coordinates by 90°. All of the previous answers on this topic are for previous Ubuntu versions that use X, not the latest distro which uses Wayland.
Does anyone know how to achieve this on Ubuntu 22.04?
Many thanks in advance for any help!
Josh