Tips記事
» 2001年11月28日 00時00分 UPDATE

システム設定ファイルを知ろう〜XF86Config〜

[木田佳克,ITmedia]

 XF86Configファイルは,/etc/XF86Config(XFree86 version 3.x)や/etc/X11/XF86Config(XFree86 version 4.x)に保存されるXサーバ(XFree86)の設定ファイルである。XF86SetupやXF86Configコマンドを実行し,Xサーバの設定をすると書き込まれる。

 startxやxdmでX サーバが起動される際には,この設定ファイル内容が反映される仕組みだ。以下の例は,MGA G400 AGPグラフィックチップが認識されたTurbolinux 7での標準設定内容である。

# cat /etc/X11/XF86Config
#
# XF86Config generated by xconfig
# Please do not edit this file by hand!
# Run xconfig to make changes to the X configuration.
# For advanced users, details about the format of this file
# can be found in the XF86Config man page.

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

Section "Files"
FontPath"/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
FontPath"/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
FontPath"/usr/X11R6/lib/X11/fonts/local/"
FontPath"/usr/X11R6/lib/X11/fonts/extra/"
FontPath"/usr/X11R6/lib/X11/fonts/misc/"
FontPath"/usr/X11R6/lib/X11/fonts/latin2/75dpi/"
FontPath"/usr/X11R6/lib/X11/fonts/latin2/100dpi/"
FontPath"/usr/X11R6/lib/X11/fonts/latin2/misc/"
FontPath"/usr/X11R6/lib/X11/fonts/Type1/"
FontPath"/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath"/usr/X11R6/lib/X11/fonts/CID/"
FontPath"/usr/X11R6/lib/X11/fonts/PEX/"
FontPath"/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath"/usr/X11R6/lib/X11/fonts/100dpi/"
FontPath"/usr/X11R6/lib/X11/fonts/cyrillic/"
FontPath"/usr/X11R6/lib/X11/fonts/TrueType/"
FontPath"/usr/X11R6/lib/X11/fonts/tt/"
FontPath"/usr/X11R6/lib/X11/fonts/unicode/"
EndSection

Section "Module"
Load"dbe"
Load"extmod"
SubSection"extmod"
#Option "omit xfree86-dga"
EndSubSection
Load"type1"
#Load "freetype"
Load"xtt"
Load"bitmap"
Load"speedo"
Load"pex5"
Load"GLcore"
Load"glx"
Load"dri"
Load"record"
Load"xie"
EndSection

Section "InputDevice"
Identifier"Keyboard0"
Driver"keyboard"
Option"AutoRepeat""500 30"
Option"XkbRules""xfree86"
Option"XkbModel""jp106"
Option"XkbLayout" "jp"
EndSection

Section "InputDevice"
Identifier"Mouse0"
Driver"mouse"
Option"Protocol""IMPS/2"
Option"Device""/dev/psaux"
Option"Emulate3Buttons" "yes"
#MouseName"Microsoft - IntelliMouse (PS/2)"
Option"Buttons" "5"
Option"ZAxisMapping""4 5"
EndSection

Section "Monitor"
Identifier"Monitor0"
HorizSync 24.0-86.0
VertRefresh 50.0-152.0
#VendorName "DDC"
#ModelName"Unprobed Monitor"
EndSection

Section "Device"
Identifier"Card0"
### Available Driver options are:-
#Option "SWcursor" # [<bool>]
#Option "HWcursor" # [<bool>]
#Option "PciRetry" # [<bool>]
#Option "SyncOnGreen" # [<bool>]
#Option "NoAccel" # [<bool>]
#Option "ShowCache" # [<bool>]
#Option "Overlay" # [<str>]
#Option "MGASDRAM" # [<bool>]
#Option "ShadowFB" # [<bool>]
#Option "UseFBDev" # [<bool>]
#Option "ColorKey" # <i>
#Option "SetMclk" # <freq>
#Option "OverclockMem" # [<bool>]
#Option "VideoKey" # <i>
#Option "Rotate" # [<str>]
#Option "TexturedVideo" # [<bool>]
#Option "Crtc2Half" # [<bool>]
#Option "Crtc2Ram" # <i>
#Option "Int10" # [<bool>]
#Option "AGPMode" # <i>
#Option "DigitalScreen" # [<bool>]
#Option "TV" # [<bool>]
#Option "TVStandard" # [<str>]
#Option "CableType" # [<str>]
#Option "NoHal" # [<bool>]
#Option "SwappedHead" # [<bool>]
#Option "DRI" # [<bool>]
Driver"mga"
VendorName"Matrox"
BoardName "MGA G400 AGP"
BusID "PCI:1:0:0"
VideoRam32768
EndSection

Section "Screen"
Identifier"Screen0"
Device"Card0"
Monitor "Monitor0"
DefaultDepth24
SubSection"Display"
Depth 8
EndSubSection
SubSection"Display"
Depth 15
EndSubSection
SubSection"Display"
Depth 16
EndSubSection
SubSection"Display"
Depth 24
Modes "1280x1024"
EndSubSection
EndSection

Section "DRI"
EndSection

# End of XF86Config.
# Configured by xconfig
# Configured date:

Copyright © ITmedia, Inc. All Rights Reserved.

注目のテーマ