Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: mirko.salomoni on April 29, 2014, 12:01:31 PM

Title: control two display
Post by: mirko.salomoni on April 29, 2014, 12:01:31 PM
With A20-OLinuXino-MICRO can I control two display: 1024x768 (VGA) and 1920x1080 (HDMI) at the same time?
Title: Re: control two display
Post by: fab on May 01, 2014, 12:18:22 PM
Despite the sunxi doc says you can, I never been able to control two displays with the olimex A20. I spent many hours trying to tweak the script.fex with many many different values, but all trials were unsuccessfull.

Fabien

Title: Re: control two display
Post by: srxa on May 01, 2014, 12:32:52 PM
Of course you can. But i noticed that VGA display needs to be first one, because otherwise it will not be initialised during boot. I am using two displays, VGA and HDMI without x server, but i am sure that there is way to configure and initialise both displays with x server too.
Title: Re: control two display
Post by: martenjacobs on May 01, 2014, 05:20:15 PM
I have this running on mine.
In my fex:
[disp_init]
disp_init_enable = 1
disp_mode = 2
screen0_output_type = 4
screen0_output_mode = 5
screen1_output_type = 3
screen1_output_mode = 4
fb0_framebuffer_num = 2
fb0_format = 10
fb0_pixel_sequence = 0
fb0_scaler_mode_enable = 0
fb1_framebuffer_num = 2
fb1_format = 10
fb1_pixel_sequence = 0
fb1_scaler_mode_enable = 0


In my /etc/X11/xorg.conf.d/05-displays.conf:

Section "Device"
Identifier "D_VGA"
Driver "fbturbo"
Option "fbdev" "/dev/fb0"
Option "SwapbuffersWait" "true"
# `man fbturbo` to know more options
Option "AccelMethod" "G2D"
EndSection

Section "Monitor"
Identifier "M_VGA"
EndSection

Section "Screen"
Identifier "S_VGA"
Device "D_VGA"
Monitor "M_VGA"
EndSection



Section "Device"
Identifier "D_HDMI"
Driver "fbturbo"
Option "fbdev" "/dev/fb1"
Option "SwapbuffersWait" "true"
# `man fbturbo` to know more options
Option "AccelMethod" "G2D"
EndSection

Section "Monitor"
Identifier "M_HDMI"
EndSection

Section "Screen"
Identifier "S_HDMI"
Device "D_HDMI"
Monitor "M_HDMI"
EndSection


Section "ServerLayout"
Identifier "Main Layout"
Screen 0 "S_VGA"
Screen 1 "S_HDMI" Above "S_VGA"
EndSection


By the way, I am using Arch. If you're on Debian this file may have to be located somewhere else. Furthermore, you may have to compile fbturbo or switch the devices to use fbdev (which does not use sunxi-specific hardware acceleration).
Title: Re: control two display
Post by: jpostma on May 19, 2014, 04:50:50 PM
Hi Marten,

May i ask you a question. I am running Arch also on my A20.

I have output on the HDMI display but i am not able to get my LCD
display running (A13-LCD7 no touch).

I have tried to set the settings according the sunxi fex-guide. Screen0 as LCD
and Screen1 as HDMI, different modes but nothing.
I also tried the script.fex what is supplied with the debian image but nothing.

Any idea what i am missing?

Regards,
johan

Title: Re: control two display
Post by: martenjacobs on May 26, 2014, 04:40:32 PM
Quote from: jpostma on May 19, 2014, 04:50:50 PM
Hi Marten,

May i ask you a question. I am running Arch also on my A20.

I have output on the HDMI display but i am not able to get my LCD
display running (A13-LCD7 no touch).

I have tried to set the settings according the sunxi fex-guide. Screen0 as LCD
and Screen1 as HDMI, different modes but nothing.
I also tried the script.fex what is supplied with the debian image but nothing.

Any idea what i am missing?

Regards,
johan

Hi Johan,

I'm sorry, but I don't think I can help you with that, my system is using the HDMI and VGA connectors. If you didn't get anything at all from the LCD, are you sure it's not broken?

Marten
Title: Re: control two display
Post by: Alex293 on August 12, 2014, 01:16:34 PM
Hi ! Have you found any solution for TS + HDMI ?