i.mx6 rotate screen 180

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

i.mx6 rotate screen 180

6,120 Views
preb
Contributor I

Hello,

Do some have some hints on how to rotate the screen 180 degress on i.mx6 ?

I use DirectFB.

I did find this in the linux source code:

/*

* Enumeration of IPU rotation modes

*/

enum ipu_rotate_mode {

    /* Note the enum values correspond to BAM value */

    IPU_ROTATE_NONE = 0,

    IPU_ROTATE_VERT_FLIP = 1,

    IPU_ROTATE_HORIZ_FLIP = 2,

    IPU_ROTATE_180 = 3,

    IPU_ROTATE_90_RIGHT = 4,

    IPU_ROTATE_90_RIGHT_VFLIP = 5,

    IPU_ROTATE_90_RIGHT_HFLIP = 6,

    IPU_ROTATE_90_LEFT = 7,

};

I want to able to rotate the screen in one of these:

1. arch/arm/mach-mx6/*

2. Some scripts when the system have booted.
    Example: echo '1' > /sys/class/graphics/fb0/rotate

    I think this is  IPU_ROTATE_HORIZ_FLIP, but I am not able to get the function IPU_ROTATE_180

3. Parameter to DirectFB. Example: df_andi -dfb:layer-rotate=180

    Does not work.

I did find this example:

ipu-examples release notes - v0.1

Have not tested, but should there not be a simpler way?

Labels (3)
0 Kudos
4 Replies

1,481 Views
bjørnarsyversta
Contributor II

For DirectFB the parameter --dfb:layer-rotate=180 can be used.


Note the type error with only one - over, that was the bug...

0 Kudos

1,481 Views
LeonardoSandova
Specialist I

You can use the mfw_v4lsink/mfw_isink gstreamer elements to rotate. Would that help?

Leo

0 Kudos

1,481 Views
bjørnarsyversta
Contributor II

We are not going to have gstreamer on the system.

0 Kudos

1,481 Views
LeonardoSandova
Specialist I

I am not IPU expert, but you may find what you need on this code https://github.com/rogeriorps/ipu-examples

Leo