Penguin
Blame: NvidiaTwinView
EditPageHistoryDiffInfoLikePages
Annotated edit history of NvidiaTwinView version 2, including all changes. View license author blame.
Rev Author # Line
2 JohnMcPherson 1 I had some trouble getting my laptop (Dell Precision M65) to work using nvidia's TwinView. I wanted it to automatically use my CRT monitor @ 1280x1024 if docked but to use the laptop panel @ 1920x1200 if not docked.
1 GlennRamsey 2
3 Here's my xorg.conf after I figured out how to do it, all this is documented in Nvidia's README but it's a bit confusing without an example.
4
5 The key points are that there are two "Screen"s and that the Twinview and Metamodes options are needed in the "Device" section. In my case the Usedisplaydevice options in the Screen sections are also required otherwise it can choose the wrong one. That's why these intructions http://javier.rodriguez.org.mx/index.php/2006/09/08/xorgconf-configuration-for-nvidia-twinview-on-the-dell-620/
6 didn't work for me.
7
8
9 <verbatim>
10
11 Section "ServerLayout"
12
13 Identifier "Default Layout"
14 Screen 0 "Docked"
15 Screen 1 "Laptop"
16 InputDevice "Generic Keyboard"
17 InputDevice "Docked Mouse"
18 InputDevice "Configured Mouse"
19 InputDevice "stylus" "SendCoreEvents"
20 InputDevice "cursor" "SendCoreEvents"
21 InputDevice "eraser" "SendCoreEvents"
22 InputDevice "Synaptics Touchpad"
23 EndSection
24
25 Section "Files"
26
27 # path to defoma fonts
28 FontPath "/usr/share/X11/fonts/misc"
29 FontPath "/usr/share/X11/fonts/cyrillic"
30 FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
31 FontPath "/usr/share/X11/fonts/75dpi/:unscaled"
32 FontPath "/usr/share/X11/fonts/Type1"
33 FontPath "/usr/share/X11/fonts/100dpi"
34 FontPath "/usr/share/X11/fonts/75dpi"
35 FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
36 EndSection
37
38 Section "Module"
39 Load "bitmap"
40 Load "ddc"
41 Load "extmod"
42 Load "freetype"
43 Load "glx"
44 Load "int10"
45 Load "type1"
46 Load "vbe"
47 EndSection
48
49 Section "InputDevice"
50 Identifier "Generic Keyboard"
51 Driver "kbd"
52 Option "CoreKeyboard"
53 Option "XkbRules" "xorg"
54 Option "XkbModel" "pc104"
55 Option "XkbLayout" "us"
56 EndSection
57
58 Section "InputDevice"
59 Identifier "Configured Mouse"
60 Driver "mouse"
61 Option "CorePointer"
62 Option "Device" "/dev/input/mice"
63 Option "Protocol" "ExplorerPS/2"
64 Option "ZAxisMapping" "4 5"
65 EndSection
66
67 Section "InputDevice"
68 Identifier "Docked Mouse"
69 Driver "mouse"
70 Option "CorePointer"
71 Option "Device" "/dev/psaux"
72 Option "Protocol" "ExplorerPS/2"
73 Option "ZAxisMapping" "4 5"
74 EndSection
75
76 Section "InputDevice"
77 Identifier "Synaptics Touchpad"
78 Driver "synaptics"
79 Option "SendCoreEvents" "true"
80 Option "Device" "/dev/psaux"
81 Option "Protocol" "auto-dev"
82 Option "ZAxisMapping" "4 5"
83 Option "HorizScrollDelta" "0"
84 EndSection
85
86 Section "InputDevice"
87
88 # /dev/input/event
89 # for USB
90 Identifier "stylus"
91 Driver "wacom"
92 Option "Device" "/dev/wacom" # Change to
93 Option "Type" "stylus"
94 Option "ForceDevice" "ISDV4" # Tablet PC ONLY
95 EndSection
96
97 Section "InputDevice"
98
99 # /dev/input/event
100 # for USB
101 Identifier "eraser"
102 Driver "wacom"
103 Option "Device" "/dev/wacom" # Change to
104 Option "Type" "eraser"
105 Option "ForceDevice" "ISDV4" # Tablet PC ONLY
106 EndSection
107
108 Section "InputDevice"
109
110 # /dev/input/event
111 # for USB
112 Identifier "cursor"
113 Driver "wacom"
114 Option "Device" "/dev/wacom" # Change to
115 Option "Type" "cursor"
116 Option "ForceDevice" "ISDV4" # Tablet PC ONLY
117 EndSection
118
119 Section "Monitor"
120 Identifier "Laptop Panel"
121 HorizSync 30.0 - 75.0
122 VertRefresh 30.0 - 60.0
123 #DisplaySize 334 210
124 Option "DPMS"
125 EndSection
126
127 Section "Monitor"
128 Identifier "ExternalCRT"
129 VendorName "Dell"
130 ModelName "Dell D1226H"
131 HorizSync 30.0 - 95.0
132 VertRefresh 50.0 - 160.0
133 Gamma 1
134 #DisplaySize 360 270
135 Option "DPMS"
136 ModeLine "640x480@60" 25.2 640 656 752 800 480 490 492 525 -hsync -vsync
137 ModeLine "640x480@72" 31.5 640 664 704 832 480 489 491 520 -hsync -vsync
138 ModeLine "640x480@75" 31.5 640 656 720 840 480 481 484 500 -hsync -vsync
139 ModeLine "640x480@85" 36.0 640 696 752 832 480 481 484 509 -hsync -vsync
140 ModeLine "800x600@56" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
141 ModeLine "800x600@72" 50.0 800 856 976 1040 600 637 643 666 +hsync +vsync
142 ModeLine "800x600@75" 49.5 800 816 896 1056 600 601 604 625 +hsync +vsync
143 ModeLine "800x600@85" 56.3 800 832 896 1048 600 601 604 631 +hsync +vsync
144 ModeLine "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
145 ModeLine "832x624@75" 57.3 832 864 928 1152 624 625 628 667 -hsync -vsync
146 ModeLine "1024x768@85" 94.5 1024 1072 1168 1376 768 769 772 808 +hsync +vsync
147 ModeLine "1024x768@75" 78.8 1024 1040 1136 1312 768 769 772 800 +hsync +vsync
148 ModeLine "1024x768@70" 75.0 1024 1048 1184 1328 768 771 777 806 -hsync -vsync
149 ModeLine "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -hsync -vsync
150 ModeLine "1024x768@43" 44.9 1024 1032 1208 1264 768 768 776 817 +hsync +vsync interlace
151 ModeLine "1152x864@75" 108.0 1152 1216 1344 1600 864 865 868 900 +hsync +vsync
152 ModeLine "1152x768@54" 65.0 1152 1178 1314 1472 768 771 777 806 +hsync +vsync
153 ModeLine "1280x854" 80.0 1280 1309 1460 1636 854 857 864 896 +hsync +vsync
154 ModeLine "1280x1024@75" 135.0 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync
155 ModeLine "1280x960@60" 102.1 1280 1360 1496 1712 960 961 964 994 -hsync +vsync
156 ModeLine "1280x960@85" 148.5 1280 1344 1504 1728 960 961 964 1011 +hsync +vsync
157 ModeLine "1280x1024@85" 157.5 1280 1344 1504 1728 1024 1025 1028 1072 +hsync +vsync
158 ModeLine "1280x1024@60" 108.0 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
159 ModeLine "1280x960@75" 129.9 1280 1368 1504 1728 960 961 964 1002 -hsync +vsync
160 ModeLine "1400x1050@60" 122.6 1400 1488 1640 1880 1050 1051 1054 1087 -hsync +vsync
161 ModeLine "1400x1050@75" 155.8 1400 1496 1648 1896 1050 1051 1054 1096 -hsync +vsync
162 ModeLine "1600x1200@65" 175.5 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
163 ModeLine "1600x1200@60" 162.0 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
164 ModeLine "1600x1200@75" 202.5 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
165 ModeLine "1600x1200@70" 189.0 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
166 ModeLine "1792x1344@60" 204.8 1792 1920 2120 2448 1344 1345 1348 1394 -hsync +vsync
167 ModeLine "1856x1392@60" 218.3 1856 1952 2176 2528 1392 1393 1396 1439 -hsync +vsync
168 ModeLine "1920x1440@60" 234.0 1920 2048 2256 2600 1440 1441 1444 1500 -hsync +vsync
169 ModeLine "2048x1536@60" 266.9 2048 2200 2424 2800 1536 1537 1540 1589 -hsync +vsync
170 EndSection
171
172 Section "Device"
173 Identifier "NVIDIA 0"
174 Driver "nvidia"
175 BusID "PCI:1:0:0"
176 Option "TwinView" "On"
177 Option "MetaModes" "DFP-0: 1920x1200, CRT-0: NULL; DFP-0: NULL, CRT-0: 1280x1024"
178
179 #Option "MetaModes" "DFP-0: 1920x1200, CRT-0: 1280x1024; DFP-0: 1920x1200, CRT-0: NULL; DFP-0: NULL, CRT-0: 1280x1024"
180 #Option "HorizSync" "DFP-0: 30-75; CRT-0: 30-95"
181 #Option "VertRefresh" "DFP-0: 30-60; CRT-0: 50-160"
182 #Option "SecondMonitorHorizSync" "30-75"
183 #Option "SecondMonitorVertRefresh" "30-60"
184 #Option "TwinViewOrientation" "Leftof"
185 #Option "ConnectedMonitor" "DFP, CRT"
186 #Option "UseEdidDpi" "False"
187 EndSection
188
189 Section "Screen"
190 Identifier "Laptop"
191 Device "NVIDIA 0"
192 Monitor "Laptop Panel"
193 Option "UseDisplayDevice" "DFP-0"
194 DefaultDepth 24
195 SubSection "Display"
196 Depth 1
197 Modes "1920x1200" "1680x1050" "1440x900" "1280x1024" "1024x768" "800x600" "640x480"
198 EndSubSection
199 SubSection "Display"
200 Depth 4
201 Modes "1920x1200" "1680x1050" "1440x900" "1280x1024" "1024x768" "800x600" "640x480"
202 EndSubSection
203 SubSection " Display"
204 Depth 8
205 Modes "1920x1200" "1680x1050" "1440x900" "1280x1024" "1024x768" "800x600" "640x480"
206 EndSubSection
207 SubSection "Display"
208 Depth 15
209 Modes "1920x1200" "1680x1050" "1440x900" "1280x1024" "1024x768" "800x600" "640x480"
210 EndSubSection
211 SubSection "Display"
212 Depth 16
213 Modes "1920x1200" "1680x1050" "1440x900" "1280x1024" "1024x768" "800x600" "640x480"
214 EndSubSection
215 SubSection "Display"
216 Depth 24
217 Modes "1920x1200" "1680x1050" "1440x900" "1280x1024" "1024x768" "800x600" "640x480"
218 EndSubSection
219 EndSection
220
221 Section "Screen"
222 Identifier "Docked"
223 Device "NVIDIA 0"
224 Monitor "ExternalCRT"
225 Option "UseDisplayDevice" "CRT-0"
226 DefaultDepth 24
227 SubSection "Display"
228 Depth 24
229 Modes "1600x1200@75" "1280x1024@85" "1280x1024@60" "1280x960@85" "1280x960@75" "1280x960@60" "1400x1050@60" "1280x1024@75" "1400x1050@75" "1280x854" "1600x1200@65" "1152x768@54" "1600x1200@60" "1152x864@75" "1600x1200@75" "1024x768@43" "1600x1200@70" "1024x768@60" "1792x1344@60" "1024x768@70" "1856x1392@60" "1024x768@75" "1920x1440@60" "1024x768@85" "2048x1536@60" "832x624@75" "800x600@60" "800x600@85" "800x600@75" "800x600@72" "800x600@56" "640x480@85" "640x480@75" "640x480@72" "640x480@60"
230 EndSubSection
231 EndSection
232
233 </verbatim>