MultiMonitorSetup

Version 5 (lynxis, 01/10/2012 16:07)

1 1 lynxis
h1. MultiMonitorSetup
2 1 lynxis
3 1 lynxis
You can use libavg in a multimonitor Setup as long libavg can create *one* OpenGL context over all screens.
4 1 lynxis
This works with Intel, ATI and Nvidia.
5 1 lynxis
Most graphiccards only allows 2 screen(also named heads) at a time. There are some cards which supports more 
6 1 lynxis
than these.
7 1 lynxis
8 1 lynxis
h2. Intel
9 1 lynxis
10 1 lynxis
_Tested under Linux with Intel HD4500ironlake using opensource drivers_
11 1 lynxis
Use xrandr or gnome-settings to add your screen
12 3 lynxis
<pre>
13 1 lynxis
xrandr --output VGA1 --left-of LVDS1 --auto
14 3 lynxis
</pre>
15 1 lynxis
You can also use xorg.conf to manual configure the same settings you changed over xrandr
16 1 lynxis
17 1 lynxis
TODO: check ViewPort/VirtualScreenSize - it's missing + testing this!
18 1 lynxis
<pre>
19 1 lynxis
Section "ServerLayout"
20 1 lynxis
        Identifier     "X.org Configured"
21 1 lynxis
        Screen      0  "aticonfig-Screen[0]-0" 0 0
22 1 lynxis
EndSection
23 1 lynxis
24 1 lynxis
Section "Device"
25 1 lynxis
        Identifier  "aticonfig-Device[0]-0"
26 1 lynxis
        Driver      "fglrx"
27 1 lynxis
        BusID       "PCI:4:0:0"
28 1 lynxis
    Option      "Monitor-DFP2" "Unten Monitor"
29 1 lynxis
    Option      "Monitor-CRT2" "Oben Monitor"
30 1 lynxis
EndSection
31 1 lynxis
32 1 lynxis
Section "Monitor"
33 1 lynxis
        Identifier      "Unten Monitor"
34 1 lynxis
EndSection
35 1 lynxis
36 1 lynxis
Section "Monitor"
37 1 lynxis
        Identifier      "Oben Monitor"
38 1 lynxis
        Option          "Above" "Unten Monitor"
39 1 lynxis
EndSection
40 1 lynxis
41 1 lynxis
Section "Screen"
42 1 lynxis
        Identifier "aticonfig-Screen[0]-0"
43 1 lynxis
        Device     "aticonfig-Device[0]-0"
44 1 lynxis
        DefaultDepth     24
45 1 lynxis
        SubSection "Display"
46 1 lynxis
                Viewport   0 0
47 1 lynxis
                Depth     24
48 1 lynxis
        EndSubSection
49 1 lynxis
EndSection
50 1 lynxis
</pre>
51 1 lynxis
52 1 lynxis
h2. AMD/ATI
53 1 lynxis
54 1 lynxis
_Tested with ATI HD 6950 using proprietary drivers from amd_
55 1 lynxis
Same way like Intel. Use xrandr-cmdline or use system graphic or you can configure it over xorg.conf
56 1 lynxis
57 1 lynxis
h2. Nvidia
58 1 lynxis
59 1 lynxis
_Tested with GTX 660 Ti using proprietary drivers from nvidia_
60 5 lynxis
You have to use TwinView. (even for more than 2 screens)
61 5 lynxis
To setup a correct metamodes line I used the @/var/log/Xorg.0.log@ to know
62 5 lynxis
which screen is connected to which connector(example: DFP-0).
63 5 lynxis
<pre>
64 5 lynxis
[...]
65 5 lynxis
Missing Example Log files
66 5 lynxis
[...]
67 5 lynxis
</pre>
68 5 lynxis
<pre>
69 5 lynxis
Option          "metamodes" "<CONNECTOR>: <Resolution_Frequency> +<x-pos>+<y-pos> [[, DFP-1: 1920x1200_60 +1366+0], ...]
70 5 lynxis
</pre>
71 1 lynxis
<pre>
72 1 lynxis
Section "Device"
73 1 lynxis
        Identifier      "Device0"
74 1 lynxis
        Driver          "nvidia"
75 1 lynxis
        BusId       "PCI:1:0:0"
76 1 lynxis
EndSection
77 1 lynxis
78 1 lynxis
Section "Screen"
79 1 lynxis
        Identifier      "Screen0"
80 1 lynxis
        Device          "Device0"
81 1 lynxis
        DefaultDepth    24
82 1 lynxis
        Option          "TwinView" "1"
83 1 lynxis
        Option          "TwinViewXineramaInfoOrder" "DFP-0"
84 1 lynxis
#Option          "metamodes" "DFP-0: 1366x768_60 +0+0, DFP-1: 1920x1200_60 +1366+0, DFP-2: 1920x1200_60 +3286+0"
85 1 lynxis
        Option          "metamodes" "DFP-0: 1920x1200_60 +0+0, DFP-1: 1920x1200_60 +1366+0, DFP-2: 1366x768_60 +3286+0"
86 1 lynxis
        SubSection      "Display"
87 1 lynxis
                Depth       24
88 1 lynxis
        EndSubSection
89 1 lynxis
EndSection
90 1 lynxis
91 2 lynxis
</pre>
92 2 lynxis
93 4 lynxis
|_.Heads |_.Name|_.OS | _.Driver/Version |
94 4 lynxis
|   2    | Intel HD4500    | Ubuntu 12.04 | opensrc/kernel 3.5.4/xorg-intel 2.20.8-1 |
95 4 lynxis
|   4    | AMD/ATI HD-6950 | Ubuntu 12.04 | prop/?? | 
96 4 lynxis
|   4    | nvidia gtx 660  | Ubuntu 12.04 | prop/?? |
97 4 lynxis
|   2    | nvidia gtx 560  | Ubuntu 12.04 | prop/?? |
98 4 lynxis
99 2 lynxis
Maybe also interesting for you : http://www.x.org/wiki/XInputCoordinateTransformationMatrixUsage and https://wiki.archlinux.org/index.php/Touchscreen