xorg.conf for dual video cards, monitors, and tv out.
I have an LCD for my primary display that runs compiz.
I have a CRT too, that I use for mythtv. 
And I have the TV OUT clone the CRT to my TV. 
Here's my xorg.conf.
  1. Section "ServerLayout"
  2.     Identifier     "Default Layout"
  3.     Screen         "Main Screen" 0 0
  4.     Screen         "Second Screen" RightOf "Main Screen"
  5.     InputDevice    "Generic Keyboard"
  6.     InputDevice    "Configured Mouse"
  7. EndSection
  8.  
  9. Section "Files"
  10.  
  11.         # path to defoma fonts
  12.     FontPath        "/usr/share/X11/fonts/misc"
  13.     FontPath        "/usr/share/X11/fonts/cyrillic"
  14.     FontPath        "/usr/share/X11/fonts/100dpi/:unscaled"
  15.     FontPath        "/usr/share/X11/fonts/75dpi/:unscaled"
  16.     FontPath        "/usr/share/X11/fonts/Type1"
  17.     FontPath        "/usr/share/X11/fonts/100dpi"
  18.     FontPath        "/usr/share/X11/fonts/75dpi"
  19.     FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
  20. EndSection
  21.  
  22. Section "Module"
  23.     Load           "bitmap"
  24.     Load           "ddc"
  25.     Load           "extmod"
  26.     Load           "freetype"
  27.     Load           "int10"
  28.     Load           "type1"
  29.     Load           "vbe"
  30.     Load           "glx"
  31. EndSection
  32.  
  33. Section "InputDevice"
  34.     Identifier     "Generic Keyboard"
  35.     Driver         "kbd"
  36.     Option         "CoreKeyboard"
  37.     Option         "XkbRules" "xorg"
  38.     Option         "XkbModel" "inspiron"
  39.     Option         "XkbLayout" "us"
  40. EndSection
  41.  
  42. Section "InputDevice"
  43.     Identifier     "Configured Mouse"
  44.     Driver         "mouse"
  45.     Option         "CorePointer"
  46.     Option         "Device" "/dev/input/mice"
  47.     Option         "Protocol" "ExplorerPS/2"
  48.     Option         "ZAxisMapping" "4 5"
  49.     Option         "Emulate3Buttons" "true"
  50. EndSection
  51.  
  52. Section "Monitor"
  53.     Identifier     "Main Monitor"
  54.     HorizSync       30-83
  55.     VertRefresh     56-75
  56.     Option         "DPMS"
  57. EndSection
  58.  
  59. Section "Monitor"
  60.     Identifier     "Second Monitor"
  61.   HorizSync       28.0 - 51.0
  62.     VertRefresh     43.0 - 60.0
  63.     Option         "DPMS"
  64. EndSection
  65.  
  66. Section "Device"
  67.     Identifier     "Laptop"
  68.     Driver         "nvidia"
  69.     BusID          "PCI:3:0:0"
  70. EndSection
  71.  
  72. Section "Device"
  73.     Identifier     "External"
  74.     Driver         "nvidia"
  75.     BusID          "PCI:4:8:0"
  76.     Option "Twinview" "true"
  77.     Option "TwinViewOrientation" "Clone"
  78.     #Option "ConnectedMonitor" "CRT-0, TV-0"
  79.     Option "MetaModes" "800x600,800x600"
  80. EndSection
  81.  
  82. Section "Screen"
  83.     Identifier     "Main Screen"
  84.     Device         "Laptop"
  85.     Monitor        "Main Monitor"
  86.     DefaultDepth    24
  87.     Option         "AddARGBGLXVisuals" "True"
  88.     SubSection     "Display"
  89.         Depth       16
  90.         Modes      "1280x1024"
  91.     EndSubSection
  92.     SubSection     "Display"
  93.         Depth       24
  94.         Modes      "1280x1024"
  95.     EndSubSection
  96. EndSection
  97.  
  98. Section "Screen"
  99.     Identifier     "Second Screen"
  100.     Device         "External"
  101.     Monitor        "Second Monitor"
  102.     DefaultDepth    24
  103.     Option         "AddARGBGLXVisuals" "True"
  104.     SubSection     "Display"
  105.         Depth       16
  106.         Modes      "1024x768"
  107.     EndSubSection
  108.     SubSection     "Display"
  109.         Depth       24
  110.         Modes      "1024x768"
  111.     EndSubSection
  112. EndSection
  113.  
  114. Section "Extensions"
  115.     Option         "Composite" "Enable"
  116. EndSection
 

Add comment

Security code
Refresh