Rotating Display in Apalis iMX8

How to rotate display using commands in Apalis iMX8, we have built image in dunfell version. We tried to rotate by changing transform variable in weston.ini file, but it is not worked.

Hi @Muthyam,

Thanks for writing to Toradex community.

Please share complete BSP version details along with steps you followed and changes you made to transform display.
If you see any error logs on debug uart please also share same to further check.

Best Regards
Ritesh Kumar

Hello @ritesh.tx ,
We are using Apalis iMX8 in Dunfell version. Here is the info
Build Configuration:
BB_VERSION = “1.46.0”
BUILD_SYS = “x86_64-linux”
NATIVELSBSTRING = “universal”
TARGET_SYS = “aarch64-tdx-linux”
MACHINE = “apalis-imx8”
DISTRO = “tdx-xwayland”
DISTRO_VERSION = “5.7.2-devel-20240318122012+build.0”
TUNE_FEATURES = “aarch64”
TARGET_FPU = “”

Upon browsing, we found that
[output]
name=LVDS-1
transform=rotate-180

weston.ini (600 Bytes)
boot_data_dunfell.txt (41.5 KB)

will rotate the screen. This function is actually rotated the screen, but the fps is got reduced from 64fps to 21-28 fps. And one more problem is rotation of the display is observed after kernel loading. During boot time the boot data appeared ups and down.
Thank You,
Muthyam D.

Hi @Muthyam ,

I tested with Toradex default multimedia image (BSP 5.7) with the Qt Cinematic demo running and did not see fps getting reduced after rotation.
Let me know how you are testing that?
For bootlogs, there is no direct way to rotate the bootlogs display. You may need to modify uboot source code and test by yourself. Another workaround is to use a rotated spalsh screen image and/or disable boot logs

Hello @sahil.tx ,
For testing first of all, after loading kernel i am modifying the weston.ini, in that i am included
[output]
name=LVDS-1
transform=rotate-180
in that, that i have attached weston file above. After modifying the weston.ini file, i am rebooting system and observing with cinematic experience .
After building the image, i made few changes to kernel,
1.patch (5.9 KB)

And can you tell me, how to disable bootlogs.

Thank You,
Muthyam D.

Hi @Muthyam ,
There is no need to reboot the module, you can simply restart weston services
eg. systemctl restart weston@root.service.
For, disabling boot logs, check this post

Hello @sahil.tx ,
Even after doing systemctl restart weston@root.service also, fps got reduced.
I am attaching a video file for your reference.VID20240328102315.mp4 - Google Drive
My issue is with FPS .
FPS is reducing after screen rotation, Please look into this.
Thank You,
Muthyam D.

Hi @Muthyam,

Restarting of weston service is to save you from the reboot, it has nothing to do with fps.
Also, I have again tested the rotation and did not observed any performance degradation.
Attached is the video of the same.
I request you to check with default Toradex image first (i.e without any modifications).

Hello @sahil.tx ,
Is that default images works for us, Because we are using a different LCD panel. For that panel timings are different from what we get in default image. So our LCD display won’t power on for that default image.
Thank You,
Muthyam D.