Display Rotation and touchscreen rotation

I am using the Apalis Evaluation Board with Apalis i.MX6Q SOM board and the “Toradex Resistive Touch Display 7" Parallel”. The software version that I use is “Apalis-iMX6_LXDE-Image 2.8b6.184 20190401”. I tried to use the following two methods to rotate the display,

  1. xrandr --output “DISP3 BG - DI1” --rotate left
  2. Edit file “/etc/X11/xorg.conf”,

Section “Device”

Identifier  "i.MX Accelerated Framebuffer Device"
Driver      "vivante"
Option      "fbdev"     "/dev/fb0"
Option      "vivante_fbdev" "/dev/fb0"
Option      "HWcursor"  "false"
Option      "Rotate"  "CW"

EndSection

Section “ServerFlags”

Option "BlankTime"  "0"
Option "StandbyTime"  "0"
Option "SuspendTime"  "0"
Option "OffTime"  "0"

EndSection


Both the above 2 method cannot rotate the display successfully, can you advise what is the correct method to rotate this display and the touchscreen?

HI @llks

I tried the xrandr command your provided and it is working fine.

Have you done any changes to the Software (kernel, devicetree, …)?
Which carrier Board are you using?

Best regards,
Jaski

Please see here for the rotation command that i use:
xrandr --output “DISP3 BG - DI1” --rotate left

Please the photos below for what i see here,

Original display setting without rotation,
[upload|y2XbIlp4OeLtPO+HzfV7nwHSztU=]

Original display setting with xrandr rotation,
[upload|5bpc1DXlo/OMZoQkDNoe0Rr1NJk=]

Original display setting with display rotation and use mouse to move cursor to recover some background image,
[upload|0XF+lgH7fW6DWkun5ZgMDPi/lHQ=]

May i know do you see the same thing as me after using the xrandr to rotate the display? This is using the original software “Apalis-iMX6_LXDE-Image 2.8b6.184 20190401”

This is exactly what I see, so the image rotation is working.

But how come the background image is disappeared after the rotation and only when the Mouse cursor move to there then it’s become recovered? Any way to fix the background display issue?

HI @llks

The rotation by xrandr is probably done using CPU as discussed here. You can use Qt and Qml to rotate your application which works very well.

Further there is also a discussion on the NXP forum where the rotation by GPU is discussed.
You should have a look to this.

Best regards,
Jaski