i.MX6 rotate display

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

i.MX6 rotate display

4,042 Views
marlonsmith
Contributor IV

Hi everyone,

I'm developing a Qt application for an i.MX6 platform that runs under XWindows.  I'm using Ubuntu 12.04, but I've disabled lightdm and I'm starting the application with startx.

The application plays video with GStreamer and displays images on the screen at the same time.  I need a way to rotate the entire display so that it works in portrait mode as well as landscape mode.

Normally, I would do this using xrandr, but it looks like the vivante driver does not support that functionality.  I can't use the Qt framebuffer driver, because I need XWindows to have GStreamer place my videos properly.

Can you help me find a way to rotate the entire display by 90 degrees?

Thanks!

Marlon

Labels (2)
Tags (2)
0 Kudos
Reply
3 Replies

1,570 Views
jimmychan
NXP TechSupport
NXP TechSupport

you can use  mfw_v4lsink to rotate 90 degree.

For your reference.

https://community.freescale.com/message/341311#341311

0 Kudos
Reply

1,570 Views
marlonsmith
Contributor IV

Thanks Jimmy, but I need to rotate the whole display, including the graphics being displayed by Qt.  For now, I'm using fbdev with Xorg instead of Vivante.  There's a large performance hit, but I think it's my only option.

0 Kudos
Reply

1,570 Views
jérômepouiller
Contributor III

Hello Marlon,

It seems rotation in supported in Xorg since 3.10.17:

https://lists.yoctoproject.org/pipermail/meta-freescale/2014-January/006736.html

Else, I wrote a patch to rotate framebuffer using imx6 hardware acceleration. You still should use fbdev with Xorg, but at least screen rotation won't consume CPU anymore.

My code is available here:

jerome-pouiller/mxc-video-rotate · GitHub

BR,

0 Kudos
Reply