How to rotate LCD display on mcimx6q-sdb board?

cancel
Showing results for 
Search instead for 
Did you mean: 

How to rotate LCD display on mcimx6q-sdb board?

Jump to solution
1,738 Views
williamwoo
Contributor II

I am using ubuntu linaro image on mcimx6q-sdb board with imx28 lcd.

It is booted in the landscape display mode and I would like to change the display to the portrait mode.

I tried to find the method to do it, but I was not able to come up with the way to rotate the display.

Could anyone tell me how to set the portrait display mode?

Labels (1)
1 Solution
150 Views
jimmychan
NXP TechSupport
NXP TechSupport

You can try this.

1. export DISPLAY=:0.0

2. xrandr -q ( it will show out the screen information )

3. xrandr -o left

4. xrandr -o right

For more information of the xrandr command, please type xrandr -help.

View solution in original post

0 Kudos
7 Replies
150 Views
billchen
Contributor II

thank you for your reply,  we also can't make xrandr work.

0 Kudos
150 Views
williamwoo
Contributor II

Thanks for your reply.

I tried to change the lcd display mode on imx6q-sdb using xrandr command.

But it is not working well and the command prints a error message.

--------------------------------------------------------------------------------------------

$ xrandr -o left

X Error of failed request:  BadMatch (invalid parameter attributes)

  Major opcode of failed request:  150 (RANDR)

  Minor opcode of failed request:  2 (RRSetScreenConfig)

  Serial number of failed request:  14

  Current serial number in output stream:  14

--------------------------------------------------------------------------------------------

If you know how to solve this problem, please let me know it.

150 Views
heikkiti
Contributor II

Hi

I am getting this same error with xrandr (on SabreLite board with Freescale Ubuntu L3.0.35_4.0.0). Did you find any solution how to rotate?

(Also tried xorg.conf Option “Rotate” “CCW” and bootargs fbcon=rotate:1 as suggested here http://boundarydevices.com/portrait-mode-x-on-i-mx51/ but no effect, and it was for mx51)

0 Kudos
150 Views
heikkiti
Contributor II

Succeeded to rotate to portrait with Rotate option in xorg.conf after changing Driver from vivante to fbdev.

0 Kudos
150 Views
billchen
Contributor II

Can you give the details about using xrandr by changing Driver from vivante to fbdev

0 Kudos
150 Views
heikkiti
Contributor II

Hi. I did not succeed to make xrandr work but succeeded to rotate view by editing "Device" section in xorg.conf:

Driver        "fbdev"

Option        "fbdev"        "/dev/fb0"

Option         "Rotate"    "CW"

0 Kudos
151 Views
jimmychan
NXP TechSupport
NXP TechSupport

You can try this.

1. export DISPLAY=:0.0

2. xrandr -q ( it will show out the screen information )

3. xrandr -o left

4. xrandr -o right

For more information of the xrandr command, please type xrandr -help.

View solution in original post

0 Kudos