How to rotate a display on Ixora board with Apalis imx8

Hello everyone.

We have Ixora board with Apalis imx8, and I have connected a display which needs to be rotated 180degrees. Can you please help me to understand how I can implement this?

Thank you in advance

Hello @hajili,

Thanks for reaching out to us!

Could you please post the output of tdx-info command (more details are here)? This should give us all the necessary device information.

Also could you please give more details regarding the type of display you are using?

Hello @rudhi.tx ,
My colleague is currently on holiday so I will continue this thread with you, the tdx-info command provides the following:

Software summary
Bootloader:               U-Boot
Kernel version:           5.4.193-5.7.0+git.f78299297185 #1-TorizonCore SMP PREEMPT Mon Jul 11 14:42:03 UTC 2022
Kernel command line:      pci=nomsi root=LABEL=otaroot rootfstype=ext4 quiet logo.nologo vt.global_cursor_default=0 plymouth.ignore-serial-consoles splash fbcon=map:3 ostree=/ostree/boot.0/torizon/370c163b48046641fbd550a6604cce7d67ce5bb8acaf405a7e61d044b1a14c66/0
Distro name:              NAME="TorizonCore"
Distro version:           VERSION_ID=5.7.0-build.17
Hostname:                 apalis-imx8-07278690

Hardware info
HW model:                 Toradex Apalis iMX8QM V1.1 on Apalis Ixora V1.2 Carrier Board
Toradex version:          0037 V1.1E
Serial number:            07278690
Processor arch:           aarch64

I tried editing the weston.ini file as suggested here Working with Weston on TorizonCore | Toradex Developer Center , but our etc/xdg/ directory does not contain a weston folder

regarding the display, we’re using a generic HDMI display from wavshare like :

Dear @AhmedMobarez,

Thanks for sending the output from tdx-info.

Great, you are following the right documentation. If the /etc/xdg/weston/weston.ini file doesn’t exist, I would really ask you to check the prerequisites written on that page. You should start a Debian container with Weston Wayland compositor for your i.MX8 based system on module. After that, the weston.ini file should be present.

Please let me know if that helps.

Hello @rudhi.tx ,

Thank you for your reply, I will check with our application container and get back to you.

but just to confirm, this must be done within a container, but cannot be done directly on torizonCore?

Hello @AhmedMobarez,

Just wanted to point out to you that if you installed our TorizonCore image with the evaluation containers, it should already come with a weston container. You will be able to see it if you run the command docker ps -a on the module. In this case, you don’t have to start another weston container as a pre-requisite. You should be able to step into the existing weston container and there you will see the weston.ini file for that container in /etc/xdg/weston directory. You could use this one as a starting point and add your changes or needs on top of it by modifying this file.

but just to confirm, this must be done within a container, but cannot be done directly on torizonCore?

If you want to do work on the weston.ini file from within the native TorizonCore environment you can do so by first writing your own ini file and then starting a weston container by binding this file as a volume mount to the container. This is explained here.

Let me know if you have more questions. Happy to help :slight_smile:

Dear @AhmedMobarez,

Have you been able to get the display rotated? In that case, could you please mark the right answer as a solution?