Rotate LVDS display

Hi,

We’re using the “Capacitive Multi-Touch Display” with the Hannstar 10.1" LVDS display. Our application must be rotated by 180 degree.

I’ve tryied the following:

root@colibri-imx7:~# xrandr -q
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1280 x 800, current 1280 x 800, maximum 1280 x 800
default connected 1280x800+0+0 0mm x 0mm
   1280x800      39.00* 
root@colibri-imx7:~# 

root@colibri-imx7:~# xrandr --output LVDS --rotate right
xrandr: Failed to get size of gamma for output default
warning: output LVDS not found; ignoring

root@colibri-imx7:~# xrandr -o inverted
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  139 (RANDR)
  Minor opcode of failed request:  2 (RRSetScreenConfig)
  Serial number of failed request:  14
  Current serial number in output stream:  14
root@colibri-imx7:~# 

Any ideia?

Environment:

iMX7

Viola

Capacitive Multi-Touch Display

toradex_imx_4.1.15_1.0.0_ga

Best Regards,

Try:

 root@colibri-imx7:~# xrandr --output default --rotate right

Cleiton Bueno

Blog | Linkedin | B2Open

Hi Cleiton,

Dosn’t work. The output is:

root@colibri-imx7:~# xrandr --output default --rotate right
xrandr: output default cannot use rotation "right" reflection "none"

Best regards

It seems that the fbdev DDX driver does not support changing the rotation using xrandr. However, configuring rotation using /etc/X11/xorg.conf works:

Section "Device"
    Identifier  "Kernel Framebuffer Device"
    Driver      "fbdev"
    Option      "fbdev" "/dev/fb0"
    Option      "Rotate" "UD"
EndSection

See also fbdev man page.

I am using Apalis Evaluation Board with Apalis i.MX6Q SOM board system. Software version: Apalis-iMX6_LXDE-Image 2.8b6.184 20190401. I tried the below two options to rotate the display,

[OPTION1]
I tried to edit the file “/etc/X11/xorg.conf” to include the parameter “Option “Rotate” “UD””. after the change, the system cannot display but can boot up properly.

[OPTION2]
when i use the command:
xrandr --output “DISP3 BG - DI1” --rotate right

The display look a bit abnormal and no background at first. i need to move the mouse around and let the display to display it background.

The above 2 methods have the problem to rotate the display properly, Do you have a third option to rotate the display?

Hi @llks, you question will be answered in the new thread you opened.

Thanks and best regards,
Jaski