Dual screen LCD + HDMI. Is there any hardware limitation?

Started by fab, February 03, 2014, 12:36:41 PM

Previous topic - Next topic

fab

Hi,

Testing with Debian R5,

I tried to enable a dual screen conf (HDMI+LCD) in script.bin, but without any success. This is what I setup in this file:

First trial:
[disp_init]
disp_init_enable = 1
disp_mode = 2
screen0_output_type = 1
screen0_output_mode = 4
screen1_output_type = 3
screen1_output_mode = 4

Second trial:
[disp_init]
disp_init_enable = 1
disp_mode = 4
screen0_output_type = 1
screen0_output_mode = 4
screen1_output_type = 3
screen1_output_mode = 4

Third trial:
[disp_init]
disp_init_enable = 1
disp_mode = 4
screen0_output_type = 3
screen0_output_mode = 4
screen1_output_type = 1
screen1_output_mode = 4

Last trial:
disp_init_enable = 1
disp_mode = 2
screen0_output_type = 3
screen0_output_mode = 4
screen1_output_type = 1
screen1_output_mode = 4

I used this wiki for the setup: http://linux-sunxi.org/Fex_Guide#disp_init_configuration


conclusion: None of them is working. I only got one display at a time (LCD or HDMI but not both).

Is there any hardware limitation which prevent to use two screens at a time?

Fab

progmetalbg

Today ssvb posted howto for dual monitor support in linux-sunxi wiki: http://linux-sunxi.org/DualMonitorSupport. It is for HDMI+VGA but I hope it helps you somehow.

fab

Hi,

I tried the dual monitor wiki from sunxi:

QuoteToday ssvb posted howto for dual monitor support in linux-sunxi wiki: http://linux-sunxi.org/DualMonitorSupport. It is for HDMI+VGA but I hope it helps you somehow.

and got still the same problem. No dual screen, only LCD or HDMI, depending the conf I am writing into script.bin.

With the LCD working, this is what I got from dmesg regarding HDMI:

[    9.334229] ParseEDID
[    9.351222] EDID version: 1.3
[    9.360470] PCLK=148500000 X 1920 2008 2052 2200 Y 1080 1084 1089 1125 fr 60 PP
[    9.371609] Using above mode as preferred EDID mode
[    9.382474] disp_clk: Could not find a matching pll-freq for 172900000 pclk
[    9.395353] disp_clk: Could not find a matching pll-freq for 146850000 pclk
[    9.408142] disp_clk: Could not find a matching pll-freq for 78800000 pclk
[    9.420843] disp_clk: Could not find a matching pll-freq for 53450000 pclk
[    9.433544] disp_clk: Could not find a matching pll-freq for 27100000 pclk
[    9.446241] disp_clk: Could not find a matching pll-freq for 26150000 pclk
[    9.460711] asoc: sndhdmi <-> sunxi-hdmiaudio.0 mapping ok
[   10.039377] disp clks: lcd 74250000 pre_scale 1 hdmi 74250000 pll 297000000 2x 0







fab

Nevertheless, it seems that there is no hardware limitations, as it works quite well under Android 4.2 :(



fab

Many thx for your post
QuoteSomeone added entry in linux-sunxi wiki that seems to be related to your issue:
http://linux-sunxi.org/A20-OLinuXino#Using_LCD_and_HDMI_at_same_time_with_official_Debian_image

It seems that what I was missing, was to have Xorg with two displays, and start xfce4 on BOTH displays.

Fabien

fab

Hi,

Tried the previous post to launch both LCD and HDMI. But it fails!
(startxfce4 -- :0 -config /etc/X11/xorg.conf -novtswitch &>/dev/null) &
In the line above, the "-config" option does not exist for startxfce4. It seems that we need to move the config into a xinitrc file instead....

Fab

fab

Hi,

I double check  xorg log file for both screen, and there is absolutely no error at all. The X servers are up and running as the ps shows:
fabien    1871  0.0  0.0   2484   732 tty1     S+   09:37   0:00 xinit /etc/xdg/xfce4/xinitrc -- /etc/X11/xinit/xserverrc :0 -config xorg.conf
fabien    1872  0.0  0.0   2484   732 tty1     S+   09:37   0:00 xinit /etc/xdg/xfce4/xinitrc -- /etc/X11/xinit/xserverrc :1 -config xorg2.conf
root      1876  1.2  1.8  48204 15064 ?        Ss   09:37   0:01 /usr/bin/X -nolisten tcp :1 -config xorg2.conf -sharevts -novtswitch
root      1877  1.2  1.5  37272 12488 tty3     Ss+  09:37   0:01 /usr/bin/X -nolisten tcp :0 -config xorg.conf -novtswitch
fabien    1886  0.0  0.0   1364   464 tty1     S    09:37   0:00 /bin/sh /etc/xdg/xfce4/xinitrc
fabien    1889  0.0  0.0   1364   464 tty1     S    09:37   0:00 /bin/sh /etc/xdg/xfce4/xinitrc


but NO OUTPUT on the HDMI screen!!

Do I need to load or activate any modules when compiling the kernel??
Any ideas are welcome...

Fab