import NVIDIA-FreeBSD-x86-180.29
[nvidia.git] / doc / html / chapter-12.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <meta name="generator" content=
5 "HTML Tidy for FreeBSD (vers 1 September 2005), see www.w3.org">
6 <meta http-equiv="Content-Type" content=
7 "text/html; charset=us-ascii">
8 <title>Chapter&nbsp;12.&nbsp;Configuring Multiple X Screens on One
9 Card</title>
10 <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
11 <link rel="start" href="index.html" title=
12 "NVIDIA Accelerated FreeBSD Graphics Driver README and Installation Guide">
13 <link rel="up" href="part-01.html" title=
14 "Part&nbsp;I.&nbsp;Installation and Configuration Instructions">
15 <link rel="prev" href="chapter-11.html" title=
16 "Chapter&nbsp;11.&nbsp;Configuring GLX in Xinerama">
17 <link rel="next" href="chapter-13.html" title=
18 "Chapter&nbsp;13.&nbsp;Configuring TV-Out">
19 </head>
20 <body>
21 <div class="navheader">
22 <table width="100%" summary="Navigation header">
23 <tr>
24 <th colspan="3" align="center">Chapter&nbsp;12.&nbsp;Configuring
25 Multiple X Screens on One Card</th>
26 </tr>
27 <tr>
28 <td width="20%" align="left"><a accesskey="p" href=
29 "chapter-11.html">Prev</a>&nbsp;</td>
30 <th width="60%" align="center">Part&nbsp;I.&nbsp;Installation and
31 Configuration Instructions</th>
32 <td width="20%" align="right">&nbsp;<a accesskey="n" href=
33 "chapter-13.html">Next</a></td>
34 </tr>
35 </table>
36 <hr></div>
37 <div class="chapter" lang="en">
38 <div class="titlepage">
39 <div>
40 <div>
41 <h2 class="title"><a name="configmultxscreens" id=
42 "configmultxscreens"></a>Chapter&nbsp;12.&nbsp;Configuring Multiple
43 X Screens on One Card</h2>
44 </div>
45 </div>
46 </div>
47 <p>GPUs that support TwinView (<a href="chapter-10.html" title=
48 "Chapter&nbsp;10.&nbsp;Configuring TwinView">Chapter&nbsp;10,
49 <i>Configuring TwinView</i></a>) can also be configured to treat
50 each connected display device as a separate X screen.</p>
51 <p>While there are several disadvantages to this approach as
52 compared to TwinView (e.g.: windows cannot be dragged between X
53 screens, hardware accelerated OpenGL cannot span the two X
54 screens), it does offer several advantages over TwinView:</p>
55 <div class="itemizedlist">
56 <ul type="disc">
57 <li>
58 <p>If each display device is a separate X screen, then properties
59 that may vary between X screens may vary between displays (e.g.:
60 depth, root window size, etc).</p>
61 </li>
62 <li>
63 <p>Hardware that can only be used on one display at a time (e.g.:
64 video overlays, hardware accelerated RGB overlays), and which
65 consequently cannot be used at all when in TwinView, can be exposed
66 on the first X screen when each display is a separate X screen.</p>
67 </li>
68 <li>
69 <p>TwinView is a fairly new feature. X has historically used one
70 screen per display device.</p>
71 </li>
72 </ul>
73 </div>
74 <p></p>
75 <p>To configure two separate X screens to share one graphics card,
76 here is what you will need to do:</p>
77 <p>First, create two separate Device sections, each listing the
78 BusID of the graphics card to be shared and listing the driver as
79 "nvidia", and assign each a separate screen:</p>
80 <pre class="screen">
81     Section "Device"
82         Identifier  "nvidia0"
83         Driver      "nvidia"
84         # Edit the BusID with the location of your graphics card
85         BusID       "PCI:2:0:0"
86         Screen      0
87     EndSection
88
89     Section "Device"
90         Identifier  "nvidia1"
91         Driver      "nvidia"
92         # Edit the BusID with the location of your graphics card
93         BusId       "PCI:2:0:0"
94         Screen      1
95     EndSection
96 </pre>
97 <p>Then, create two Screen sections, each using one of the Device
98 sections:</p>
99 <pre class="screen">
100     Section "Screen"
101         Identifier  "Screen0"
102         Device      "nvidia0"
103         Monitor     "Monitor0"
104         DefaultDepth 24
105         Subsection "Display"
106             Depth       24
107             Modes       "1600x1200" "1024x768" "800x600" "640x480" 
108         EndSubsection
109     EndSection
110
111     Section "Screen"
112         Identifier  "Screen1"
113         Device      "nvidia1"
114         Monitor     "Monitor1"
115         DefaultDepth 24
116         Subsection "Display"
117             Depth       24
118             Modes       "1600x1200" "1024x768" "800x600" "640x480" 
119         EndSubsection
120     EndSection
121 </pre>
122 <p>(Note: You'll also need to create a second Monitor section)
123 Finally, update the ServerLayout section to use and position both
124 Screen sections:</p>
125 <pre class="screen">
126     Section "ServerLayout"
127         ...
128         Screen         0 "Screen0" 
129         Screen         1 "Screen1" leftOf "Screen0"
130         ...
131     EndSection
132 </pre>
133 <p>For further details, refer to the XF86Config(5x) or
134 xorg.conf(5x) man pages.</p>
135 </div>
136 <div class="navfooter">
137 <hr>
138 <table width="100%" summary="Navigation footer">
139 <tr>
140 <td width="40%" align="left"><a accesskey="p" href=
141 "chapter-11.html">Prev</a>&nbsp;</td>
142 <td width="20%" align="center"><a accesskey="u" href=
143 "part-01.html">Up</a></td>
144 <td width="40%" align="right">&nbsp;<a accesskey="n" href=
145 "chapter-13.html">Next</a></td>
146 </tr>
147 <tr>
148 <td width="40%" align="left" valign="top">
149 Chapter&nbsp;11.&nbsp;Configuring GLX in Xinerama&nbsp;</td>
150 <td width="20%" align="center"><a accesskey="h" href=
151 "index.html">Home</a></td>
152 <td width="40%" align="right" valign="top">
153 &nbsp;Chapter&nbsp;13.&nbsp;Configuring TV-Out</td>
154 </tr>
155 </table>
156 </div>
157 </body>
158 </html>