Navigation : Top/Xの設定
#contents

* xorg.confの設定 [#g8c95093]
** Video board [#t6c14cab]
** キーボード [#d7a76e41]
ControlとCapsLockを入れ換え
 Section "InputDevice"
     Option	   "XkbOptions" "cntl:swapcaps"
** マウス [#zff57461]
*** スクロールマウス [#h06e2bf2]
    Identifier     "Mouse0"
    Driver         "mouse"
    Option	   "CorePointer"
    Option	   "Name" "Logitech MX1000"
    Option         "Device" "/dev/input/mice"
    Option         "Protocol" "ImPS/2"
    Option         "Emulate3Buttons" "false"
    Option	   "Buttons" "7"
    Option         "ZAxisMapping" "4 5"
    Option         "XAxisMapping" "6 7"
    Option	   "ButtonMapping" "1 2 3 6 7 4 5"


* 設定の例 [#ze46eaf2]
** XOrg-6.9.0 with NVIDIA GeForce 8500 GTの場合 [#e0b2a457]
 # nvidia-settings:  version 1.0  (buildmeister@builder3)  Wed Sep 12 14:30:30 PDT 2007
 # XFree86 4 configuration created by pyxf86config

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

 Section "Files"

    RgbPath         "/usr/X11R6/lib/X11/rgb"
    FontPath        "/usr/X11R6/lib/X11/fonts/TrueType"
    FontPath        "/usr/X11R6/lib/X11/fonts/TTF"
    FontPath        "/usr/X11R6/lib/X11/fonts/japanese:unscaled"
    FontPath        "/usr/X11R6/lib/X11/fonts/misc:unscaled"
    FontPath        "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath        "/usr/X11R6/lib/X11/fonts/Speedo/"
    FontPath        "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
    FontPath        "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
    FontPath        "/usr/X11R6/lib/X11/fonts/cyrillic:unscaled"
    FontPath        "/usr/X11R6/lib/X11/fonts/misc"
    FontPath        "/usr/X11R6/lib/X11/fonts/75dpi"
    FontPath        "/usr/X11R6/lib/X11/fonts/100dpi"
    FontPath        "unix/:7100"
 EndSection

 Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "glx"
    Load           "v4l"
    Load           "record"
    Load           "freetype"
    Load           "type1"
 EndSection
 
 Section "ServerFlags"
    Option         "Xinerama" "0"
 EndSection
 
 Section "InputDevice"
 
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbModel" "pc102"
    Option         "XkbLayout" "us"
 #    Option         "XkbModel" "jp106"
 #    Option         "XkbLayout" "jp"
 EndSection
 
 Section "InputDevice"
 
    # Modified by mouseconfig
    Identifier     "Mouse0"
    Driver         "mouse"
    Option	   "CorePointer"
    Option	   "Name" "Logitech MX1000"
    Option         "Device" "/dev/input/mice"
    Option         "Protocol" "ImPS/2"
    Option         "Emulate3Buttons" "false"
    Option	   "Buttons" "7"
    Option         "ZAxisMapping" "4 5"
    Option         "XAxisMapping" "6 7"
    Option	   "ButtonMapping" "1 2 3 6 7 4 5"
 EndSection
 
 Section "Monitor"
 
 ### Comment all HorizSync and VertSync values to use DDC:
    Identifier     "Monitor0"
    VendorName     "EIZO"
    ModelName      "EIZO FORIS.HD"
    HorizSync       31.0 - 76.0
    VertRefresh     59.0 - 61.0
    Option         "dpms"
 EndSection
 
 Section "Device"
    Identifier     "Videocard0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 8500 GT"
 EndSection
 
 Section "Screen"
    Identifier     "Screen0"
    Device         "Videocard0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "1920x1200 +0+0; 1280x960 +0+0; 1280x800 +0+0; 1280x768 +0+0; 1152x864 +0+0; 1024x768 +0+0; 800x600 +0+0; 640x480 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
 EndSection



**XOrg-6.7.0 with Matrox G550 dualhead-DVIの場合 [#gf8f0dc7]

 # by NM
 # 2005/08/30 dualhead for DVI
 # 2004/12/07
 # Module loading section
 
 Section "ServerLayout"
	Identifier     "DualHead"
	Screen	       0 "Screen 0" LeftOf "Screen 1"
	Screen         "Screen 1" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
 EndSection
 
 Section "Files"
	FontPath     "/usr/X11R6/lib/X11/fonts/TrueType"
	FontPath     "unix/:7100"
	FontPath     "/usr/X11R6/lib/X11/fonts/japanese"
	FontPath     "/usr/X11R6/lib/X11/fonts/misc"
	FontPath     "/usr/X11R6/lib/X11/fonts/75dpi"
 EndSection
 
 Section "ServerFlags"
 	Option	    "Xinerama" "on"
 EndSection
 
 Section "Module"
	Load  "dbe"		# Double-buffering
	Load  "extmod"		# Misc. required extensions
	Load  "xtt"		# TrueType font handler
	Load  "type1"		# Adobe Type 1 font handler
	Load  "glx"		# OpenGL X protocol interface
	Load  "dri"		# 
 EndSection
 
 Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "keyboard"
	Option	    "Xkbdisable"
	Option	    "XkbLayout" "us"
 EndSection
 
 Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Device" "/dev/mouse"
	Option	    "Protocol" "IMPS/2"
	Option	    "Buttons" "5"
	Option	    "Emulate3Buttons" "off"
	Option	    "ZAxisMapping" "4 5"
 EndSection
 
 Section "Monitor"
	Identifier   "Display 0"
	VendorName   "EIZO"
	ModelName    "L685"
 # Digital
 	HorizSync    27.0 - 64.0
 	VertRefresh  60.0
 # Analog
 #	HorizSync    27.0 - 80.0
 #	VertRefresh  50.0 - 75.0
 # Default
 #	ModeLine     "1280x1024" 108.0 1280 1324 1436 1688 1024 1025 1028 1066 +hsync +vsync
 # 1280x1024 @ 60Hz
 #	ModeLine     "1280x1024" 108.0 1280 1320 1440 1688 1024 1025 1028 1066 +HSync +VSync
 	Option	    "DPMS"
 EndSection
 
 
 Section "Monitor"
	Identifier   "Display 1"
	VendorName   "EIZO"
	ModelName    "L676"
 # Digital
	HorizSync    27.0 - 82.0
	VertRefresh  60.0
 # Analog
 #	HorizSync    27.0 - 80.0
 #	VertRefresh  50.0 - 75.0
 #	VertRefresh  50.0 - 75.0
 # Default
 #	ModeLine     "1280x1024" 108.0 1280 1324 1436 1688 1024 1025 1028 1066 +hsync +vsync
 # 1280x1024 @ 60Hz
 #	ModeLine     "1280x1024" 108.0 1280 1320 1440 1688 1024 1025 1028 1066 +HSync  +VSync
	Option	    "DPMS"
 EndSection
 
 Section "Device"
	Identifier  "MATROX CARD 0"
	Screen      0
	Driver      "mga"
	Chipset	    "mgag550"
	BoardName   "G550"
 #	Option	    "hw cursor" "off"
 #	Option	    "AGPMode" "4"
	BusID       "PCI:2:0:0"
 EndSection
 
 Section "Device"
	Identifier  "MATROX CARD 1"
	Screen      1
	Driver      "mga"
	Chipset	    "mgag550"
	BoardName   "G550"
 #	Option	    "hw cursor" "off"
 #	Option	    "AGPMode" "4"
	BusID       "PCI:2:0:0"
 EndSection
 
 Section "Screen"
	Identifier "Screen 0"
	Device     "MATROX CARD 0"
	Monitor    "Display 0"
	DefaultDepth 24
	Subsection "Display"
		   Depth       8
		   Modes       "1280x1024"
		   ViewPort    0 0
	EndSubsection
	Subsection "Display"
		   Depth       16
		   Modes       "1280x1024"
		   ViewPort    0 0
	EndSubsection
	Subsection "Display"
		   Depth       24
		   Modes       "1280x1024"
		   ViewPort    0 0
	EndSubsection
 EndSection
 
 Section "Screen"
	Identifier "Screen 1"
	Device     "MATROX CARD 1"
	Monitor    "Display 1"
	DefaultDepth 24
	Subsection "Display"
		   Depth       8
		   Modes       "1280x1024"
		   ViewPort    0 0
	EndSubsection
	Subsection "Display"
		   Depth       16
		   Modes       "1280x1024"
		   ViewPort    0 0
	EndSubsection
	Subsection "Display"
		   Depth       24
		   Modes       "1280x1024"
		   ViewPort    0 0
	EndSubsection
 EndSection
 
 Section "DRI"
	Mode         0666
 EndSection


**XFree86-4.0 with Matrox G400の場合 [#p0d07cc1]

binaryを取ってきて, 
./install 
XFConfig86-4を以下の様に設定 

 # XFree86 4.x configuration generated by Xconfigurator 
 
 Section "ServerLayout" 
 Identifier "XFree86 Configured" 
 Screen 0 "Screen0" 0 0 
 InputDevice "Mouse0" "CorePointer" 
 InputDevice "Mouse9" "SendCoreEvents" 
 InputDevice "Keyboard0" "CoreKeyboard" 
 EndSection 
 
 # By default, Vine Linux use xfs except for TrueType 
 
 Section "Files" 
 FontPath "/usr/X11R6/lib/X11/fonts/TrueType" 
 FontPath "unix/:7100" 
 FontPath "/usr/X11R6/lib/X11/fonts/japanese" 
 FontPath "/usr/X11R6/lib/X11/fonts/misc" 
 FontPath "/usr/X11R6/lib/X11/fonts/75dpi" 
 EndSection 
 
 # Module loading section 
 
 Section "Module" 
 Load "dbe" # Double-buffering 
 Load "GLcore" # OpenGL support 
 Load "dri" # Direct rendering infrastructure 
 Load "glx" # OpenGL X protocol interface 
 Load "extmod" # Misc. required extensions 
 Load "v4l" # Video4Linux 
 # Load "pex5" # PHIGS for X 3D environment (obsolete) 
 # Load "record" # X event recorder 
 # Load "xie" # X Image Extension (obsolete) 
 # Load "freetype" # TrueType font handler 
 Load "xtt" # TrueType font handler 
 Load "type1" # Adobe Type 1 font handler 
 EndSection 
 
 Section "InputDevice" 
 Identifier "Keyboard0" 
 Driver "keyboard" 
 Option "Xkbdisable" 
 Option "XkbLayout" "us" 
 EndSection 
 
 Section "InputDevice" 
 Identifier "Mouse0" 
 Driver "mouse" 
 Option "Device" "/dev/mouse" 
 Option "Protocol" "IMPS/2" 
 Option "Buttions" "5" 
 Option "Emulate3Buttons" "off" 
 Option "ZAxisMapping" "4 5" 
 EndSection 
 
 Section "InputDevice" 
 Identifier "Mouse9" 
 Driver "mouse" 
 Option "Device" "/dev/input/mice" 
 Option "Protocol" "IMPS/2" 
 Option "ZAxisMapping" "4 5" 
 Option "AlwaysCoreg" 
 EndSection 
 
 Section "Monitor" 
 Identifier "Monitor0" 
 VendorName "EIZO" 
 ModelName "L676" 
 HorizSync 27-82 
 VertRefresh 50-75 
 ModeLine "1280x1024" 108.00 1280 1324 1436 1688 1024 1025 1028 1066 +hsync +vsync 
 Option "dpms" 
 EndSection 
 
 Section "Device" 
 Identifier "Matrox Millennium G400" 
 Driver "mga" 
 BoardName "G400" 
 BusID "PCI:1:5:0" 
 VideoRam "32768" 
 Option "hw cursor" "off" 
 Option "AGPMode" "4" 
 EndSection  
 
 Section "Device" 
 Identifier "Linux Frame Buffer" 
 Driver "fbdev" 
 BoardName "Unknown" 
 EndSection 
 
 Section "Screen" 
 Identifier "Screen0" 
 Device "Matrox Millennium G400" 
 Monitor "Monitor0" 
 DefaultDepth 16 
 Subsection "Display" 
 Depth 16 
 Modes "1280x1024" 
 EndSubSection 
 EndSection 
 
 Section "DRI" 
 Mode 0666 
 EndSection