AnsweredAssumed Answered

i.mx6 rotate screen 180

Question asked by preb on Aug 16, 2013
Latest reply on Sep 6, 2013 by Bjørnar Syverstad

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?

Outcomes