How to rotate touch screen input on ubuntu-frame?

Ubuntu Version:

Ubuntu Core 24

Problem Description:

My display is physically installed upside down in my embedded device, due to physical constraints. I have rotated the video output at the firmware level, but the USB touch inputs are not rotated and so don’t match the app running in Ubuntu Frame. I can’t find in the docs where to rotate the touch inputs, or if this is even possible since I’m new to Ubuntu Frame.

Relevant System Information:

Ubuntu Core 24 running on Raspberry Pi 5.
ubuntu-frame version 211-mir2.20.1, Rev 12494 24/stable

In case it’s relevant, I rotated the video output by appending: video=HDMI-A-1:panel_orientation=upside_down in cmdline.txt (in Raspberry Pi image after it was initially built).

1 Like

That really depends on your peripheral. What touch display are you using?

Here’s the output of sudo libinput.list-devices:

Device: ILITEK ̚ EK-TI͌IT
Kernel: /dev/input/event4
Group: 1
Seat: seat0, default
Size: 146x86mm
Capabilities: touch
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: n/a
Nat.scrolling: n/a
Middle emulation: n/a
Calibration: identity matrix
Scroll methods: none
Click methods: none
Disable-w-typing: n/a
Accel profiles: n/a
Rotation: n/a

Device: vc4-hdmi-0
Kernel: /dev/input/event0
Group: 3
Seat: seat0, default
Capabilities: keyboard pointer
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: disabled
Nat.scrolling: disabled
Middle emulation: n/a
Calibration: n/a
Scroll methods: *button
Click methods: none
Disable-w-typing: n/a
Accel profiles: flat *adaptive
Rotation: n/a

Device: vc4-hdmi-1
Kernel: /dev/input/event2
Group: 4
Seat: seat0, default
Capabilities: keyboard pointer
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: disabled
Nat.scrolling: disabled
Middle emulation: n/a
Calibration: n/a
Scroll methods: *button
Click methods: none
Disable-w-typing: n/a
Accel profiles: flat *adaptive
Rotation: n/a

The only other thing I can tell you is that it’s a HDMI display with a USB connection for passing the touch events.

Hope that helps?

I have moved your post over to the ubuntu-frame help category, here people will rather know more …

(I actually wonder if you should use the ubuntu-frame configuration to achieve the rotation instead of doing it though the RPi bootloader)

I would first try the possible solution by @ogra and completely use ubuntu-frame configuration. Or maybe you can calibrate the touchscreen device.

This topic was automatically closed after 30 days. New replies are no longer allowed.