11. Exemple de fichier /etc/X11/xorg.conf sous FC 3

Voici les points abordés dans ce chapitre :

11.a. Exemple de fichier /etc/X11/xorg.conf sous Fedora Core 3

Code listing 1: Exemple de fichier /etc/X11/xorg.conf partie 1

Section "ServerLayout"
  Identifier     "Default Layout"
  Screen      0  "Screen0" 0 0
  InputDevice    "Mouse0" "CorePointer"
  InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"

  # RgbPath is the location of the RGB database.  Note, this is the name of
  # the file minus the extension (like ".txt" or ".db").  There is normally
  # no need to change the default.
  # Multiple FontPath entries are allowed (they are concatenated together)
  # By default, Red Hat 6.0 and later now use a font server independent of
  # the X server to render fonts.

  RgbPath      "/usr/X11R6/lib/X11/rgb"
  FontPath     "unix/:7100"
EndSection

Section "Module"
  Load  "dbe"
  Load  "extmod"
  Load  "fbdevhw"
  Load  "glx"
  Load  "record"
  Load  "freetype"
  Load  "type1"
  Load  "dri"
EndSection

Code listing 2: Exemple de fichier /etc/X11/xorg.conf partie 2

Section "InputDevice"
  Identifier  "Keyboard0"
  Driver      "kbd"
  Option      "XkbModel" "pc105"
  Option      "XkbLayout" "ca_enhanced"
EndSection

Section "InputDevice"
  Identifier  "Mouse0"
  Driver      "mouse"
  Option      "Protocol" "IMPS/2"
  Option      "Device" "/dev/input/mice"
  Option      "ZAxisMapping" "4 5"
  Option      "Emulate3Buttons" "yes"
EndSection

Section "Monitor"
  Identifier   "Monitor0"
  VendorName   "Monitor Vendor"
  ModelName    "F700B"
  DisplaySize  330 250
  HorizSync    30.0 - 70.0
  VertRefresh  50.0 - 160.0
  Option       "dpms"
EndSection

Section "Device"
  Identifier  "Videocard0"
  Driver      "radeon"
  VendorName  "Videocard vendor"
  BoardName   "ATI Radeon 9600"
EndSection

Code listing 3: Exemple de fichier /etc/X11/xorg.conf partie 3

Section "Screen"
  Identifier "Screen0"
  Device     "Videocard0"
  Monitor    "Monitor0"
  DefaultDepth     24
  SubSection "Display"
    Viewport   0 0
    Depth     16
    Modes    "800x600" "640x480"
  EndSubSection

  SubSection "Display"
    Viewport   0 0
    Depth     24
    Modes    "1024x768" "800x600" "640x480"
  EndSubSection
EndSection

Section "DRI"
  Group        0
  Mode         0666
EndSection

Copyright 2005-2006 Gentoo Quebec. Questions, commentaires, corrections? Courriel support@gentoo-quebec.org.