Xorg

Xorg est le remplaçant de XFree86.

L'installation du driver Nvidia est ici : Nvidia.

Installation

Le méta paquet permettant l'installation de Xorg est :

  • xserver-xorg

Il vous faudra choisir un window manager comme Gnome, KDE ou encore XFCE.

Xorg.conf

La configuration de xorg est réalisée dans le fichier /etc/X11/xorg.conf.

Ce fichier décrit la configuration avec plusieurs sections :

  • Monitor : Définition d'un moniteur (fréquences)
  • Device : Définition des périphériques d'affichage (carte graphique + options)
  • Screen : Association entre un monitor et un device ainsi que les définitions supportées
  • InputDevice : Définition des périphèriques d'entrée (souris, clavier)
  • ServerLayout : Association d'un ou plusieurs Screen avec les InputDevice

Voici quelques exemples :

Section Monitor

Section "Monitor"
    Identifier     "IIyama Vision Master Pro 450"
    HorizSync       50.0 - 110.0
    VertRefresh     85.0 - 85.0
    Option         "DPMS"
EndSection

Section Device

Section "Device"
    Identifier     "NVIDIA Ti4200 - Sortie DB15"
    BusID          "PCI:2:0:0"
    Driver         "nvidia"
    Option         "ConnectedMonitor" "CRT-1"
    Option         "NvAgp" "1"
    Option         "NoLogo" "true"
EndSection

Section Screen

Section "Screen"
    Identifier     "Screen 2"
    Device         "NVIDIA Ti4200 - Sortie DB15"
    Monitor        "Video Projecteur"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
        Modes      "1024x768"
    EndSubSection
EndSection

Section InputDevice

Section "InputDevice"
    Identifier     "Configured Mouse"
    Driver         "mouse"
    Option         "CorePointer"
    Option         "Device" "/dev/input/mice"
    Option         "Protocol" "ExplorerPS/2"
    Option         "Emulate3Buttons" "false"
    Option         "ZAxisMapping" "6 7"
EndSection
Section "InputDevice"
    Identifier     "Generic Keyboard"
    Driver         "kbd"
    Option         "CoreKeyboard"
    Option         "XkbRules" "xorg"
    Option         "XkbModel" "pc105"
    Option         "XkbLayout" "fr"
    Option         "XkbVariant" "latin9"
EndSection

Section ServerLayout

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen         "Screen 1"
    InputDevice    "Generic Keyboard"
    InputDevice    "Configured Mouse"
EndSection

Gestion Multi écran

Il existe de nombreuse façon de gérer le multi écran sous Linux. Voici quelques exemples.

2 Ecrans sous la même session X

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen        0 "Screen 1"
    Screen        1 "Screen 2"
    InputDevice    "Generic Keyboard"
    InputDevice    "Configured Mouse"
EndSection

Attention, il n'est pas toujours possible de lancer deux screens utilisant la même carte. Par exemple avec Nvidia, configurez plutot le Twinview.

2 Layout avec chacun son ecran

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen         "Screen 1"
    InputDevice    "Generic Keyboard"
    InputDevice    "Configured Mouse"
EndSection

Section "ServerLayout"
    Identifier     "Layout Film"
    Screen         "Screen 2"
    InputDevice    "Generic Keyboard"
    InputDevice    "Configured Mouse"
EndSection

Configuration avancée de la souris

Exemple de fichier complet

Voici ma configuration comprenant les éléments suivants :

  • Nvidia Ti 4200 avec double ecran (sur 2 layouts)
  • Souris Logitech MX510
  • Clavier Logitech classique
Section "InputDevice"
    Identifier     "Configured Mouse"
    Driver         "mouse"
    Option         "CorePointer"
    Option         "Device" "/dev/input/mice"
    Option         "Protocol" "ExplorerPS/2"
    Option         "Emulate3Buttons" "false"
    Option         "ZAxisMapping" "6 7"
EndSection


#Section "InputDevice"
#    Identifier     "Configured Mouse"
#    Driver        "mouse"
#    Option         "CorePointer"
#    Option        "Protocol" "evdev"
#    Option        "Dev Name" "Logitech USB-PS/2 Optical Mouse" # cat /proc/bus/input/devices
#    Option        "Dev Phys" "usb-0000:00:02.0-2.1/input0" # cat /proc/bus/input/devices
#    Option        "Device" "/dev/input/mice" # (/dev/input/mice also appears to work)
#    Option "Buttons" "10"
#    Option "ZAxisMapping" "9 10"
#    Option "Resolution" "800"
#EndSection

Section "Monitor"
    Identifier     "IIyama Vision Master Pro 450"
    HorizSync       50.0 - 110.0
    VertRefresh     85.0 - 85.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Video Projecteur"
    HorizSync       50.0 - 100.0
    VertRefresh     85.0 - 85.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "NVIDIA Ti4200 - Sortie DVI"
    BusID          "PCI:2:0:0"
    Driver         "nvidia"
    Option         "ConnectedMonitor" "CRT-0"
    Option         "NvAgp" "1"
    Option         "NoLogo" "true"
EndSection

Section "Device"
    Identifier     "NVIDIA Ti4200 - Sortie DB15"
    BusID          "PCI:2:0:0"
    Driver         "nvidia"
    Option         "ConnectedMonitor" "CRT-1"
    Option         "NvAgp" "1"
    Option         "NoLogo" "true"
EndSection

Section "Screen"
    Identifier     "Screen 1"
    Device         "NVIDIA Ti4200 - Sortie DVI"
    Monitor        "IIyama Vision Master Pro 450"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
        Modes      "1280x1024" "1024x768"
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen 2"
    Device         "NVIDIA Ti4200 - Sortie DB15"
    Monitor        "Video Projecteur"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
        Modes      "1024x768"
    EndSubSection
EndSection

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen         "Screen 1"
    InputDevice    "Generic Keyboard"
    InputDevice    "Configured Mouse"
EndSection

Section "ServerLayout"
    Identifier     "Layout Film"
    Screen         "Screen 2"
    InputDevice    "Generic Keyboard"
    InputDevice    "Configured Mouse"
EndSection




Section "ServerLayout"
    Identifier     "Default Layout"
    Screen        0 "Screen 1"
    Screen        1 "Screen 2"
    InputDevice    "Generic Keyboard"
    InputDevice    "Configured Mouse"
EndSection

Section "Device"
    Screen      0
    Identifier     "NVIDIA Ti4200 - Sortie DVI"
    BusID          "PCI:2:0:0"
    Driver         "nvidia"
    Option         "ConnectedMonitor" "CRT-0"
    Option         "NvAgp" "1"
EndSection

Section "Device"
    Screen      1
    Identifier     "NVIDIA Ti4200 - Sortie DB15"
    BusID          "PCI:2:0:0"
    Driver         "nvidia"
    Option         "ConnectedMonitor" "CRT-1"
    Option         "NvAgp" "1"
EndSection

Section "Screen"
    Identifier     "Screen 1"
    Device         "NVIDIA Ti4200 - Sortie DVI"
    Monitor        "IIyama Vision Master Pro 450"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
        Modes      "1280x1024" "1024x768"
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen 2"
    Device         "NVIDIA Ti4200 - Sortie DB15"
    Monitor        "Video Projecteur"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
        Modes      "1024x768"
    EndSubSection
EndSection

Backup

  • /etc/X11/xorg.conf

Links

linux/config/xorg.txt · Dernière modification: 2011/01/11 23:54 par matthieu
Recent changes RSS feed Debian Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki