imx6q: Xorg multi screen support

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

imx6q: Xorg multi screen support

4,849 次查看
pj0585
Contributor III
Hi,

I'm using yocto root filesytem on my custom hardware which is based on imx6q_sabresd. I think the following query is generic and is applicable to ltib root filesystem setup as well.

I intend to use two displays (HDMI + LVDS) simultaneously with X-server setup (I need the Xorg xserver, cannot work without it).

The displays work fine one at a time. But I'm not able to get the two screens work simultaneously. I see these lines in : /var/log/Xorg.0.log


[1054136.030] (II) Loading /usr/lib/xorg/modules/drivers/vivante_drv.so
[1054136.030] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[1054136.030] (II) VIVANTE(0): using default device
[1054136.030] (II) Loading /usr/lib/xorg/modules/drivers/vivante_drv.so
[1054136.030] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[1054136.030] (II) VIVANTE(1): using default device
[1054136.030] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[1054136.030] (EE) Screen 1 deleted because of no matching config section.
[1054136.030] (II) UnloadModule: "vivante"
[1054136.030] (II) Unloading vivante
[1054136.031] (II) UnloadModule: "fbdevhw"
[1054136.031] (II) Unloading fbdevhw

The second screen (Screen 1) never comes up, only first screen (Screen 0) comes up.


++++++++++++++++++

My xorg.conf:

Section "ServerLayout"
    Identifier        "Dual Screen"
    Screen    0        "HDMI"
    Screen    1        "LVDS" Below "HDMI"
EndSection

Section "ServerFlags"
    Option "BlankTime"  "0"
    Option "StandbyTime"  "0"
    Option "SuspendTime"  "0"
    Option "OffTime"  "0"
    Option "DefaultServerLayout" "Dual Screen"
EndSection   

Section "Device"
    Identifier  "HDMI Device"
    Driver      "vivante"
    Screen        0
    Option      "fbdev"     "/dev/fb2"
    Option      "vivante_fbdev" "/dev/fb2"
    Option      "HWcursor"  "false"
EndSection

Section "Screen"
    Identifier    "HDMI"
    Device        "HDMI Device"
    Monitor        "HDMI Monitor"
    DefaultDepth    24
    Subsection    "Display"
        Depth    24
        FbBpp    24
        Modes    "1920x1080"
    EndSubsection
EndSection

Section "Monitor"
    Identifier    "HDMI Monitor"
    #DisplaySize    517.5 351.7
    HorizSync    31.5-82.3
    VertRefresh    56-75
    Option "DPMS" "false"
EndSection

Section "Device"
    Identifier  "LVDS Device"
    Driver      "vivante"
    Screen        1
    Option      "fbdev"     "/dev/fb0"
    Option      "vivante_fbdev" "/dev/fb0"
    Option      "HWcursor"  "false"
EndSection

Section "Screen"
    Identifier    "LVDS"
    Device        "LVDS Device"
    Monitor        "LVDS Monitor"
    DefaultDepth    24
    Subsection    "Display"
        Depth    24
        FbBpp    24
        Modes    "1680x1050"
    EndSubsection
EndSection

Section "Monitor"
    Identifier    "LVDS Monitor"
EndSection

Section "DRI"
    Mode 0666
EndSection

+++++++++++++++++++++++++

Is there a mistake in xorg.conf or is it any other known issue/limitation ? Any work around if there is a known issue?

Any inputs will be of help to me!

-Pj

标签 (3)
0 项奖励
回复
4 回复数

1,536 次查看
mstevens
Contributor II

Look at the solution in this thread https://community.nxp.com/thread/452315 

0 项奖励
回复

1,536 次查看
jordanbausmer
Contributor I

Note, the proposed solution in your link above is to use Option "Xinerama" "true" in the xorg.conf file which only works if your application does not need hardware acceleration (i.e. opengl).

0 项奖励
回复

1,536 次查看
RobertSchwebel
Contributor IV

Hi,

can you elaborate why you need x.org? What's your exact setup application wise? We have EGL accelerated multi monitor setups running on i.MX5/i.MX6, but at the moment it really depends on the exact use case.

rsc

0 项奖励
回复

1,536 次查看
pj0585
Contributor III

Hi Robert,

I intend to run Java Swing GUI application, so I need the X-windows setup.

Also, to add to my post: I'm able to simultaneously dump raw image data to both the displays (frame buffers) and that works. So kernel & frame buffer wise the two displays are active and working simultaneously. But as explained I need Xserver for my java application.

It will be interesting to know, if I can run my Java Swing GUI application without Xserver (I'm not sure if that is possible).

-Pj

0 项奖励
回复