X.org (xorg.conf)

xorg.conf para dois monitores

Categoria: X11

Software: X.org

[ Hits: 9.236 ]

Por: Mauricio


Essa conf é para quem tem uma placa com saída para dois monitores e deseja usar como um sendo a extensão do outro. Funcionou no Ubuntu Dapper com uma placa FX 5200 com saída digital DVI, mas pode ser adaptado perfeitamente para outras configurações.


# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# Este arquivo foi desenvolvido por Mauricio Maciel 
# mauricio@vendomicro.com.br
#

# Com essa opção ligada o monitor extra será a extensão do 
# principal e não um clone. 
Section "ServerFlags"
       Option "Xinerama" "true"
EndSection

Section "Files"
       FontPath        "/usr/share/X11/fonts/misc"
       FontPath        "/usr/share/X11/fonts/cyrillic"
       FontPath        "/usr/share/X11/fonts/100dpi/:unscaled"
       FontPath        "/usr/share/X11/fonts/75dpi/:unscaled"
       FontPath        "/usr/share/X11/fonts/Type1"
       FontPath        "/usr/share/X11/fonts/100dpi"
       FontPath        "/usr/share/X11/fonts/75dpi"
       # path to defoma fonts
       FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
       Load    "i2c"
       Load    "bitmap"
       Load    "ddc"
       Load    "dri"
       Load    "extmod"
       Load    "freetype"
       Load    "glx"
       Load    "int10"
       Load    "type1"
       Load    "vbe"
EndSection

Section "InputDevice"
       Identifier      "Generic Keyboard"
       Driver          "kbd"
       Option          "CoreKeyboard"
       Option          "XkbRules"      "xorg"
       Option          "XkbModel"      "abnt2"
       Option          "XkbLayout"     "br"
       Option          "XkbVariant"    "abnt2"
EndSection

Section "InputDevice"
       Identifier      "Configured Mouse"
       Driver          "mouse"
       Option          "CorePointer"
       Option          "Device"                "/dev/input/mice"
       Option          "Protocol"              "ExplorerPS/2"
       Option          "ZAxisMapping"          "4 5"
       Option          "Emulate3Buttons"       "true"
EndSection

# Placa de video nvidia FX5200
Section "Device"
       Identifier      "NVIDIA Corporation NV34 [GeForce FX 5200]"
       Driver          "nvidia"
       BusID           "PCI:1:0:0"
       Screen          0
EndSection

# A placa é a mesma , mas o identifier tem que ser diferente para 
# colocar no outro monitor
Section "Device"
       Identifier      "Card1"
       Driver          "nvidia"
       BusID           "PCI:1:0:0"
       Screen          1
EndSection

# Monitor principal
Section "Monitor"
       Identifier      "SyncMaster"
       Option          "DPMS"
EndSection

# Monitor extra
Section "Monitor"
       Identifier      "IBM"
       Option          "DPMS"
EndSection

# Configuração do primeiro monitor
Section "Screen"
       Identifier      "Default Screen"
       Device          "NVIDIA Corporation NV34 [GeForce FX 5200]"
       Monitor         "SyncMaster"
       DefaultDepth    24
       SubSection "Display"
               Depth           1
               Modes           "1152x864" "1024x768" "800x600"
       EndSubSection
       SubSection "Display"
               Depth           4
               Modes           "1152x864" "1024x768" "800x600"
       EndSubSection
       SubSection "Display"
               Depth           8
               Modes           "1152x864" "1024x768" "800x600"
       EndSubSection
       SubSection "Display"
               Depth           15
               Modes           "1152x864" "1024x768" "800x600"
       EndSubSection
       SubSection "Display"
               Depth           16
               Modes           "1152x864" "1024x768" "800x600"
       EndSubSection
       SubSection "Display"
               Depth           24
               Modes           "1152x864" "1024x768" "800x600" 
       EndSubSection
EndSection

# Configuração do segundo monitor
Section "Screen"
       Identifier      "Screen1"
       Device          "Card1"
       Monitor         "IBM"
       DefaultDepth    24
       SubSection "Display"
               Depth           1
               Modes           "1024x768" "800x600" "640x480"
       EndSubSection
       SubSection "Display"
               Depth           4
               Modes           "1024x768" "800x600" "640x480"
       EndSubSection
       SubSection "Display"
               Depth           8
               Modes           "1024x768" "800x600" "640x480"
       EndSubSection
       SubSection "Display"
               Depth           15
               Modes           "1024x768" "800x600" "640x480"
       EndSubSection
       SubSection "Display"
               Depth           16
               Modes           "1024x768" "800x600" "640x480"
       EndSubSection
       SubSection "Display"
               Depth           24
               Modes           "1024x768" "800x600" "640x480"
       EndSubSection
EndSection

# Posicionamento dos monitores
Section "ServerLayout"
       Identifier      "Default Layout"
       Screen    0     "Default Screen"0 0
       Screen    1     "Screen1" RightOf "Default Screen"
       InputDevice     "Generic Keyboard"
       InputDevice     "Configured Mouse"
       InputDevice     "stylus" "SendCoreEvents"
       InputDevice     "cursor" "SendCoreEvents"
       InputDevice     "eraser" "SendCoreEvents"
EndSection

Section "DRI"
       Mode    0666
EndSection
  


Comentários
[1] Comentário enviado por fidodido007 em 16/09/2006 - 23:57h

Dae cara, sou iniciante no uso do sistema Linux e tenho uma duvida:

Estou usando o Ubuntu Dapper, rodando o XGL e toda aquela parafernalha do desktop 3D, utilizo uma placa de video igual a sua (FX 5200)...

Para utilizar os dois monitores eu só preciso substituir o meu arquivo xorg.conf pelo seu, ou eu deveria adicionar algumas informações do seu arquivo no já existente?

Valeu!


Contribuir com comentário

  



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts