IMX8M display rotation

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX8M display rotation

3,268 Views
raman_thapar
Contributor II

Hello,

I am using a iMX8M mini EVK + LVDS panel (with a SN65DSI83 bridge). The panel has a hactive of 1024 and vactive of 600

I see the following in the logs

01-01 00:00:15.032  3130  3130 W display : mode.width   = 1024 px

01-01 00:00:15.032  3130  3130 W display : mode.height  = 600 px

What I need to do is rotate the display so that the longer edge is the height and shorter edge is the width? Can I get some help to identify the changes needed in both Linux and if needed Android to make the system always display content with height 1024 and width 600?

I have tried using the steps here

https://devtalk.nvidia.com/default/topic/1029340/android-development/configure-display-orientation-t... 

which shows no change.

I tried using fbcon:rotate=1 which did not work (Also saw later that the imx8m reference manual mentions fb is no longer used "Frame buffer drivers are supported for i.MX 6 and i.MX 7 but not for i.MX 8")

I have spent a week look at different combinations so any pointers would be very helpful.

Thanks!

0 Kudos
6 Replies

2,124 Views
rizwanm
Contributor II

Hi ,  

Could you please help us how to rotate the display Android 9.0 Pie (i.MX8 MINI)

0 Kudos

2,793 Views
raman_thapar
Contributor II

Does anyone have any ideas here? 

I was able to use SurfaceFlinger to perform the rotation but I am still hoping to get something in the Kernel so that the rotation is performed during the boot up stage as well.

Thanks

0 Kudos

2,793 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Raman,

You can rotate the display by changing the weston.in file, as in the example below:

root@imx8mmevk:~# cat /etc/xdg/weston/weston.ini
[core]
# i.MX: Disable idle timeout
idle-time=0
backend=drm-backend.so

 

[libinput]
touchscreen_calibrator=true

 

[output]
name=DSI-1
mode=720x1280@60
transform=270

 

[screen-share]
command=/usr/bin/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize

Regards

2,793 Views
raman_thapar
Contributor II

Thanks for the reply. That file does not exist on the system. 

Also I would need a way to do this as part of the code/build so that once it is deployed the change takes effect at boot itself.

One other data point 

When I try this command on the MIPI display it rotates fine

content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:1

This same command on the LVDS version has no effect.

0 Kudos

1,525 Views
edward_fu
Contributor III

Have you solved the problem? I have the same problem. 

0 Kudos

2,793 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

You can contact professional services

Design Services | NXP 

Regards

0 Kudos