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.
Hello @sahil.tx ,
Can you share the weston file, that you are using. i will try with that.
Thanks & Regards,
Muthyam D.
Hi @Muthyam ,
It difficult to debug further without the hardware. Please check if your display timings are correct, share the display datasheet with us.
Also, there is no change in weston file except rotation parameter, you can try with the default file available with the image
Hi @Muthyam ,
The timings shared by you and the timings in your patch does not match
Please use the correct timgs.
eg.
panel-timing {
clock-frequency = <74250000>;
hactive = <960>;
vactive = <1080>;
hback-porch = <50>;
hfront-porch = <50>;
vback-porch = <15>;
vfront-porch = <15>;
hsync-len = <40>;
vsync-len = <15>;
hsync-active = <0>;
vsync-active = <0>;
pixelclk-active = <0>;
};
Blacking = front porch + back porch + sync (for both verticla & horizontal), please try and adjust accordingly.
vertical active area = vactive ( vertical resolution)
horizontal active area = hactive (horizontal resolution).
I hope this is help you to get an idea on how to use the display timings
Hello @sahil.tx ,
Display has to 2- channel LVDS support, for that we took double of the frequency and hactive.
Please go through this
Thank You,
Muthyam D.
Hi @Muthyam ,
Please share the datasheet of the display (not the screenshot).
You can upload it to share.toradex.com and share the download link to us.
Hello @sahil.tx ,
Here is the link Download - Toradex File Sharing Platform
And i tried to up the display with suggested panel-timings, But the display unable to turn on for that panel-timings.
Thank You,
Muthyam D.
Hi @Muthyam ,
Taking reference from the video shared, it was working earlier.
Whatever suggestion I am telling is for your reference so that it can help you and you do have to use it as it is.
Please get a clear understanding of the device tree concept and try different settings with overlays as mentioned on your another ongoing post.
If it still does not solve the issue then you may need to send the display to us for further debugging