Utilisation de deux écrans sous GNU/Linux avec l'option Twinview des cartes Nvidia.
Les carte graphique Nvidia NV18GL (Quadro4 NVS AGP 8x) donnent accès au Twinview, le mode double écran maison. Il suffit de configurer le serveur X pour en tirer parti.
J'ai réalisé le montage avec :
J'ai obtenu une configuration simple :
Les lignes à ajouter dans le fichier /etc/X11/xorg.conf dans la section “Device” sont :
Indique qu'on va utiliser l'option double écran :
/etc/X11/xorg.conf
Option "TwinView"
Fréquence de synchronisation horizontale du 2ème moniteur :
/etc/X11/xorg.conf
Option "SecondMonitorHorizSync" "30-70"
Fréquence de synchronisation verticale du 2ème moniteur.
/etc/X11/xorg.conf
Option "SecondMonitorVertRefresh" "50-140"
Les modes d'affichage qui seront utilisés, sous la forme : <mode 1 écran principal>, <mode 1 écran secondaire> ; <mode n écran principal>, <mode n écran secondaire>.
Je me suis limité à deux modes. Il faut bien faire attention aux virgules et aux points virgules.
/etc/X11/xorg.conf
Option "MetaModes" "1280x1024, 1280x1024; 1280x1024, 1024x768"
Indique la position du second écran par rapport au premier. Les valeurs possibles sont : “RightOf”, “LeftOf”, “Above”, “Below”, “Clone”.
/etc/X11/xorg.conf
Option "TwinViewOrientation" "RightOf"
Chez nvidia j'ai trouvé les options exhaustives dans leur FAQ (Support → FAQ).
Pour information voila mon fichier XF86Config-4 :
/etc/X11/xorg.conf
Section "Files"
FontPath "unix/:7100" # local font server
# if the local font server has problems, we can fall back on these
FontPath "/usr/lib/X11/fonts/misc"
FontPath "/usr/lib/X11/fonts/cyrillic"
FontPath "/usr/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/Type1"
FontPath "/usr/lib/X11/fonts/CID"
FontPath "/usr/lib/X11/fonts/Speedo"
FontPath "/usr/lib/X11/fonts/100dpi"
FontPath "/usr/lib/X11/fonts/75dpi"
EndSection
Section "Module"
# Load "GLcore"
Load "bitmap"
Load "dbe"
Load "ddc"
# Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "record"
Load "speedo"
Load "type1"
Load "vbe"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "fr,dvorak_fr"
Option "XkbVariant" "basic,basic"
Option "XKbOptions" "grp:sclk_toggle"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
Section "Device"
Identifier "NVIDIA Corporation NV18GL [Quadro4 NVS AGP 8x]"
Driver "nvidia"
Option "TwinView"
Option "SecondMonitorHorizSync" "30-70"
Option "SecondMonitorVertRefresh" "50-140"
Option "MetaModes" "1280x1024, 1280x1024; 1280x1024, 1024x768"
Option "TwinViewOrientation" "RightOf"
EndSection
Section "Monitor"
Identifier "Écran générique"
HorizSync 30-65
VertRefresh 50-75
Option "DPMS"
EndSection
Section "Screen"
Identifier "Default Screen"
Device "NVIDIA Corporation NV18GL [Quadro4 NVS AGP 8x]"
Monitor "Écran générique"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection
Section "DRI"
Mode 0666
EndSection