2012年11月6日 星期二

來個雙顯示器跟不同顯示卡設定

顯卡1是Nvidia的620
顯卡2是Intel的HD內建顯示部份

主要更動
檔案xorg.conf
#設定畫面位置
Section "ServerLayout"
   Identifier "X.org Configured"
  Screen 0 "Screen0" 0 0
  #第二劃面於第一畫面的右邊
  Screen 1 "Screen1" RightOf "Screen0"
EndSection

#第ㄧ螢幕設定
Section "Monitor"
  Identifier "Monitor0"
  VendorName "PHILIPS"
  ModelName "170S7FS"
  HorizSync 30-83
  BertRefresh 56-76
EndSection

#第二螢幕設定
Section "Monitor"
  Identifier "Monitor0"
  VendorName "ViewSonic"
  ModelName "VE710S"
  HorizSync 30-80
  BertRefresh 50-85
EndSection

#第ㄧ顯卡設定
Section "Device"
  Identifier "Card0"
  Dricer "nouveau"
  BusID "PCI:1:0:0"
EndSection
#第二顯卡設定
Section "Device"
  Identifier "Card1"
  Dricer "intel"
  BusID "PCI:0:2:0"
EndSection

#設定第一畫面
Section "Screen"
  Identifier "Screen0"
  Device "Card0"
  Monitor "Monitor0"
  DefaultDepth 24
  SubSection "Display"
    Viewport 0 0
    Depth 1
  EndSubSection
  SubSection "Display"
    Viewport 0 0
    Depth 4
  EndSubSection
  SubSection "Display"
    Viewport 0 0
    Depth 8
  EndSubSection
  SubSection "Display"
    Viewport 0 0
    Depth 15
  EndSubSection
  SubSection "Display"
    Viewport 0 0
    Depth 16
   EndSubSection
  SubSection "Display"
    Viewport 0 0
    Depth 24
  EndSubSection
EndSection

#設定第二畫面
Section "Screen"
  Identifier "Screen1"
  Device "Card1"
  Monitor "Monitor1"
  DefaultDepth 24
  SubSection "Display"
    Viewport 0 0
    Depth 1
   EndSubSection
  SubSection "Display"
    Viewport 0 0
    Depth 4
  EndSubSection
  SubSection "Display"
     Viewport 0 0
     Depth 8
  EndSubSection
  SubSection "Display"
    Viewport 0 0
    Depth 15
  EndSubSection
  SubSection "Display"
    Viewport 0 0
    Depth 16
  EndSubSection
  SubSection "Display"
    Viewport 0 0
    Depth 24
  EndSubSection
EndSection


另外有時開機時顯卡互搶第一位置時
利用mkinitrd把要當第一顯卡的modules先放到initrd.gz