please choosego to mobile | Continue to access the PC version
Author: john0815

[SOLVED] Dual Head Display (expanded desktop and mirror desktop (VGA and HDMI)

[Copy link]

7

threads

100

posts

647

credits

Senior member

Rank: 4

credits
647
 Author| Published in 2015-2-8 00:54:01 | Show all floors
gaara replied at 2015-2-7 19:14
That's weird.. What is your Xorg.0.log ? I will compare with mine

Hi

Enclosed you find the log file.

thank you very much for your helping

This thread contains more resources

You need to Log in to download or view,No account?    Register

x

17

threads

212

posts

1374

credits

Gold member

Rank: 6Rank: 6

credits
1374
Published in 2015-2-8 01:52:14 | Show all floors
Edited by gaara at 2015-2-7 19:13

Ok, I see some differences, but I can't say if that's the reason...
- I havn't VDPAU instaled, just lima driver.
- I have errors in X-fonts you don't have    (/usr/share/fonts/X11/100dpi/ etc)
- I have
  1. AIGLX error: dlopen of /usr/lib/arm-linux-gnueabihf/dri/swrast_dri.so failed
Copy code
you don't have ...

What is your uEnv.txt ? ( I think I've found your error, I had a HDMI BAD-pixel-colour-snow screen, with a cursor, but I go back :p )


7

threads

100

posts

647

credits

Senior member

Rank: 4

credits
647
 Author| Published in 2015-2-8 03:18:20 | Show all floors
gaara replied at 2015-2-8 01:52
Ok, I see some differences, but I can't say if that's the reason...
- I havn't VDPAU instaled, just  ...

Enclosed uEnv.txt

With this file I made a lot of experiments.
The HDMI snow happened with the original file and with all other modifications I made.

good luck

This thread contains more resources

You need to Log in to download or view,No account?    Register

x

17

threads

212

posts

1374

credits

Gold member

Rank: 6Rank: 6

credits
1374
Published in 2015-2-8 04:01:17 | Show all floors
Edited by gaara at 2015-2-7 21:20

I was right!
For dual display, you need at least 64Mb for graphical memory, and your uEnv.txt shows 24Mb. Take this one:
  1. bootargs=console=ttyS0,115200 console=tty0 disp.screen1_output_mode=EDID:1280x1024p60 hdmi.audio=EDID:0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait sunxi_fb_mem_reserve=64
  2. aload_script=fatload mmc 0 0x43000000 script.bin;
  3. aload_kernel=fatload mmc 0 0x48000000 uImage; bootm 0x48000000;
  4. uenvcmd=run aload_script aload_kernel
Copy code

I have tried sunxi_fb_mem_reserve=128 but there's no amelioration compare to 64. You can also add in this line (but not at the end of the file)
  1. sunxi_ve_mem_reserve=64 sunxi_g2d_mem_reserved=64
Copy code

But I don't know if it's better, I make some try.
Anyway, it should works with sunxi_fb_mem_reserve=64 alone.

See here

7

threads

100

posts

647

credits

Senior member

Rank: 4

credits
647
 Author| Published in 2015-2-8 05:26:06 | Show all floors
Edited by john0815 at 2015-2-8 05:27

HI gaara!

!!!!Vive la France!!!! - you are the BEST. You cannot imagine how many web sites I read in the last weeks with the thema: dual head, expand display and so on. Nobody posted the solution.
I played with this value till 32 (= 2 x 16 MB for HD-resolution - as written - see below) but I didnt go up to 64 MB.

On the Sunxi page these people write:

sunxi_fb_mem_reserve=16 -- This sets the amount of total reserved memory for the framebuffer to 16MB. The default is 32MB. Because of double buffering Mali may require more than 16MB of framebuffer, so generally only enable this if you don't have Mali installed. 16MB should be sufficient for the largest supported resolution (normally 1920x1080x32bpp).


And now the solution for moving windows from one Monitor to the other is:

In file etc\x11\xorg.conf:

Section "ServerLayout"
        Identifier      "Xinerama"
        Screen          0 "_VGA_"
        Screen          1 "_HDMI_" Rightof "_VGA_"
        Option                "Xinerama" "on"
        Option         "Clone" "off"
EndSection


I will put your solution into the first post of this threat.

The very best from Austria

17

threads

212

posts

1374

credits

Gold member

Rank: 6Rank: 6

credits
1374
Published in 2015-2-8 07:22:55 | Show all floors
Youhouu !!
I wouldn't have found without your first xorg.conf, I was far of it !
But I'm glad we've found the solution.
They say 16Mb should be sufficient, but I think it's just for one screen.

Thanks for the option, I thought I've tried it, but I will try again tomorrow.


17

threads

212

posts

1374

credits

Gold member

Rank: 6Rank: 6

credits
1374
Published in 2015-2-9 21:17:37 | Show all floors
Edited by gaara at 2015-2-9 14:25

Hi john0815,
For me, the option Xinerama doesn't work.
Option                "Xinerama" "on"    ->    I have a clone screen, with same resolution
and
Option                "Xinerama" "off"    ->    I have a Dual-head, but can't move windows between monitors.

All the other parameters are like yours.

Question: What is the result with your OPi of this command ?
  1. xrandr
Copy code



7

threads

100

posts

647

credits

Senior member

Rank: 4

credits
647
 Author| Published in 2015-2-10 00:00:08 | Show all floors
Edited by john0815 at 2015-2-10 00:12
gaara replied at 2015-2-9 21:17
Hi john0815,
For me, the option Xinerama doesn't work.
Option                "Xinerama" "on"    ->   ...

HI

If you want MIRROR set disp_mode=4
If you want EXPANDED DESKTOP  set disp_mode=2

in script.fex

[disp_init]
disp_init_enable = 1
disp_mode = 2                           (2= Dual Head - Expand Desktop, 4= Clone Screen or Mirror) !!! --> remove the pink letters from the file

AND

in xorg.conf do as descirbed below.


Section "ServerLayout"
            Identifier      "Xinerama"
            Screen          0 "_VGA_"
            Screen          1 "_HDMI_" Leftof "_VGA_" write Rightof instead of Leftof if your HDMI Monitor is right of the VGA Monitor
            Option                "Xinerama" "on"            commend with # this line for clone or mirror display
            Option         "Clone" "off"                         commend with # this line for clone or mirror display
    EndSection
_______________________

xrandr give back "shit".
When I have mirror, it says that he cannot find gamma (I dont know at this moment what exactly because I dont have the Orangepi with me) and he never has told me that he find 2 Monitors.
When I have xinerama on, the reply of xrandr is one stupid line --> I change this into the real reply when I am at home).

BUT: it works mirror and xinerama and so at the moment it is not important for me what xrandr says.

One interesting thing is that with xinerama I see the coursor on HDMI Monitor with fbturbo. In mirror mode I have to use the fbdev driver to see a coursor on HDMI monitor.





17

threads

212

posts

1374

credits

Gold member

Rank: 6Rank: 6

credits
1374
Published in 2015-2-10 19:14:49 | Show all floors
Ok, thanks. But I am already configured like this (disp_mode = 2 + xorg exactly the same)
But it doesn't matter, it was just to play. I don't think I will use the dualhead. It was just to play ;)

The result of xrandr is for another question, and I need it more than the dual display.
I would like to power on/off the screen with SSH using "xset dpms force off" or "xset dpms force on" but ON doesn't work with VGA. Only with HDMI.
Don't worry about that, it's not the subject of this thread. I just see that your xrandr is the same as mine!!

Anyway, good job for the tutorial, hope it will help another user

16

threads

104

posts

989

credits

Senior member

Rank: 4

credits
989
Published in 2015-5-17 16:53:35 | Show all floors
Edited by tokka at 2015-5-18 20:05

Hi guys, i'm trying to set up a clone desktop, but i found some issues
To have a clone desk the string "leftof" or "rightof" must be removed in server layout, and in some case i have to uncomment the option "xinerama" to make work the remote desktop.
The most noising thing is that i have the mouse pointer only on screen0.
For me the sunxi_fb_mem seems to have no effect, which kernel are you using? i have 3.4.107.
Thanks

Edit: after lot of tests, if i active more than one monitor i cannot paly movies (black screen). If you have suggestions, they are welcome
Cheers
OrangePi A20, with Qbee-X_testing

Still waiting for refund/replacement of no working op+2e bought on 11/11 >_<...really serious company
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list