i.mx6q Enable Dual Display of Ubuntu

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

i.mx6q Enable Dual Display of Ubuntu

Jump to solution
18,845 Views
GaoJianzhong
Contributor IV

Hi, all

I want to use ubuntu with dual display on i.mx6q board.

And use LVDS as the primary dispaly and  HDMI as the second one.

My u-boot's kernel parameters is as bellow:

video=mxcfb0:dev=ldb,LDB-XGA,if=RGB666 video=mxcfb1:dev=hdmi,1920x1080M@60,if=RGB24

And my x window configure file is as bellow:

Section "InputDevice"

        Identifier      "Generic Keyboard"

        Driver          "kbd"

        Option          "XkbRules"      "xorg"

        Option          "XkbModel"      "pc105"

        Option          "XkbLayout"     "us"

EndSection

Section "InputDevice"

        Identifier      "Configured Mouse"

        Driver          "mouse"

        Option          "CorePointer"

EndSection

Section "Device"

        Identifier      "LVDS"

       Driver          "vivante"

        Option          "fbdev"         "/dev/fb0"

       Option          "vivante_fbdev" "/dev/fb0"

       Option          "HWcursor"      "false"

EndSection

Section "Device"

        Identifier      "HDMI"

        Driver          "fbdev"                        ///////////////  If i use "vivante", X window start will failed, it seems that "vivante" not support two display?

        Option          "fbdev"         "/dev/fb2"

EndSection

Section "Monitor"

        Identifier      "LVDS Monitor"

EndSection

Section "Monitor"

        Identifier      "HDMI Monitor"

EndSection

Section "Screen"

        Identifier      "LVDS Screen"

        Monitor         "LVDS Monitor"

        Device          "LVDS"

EndSection

Section "Screen"

        Identifier      "HDMI Screen"

        Monitor         "HDMI Monitor"

        Device          "HDMI"

EndSection

Section "ServerLayout"

        Identifier      "Dual Layout"

        Screen 0        "LVDS Screen"

        Screen 1        "HDMI Screen" RightOf "LVDS Screen"

        Option          "Xinerama"  "on"

EndSection

Then i get the two display worked, But somthing is wrong.

On the left of HDMI display there is a copy of lvds.

Is my settings wrong?

Do you know about this?

Thank you

5955_5955.jpgLVDS.jpg5956_5956.jpgHDMI.jpg

Labels (1)
Tags (2)
1 Solution
8,494 Views
PrabhuSundarara
NXP Employee
NXP Employee

we donot have the multiple display feature supported yet in X11 on i.MX6. Other option is to use wayland-weston

View solution in original post

21 Replies
8,444 Views
liyu1
Contributor III

Please tell me your BSP version?

0 Kudos
Reply
8,495 Views
PrabhuSundarara
NXP Employee
NXP Employee

we donot have the multiple display feature supported yet in X11 on i.MX6. Other option is to use wayland-weston

8,457 Views
guotang
Contributor I

Hi Prabhu,

We are developing a medical device using imx6q. It is based on Linux/QT/OpenGL. What's the recommended distribution to use that can enable dual display output (LVDS + HDMI)?

Ubuntu 14.04 + Qt5.5  + X11

or Yocto + Qt + wayland + weston

We don't need the stack be very polish, but should be of product quality.

Thanks,

0 Kudos
Reply
8,469 Views
davecbluechip
Contributor III

Hi Prabhu,

I'm confused by your comment, because I have X11 working with dual displays using Ubuntu rootfs. Please can I describe my set-up and hopefully you can explain what is different about what you are saying...

I am using a custom i.MX6 board (similar to Sabre-SD) with Linux 3.0.35 4.0.0 kernel. Displays are HDMI at 1920x1080 and DVI (converted from parallel LCD interface) at 1920x1080.

I tried using Vivante drivers (in xorg.conf) for both displays, but the second time the driver is loaded it crashes. I then set up xorg.conf using Vivante for one screen and fbdev for the other.

Section "Device"

        Identifier      "Framebuffer Device0"

        Driver          "vivante"

        Option          "fbdev"         "/dev/fb0"

        Option          "vivante_fbdev" "/dev/fb0"

        Option          "HWcursor"      "false"

EndSection

Section "Device"

        Identifier      "Framebuffer Device2"

        Driver          "fbdev"

        Option          "fbdev"         "/dev/fb2"

        Option          "HWcursor"      "false"

EndSection

This works, and shows the Unity desktop on both monitors (with different contents - extended desktop, not cloned). As you would expect, I only get accelerated 3D on the screen that has the Vivante driver - is that what you meant when you said multiple displays are not supported?

Regards,

Dave C

0 Kudos
Reply
8,468 Views
liyu1
Contributor III

I am using a custom i.MX6 board ( Sabre-SD) with Linux 3.0.35 4.1.0 kernel.  I follow your settings, but has no image data output hdmi,  My uboot argument is :


         video=mxcfb0:dev=ldb,LDB-1080P60,if=RGB24 ldb=spl0 video=mxcfb1:dev=hdmi,1920x1080M@60,if=RGB24 video=mxcfb2:off

Now only LVDS Output,HDMI no output 。

Section "Device"

        Identifier      "Framebuffer Device0"

        Driver          "vivante"

        Option          "fbdev"         "/dev/fb0"

        Option          "vivante_fbdev" "/dev/fb0"

        Option          "HWcursor"      "false"

EndSection

Section "Device"

        Identifier      "Framebuffer Device2"

        Driver          "fbdev"

        Option          "fbdev"         "/dev/fb2"

        Option          "HWcursor"      "false"

EndSection

I printed out from the kernel as follows :


mxc_sdc_fb mxc_sdc_fb.0: register mxc display driver ldb

_regulator_get: get() with no identifier

imx-ipuv3 imx-ipuv3.1: IPU DMFC DP HIGH RESOLUTION: 1(0,1), 5B(2~5), 5F(6,7)

Console: switching to colour frame buffer device 240x67

mxc_sdc_fb mxc_sdc_fb.1: register mxc display driver hdmi

mxc_hdmi mxc_hdmi: Detected HDMI controller 0x13:0xa:0xa0:0xc1

fbcvt: 1920x1080@60: CVT Name - 2.073M9

0 Kudos
Reply
8,468 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi Prabhu,

You means building and run wayland-weston on ubuntu of i.mx6, dual display can supported in i.mx6?

Best Regards

Dan

0 Kudos
Reply
8,468 Views
YixingKong
Senior Contributor IV

Jianzhong

What is the status of your issues? If you still has this problem, please keep communicating with PrabhuSundararaj, othewise please share your resolution here and close th DI.

Thanks,

Yixing

0 Kudos
Reply
8,467 Views
PaulDeMetrotion
Senior Contributor I

Did you ever resolve this issue? I am trying to do the same thing with dual video (HDMI + LVDS). I have the same issue with the primary screen being duplicated on the secondary screen.

Has Freescale provided an update for the Vivante driver to support dual video?

0 Kudos
Reply
8,469 Views
RandyKrakora
NXP Employee
NXP Employee

I'd like to see any updates on this issue as well, is there now support from Vivante?

0 Kudos
Reply
8,469 Views
karina_valencia
NXP Apps Support
NXP Apps Support

PrabhuSundararaj  can you continue with  the follow up?

0 Kudos
Reply
8,469 Views
PrabhuSundarara
NXP Employee
NXP Employee

I'm not sure whether you are using QTWaylandCompositor or Weston. If you are using Weston, extending the displays will be possible by adding outputs, which you can see the reference from compositor-drm.c.I'm not sure how to do it using QTWayland.

8,467 Views
PrabhuSundarara
NXP Employee
NXP Employee

using FBDEV EXA, is it possible to extend or clone, when the resolution of the displays are same. When the resolution is same and if you want to use 2 LVDS, it can be achieved by ldb=dul0 in the uboot argument.

For the different resolution and extended display, Xrandr extension support is needed, which Vivante EXA is not supported currently. It will be available in the future releases (end of 2013).

8,470 Views
yevhenyerko
Contributor I

Hi, Prahbu,

Our company is also interested to use combination of LVDS and HDMI displays.

Are there any updates according to this issue?

Thank you,

Yevhen

0 Kudos
Reply
8,470 Views
PaulDeMetrotion
Senior Contributor I

Any updates concerning dual video support for the Vivante driver?

0 Kudos
Reply
8,468 Views
_benjamindubb
Contributor II

Prabhu,

we want to get one big framebuffer that spans 2 identical size displays. Our displays are 1280x800, and so we want the framebuffer to be 2560x800.

How do we do that? Can this be supported with LVDS + HDMI combination? We are using Qt/Wayland instead of X.

Thanks,

-Ben

0 Kudos
Reply
8,470 Views
_benjamindubb
Contributor II

A followup to my earlier question. What is the right way to configure a mirror display? My primary displays is LVDS, and my secondary display is HDMI. Both are the same resolution, 1280x800. I want them to display the same content. What is the proper configuration for Linux BSP?

Thanks

0 Kudos
Reply
8,468 Views
rickchen
Contributor I

Hi Prabhu,

Is it possible to give an example if I want to use dual display with LCD and HDMI.

How to set bootargs and xorg.conf to enable it?

Thanks a lot!

Rick

0 Kudos
Reply
8,470 Views
karina_valencia
NXP Apps Support
NXP Apps Support

Employee

Vivante EXA does not support multiple displays. And this feature is not supported currently.

0 Kudos
Reply
8,468 Views
m_c
Senior Contributor I

Does Vivante EXA support multiple display now (L3.10.17_1.0.0-ga)?

0 Kudos
Reply
8,470 Views
rickchen
Contributor I

Hi Karina,

Do you mean the dual display (both clone and extend) is not support by xorg drdiver(Vivante and fbdev)?

Or is it limited to specific video output path of i.mx6?

Thanks!

0 Kudos
Reply