Anders Petersson

IMX53. BSP linux 11.01. How do I set the screen in portrait mode

Discussion created by Anders Petersson on Nov 24, 2011
Latest reply on Nov 28, 2011 by xizhou wang

Hi !

I have a problem to set the synchronous display in portrait mode.

We are using imx53 with linux bsp 11.01.00 from freescale. The display info is 1080p (1920x1080) . The gui that we are using is QT. The framebuffer driver is mxc_ipuv3_fb.c


I am a little confused how the IPU driver interface works and how to tackle the problem. I can see that the frame buffer driver does not support rotation, even if the underlying layer (fbmem) initiates a /sys interface with function "rotate".

Frambuffer driver initiate the synchronous display with information from the background channel so I guess that I can't use background layer for portrait mode if I don't modify the driver.

The QT use background channel as default and overlay channel for showing videos.

I've looked at IPUV3 lib and the unit tests that come with BSP. I've tried a test with a square as shown through the IPU lib and use overlay channel.  I set the square to rotate 90 and 180 degrees. But I get no response and do not notice any difference. I'm not sure that the software is working properly! and initiates IRT block.

I can imagine that I have two ways to go.
1. modify the frame buffer driver, so that it supports rotation
2 change in QT Linux framebuffer interface so that it uses overlay channel and goes through IPUV3 Lib ..

But is there anyone who has received IPUv3 to rotate images, and have encountered this problem? Some idea how I should do?