目次

xorg.conf メモ(作り方)

2008年04月03日 00時18分05秒

FreeBSD/amd64 RELEASE 7.0 で作成する xorg.conf のメモ。

Xorg -configure

root で実行。

 amanda# Xorg -configure
 
 X.Org X Server 1.4.0
 Release Date: 5 September 2007
 X Protocol Version 11, Revision 0
 Build Operating System: FreeBSD 7.0-RELEASE amd64
 Current Operating System: FreeBSD amanda.hogehoge.jp 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 10:35:36 UTC 2008     root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
 Build Date: 22 March 2008  07:11:21PM
 
         Before reporting problems, check http://wiki.x.org
         to make sure that you have the latest version.
 Module Loader present
 Markers: (--) probed, (**) from config file, (==) default setting,
         (++) from command line, (!!) notice, (II) informational,
         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
 (==) Log file: "/var/log/Xorg.0.log", Time: Tue Apr  1 21:32:50 2008
 List of video drivers:
         ati
         atimisc
         r128
         radeon
         nv
         i810
         radeonhd
         via
         intel
         vesa
         vga
 (++) Using config file: "/root/xorg.conf.new"
 
 
 Xorg detected your mouse at device /dev/sysmouse.
 Please check your config if the mouse is still not
 operational, as by default Xorg tries to autodetect
 the protocol.
 
 Your xorg.conf file is /root/xorg.conf.new
 
 To test the server, run 'X -config /root/xorg.conf.new'
 
 amanda#

xorg.conf

出来上がったファイル /root/xorg.conf.new を /etc/X11/xorg.conf にコピーして一度 root から抜ける。 そして startx してみる。 驚いた。ちゃんと radeonhd ドライバ選択してたよ。

使っているマザーは Asus M2A-VM HDMI 。 オンボードチップが ATI Radeon Xpress 1250 の機能を提供しとります。 以下は xorg.conf。

 Section "ServerLayout"
         Identifier     "X.org Configured"
         Screen      0  "Screen0" 0 0
         InputDevice    "Mouse0" "CorePointer"
         InputDevice    "Keyboard0" "CoreKeyboard"
 EndSection
 
 Section "Files"
         RgbPath      "/usr/local/share/X11/rgb"
         ModulePath   "/usr/local/lib/xorg/modules"
         FontPath     "/usr/local/lib/X11/fonts/misc/"
         FontPath     "/usr/local/lib/X11/fonts/TTF/"
         FontPath     "/usr/local/lib/X11/fonts/OTF"
         FontPath     "/usr/local/lib/X11/fonts/Type1/"
         FontPath     "/usr/local/lib/X11/fonts/100dpi/"
         FontPath     "/usr/local/lib/X11/fonts/75dpi/"
 EndSection
 
 Section "Module"
         Load  "extmod"
         Load  "record"
         Load  "dbe"
         Load  "glx"
         Load  "GLcore"
         Load  "xtrap"
         Load  "dri"
         Load  "freetype"
         Load  "type1"
 EndSection
 
 Section "InputDevice"
         Identifier  "Keyboard0"
         Driver      "kbd"
 EndSection
 
 Section "InputDevice"
         Identifier  "Mouse0"
         Driver      "mouse"
         Option      "Protocol" "auto"
         Option      "Device" "/dev/sysmouse"
         Option      "ZAxisMapping" "4 5 6 7"
 EndSection
 
 Section "Monitor"
         Identifier   "Monitor0"
         VendorName   "Monitor Vendor"
         ModelName    "Monitor Model"
 EndSection
 
 Section "Device"
         ### Available Driver options are:-
         ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
         ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
         ### [arg]: arg optional
         #Option     "NoAccel"                   # [<bool>]
         #Option     "SWcursor"                  # [<bool>]
         #Option     "shadowfb"                  # [<bool>]
         #Option     "ignoreconnector"           # [<str>]
         #Option     "forcereduced"              # [<bool>]
         #Option     "forcedpi"                  # <i>
         #Option     "useconfiguredmonitor"      # [<bool>]
         #Option     "HPD"                       # <str>
         #Option     "NoRandr"                   # [<bool>]
         #Option     "RRUseXF86Edid"             # [<bool>]
         #Option     "RROutputOrder"             # [<str>]
         Identifier  "Card0"
         Driver      "radeonhd"
         VendorName  "ATI Technologies Inc"
         BoardName   "Radeon X1200 Series"
         BusID       "PCI:1:5:0"
 EndSection
 
 Section "Screen"
         Identifier "Screen0"
         Device     "Card0"
         Monitor    "Monitor0"
         SubSection "Display"
                 Viewport   0 0
                 Depth     1
         EndSubSection
         SubSection "Display"
                 Viewport   0 0
                 Depth     4
         EndSubSection
         SubSection "Display"
                 Viewport   0 0
                 Depth     8
         EndSubSection
         SubSection "Display"
                 Viewport   0 0
                 Depth     15
         EndSubSection
         SubSection "Display"
                 Viewport   0 0
                 Depth     16
         EndSubSection
         SubSection "Display"
                 Viewport   0 0
                 Depth     24
         EndSubSection
 EndSection

アンダーバー( _ )が入力できないことへの対応。

キーボードのInputDeviceセクションを以下の様に修正してXを再起動。

 Section "InputDevice"
         Identifier  "Keyboard0"
         Driver      "kbd"
         Option "XkbRules"   "xorg"
         Option "XkbModel"   "jp106"
         Option "XkbLayout"  "jp"
 #       Option "XkbVariant" "jp"
         Option "XkbCompat"  ""
 EndSection

参照:95: X上でアンダーバーが打てない

compiz-fusion

Linuxでは動いているようだけど、 参照:「xorg-driver-fglrx」による「ATI Radeon Xpress 1250」のOpenGL(3D)機能の動作確認
※Googleのキャッシュです。サイト http://www.hardwave.net/ が落ちているのかな?

FreeBSD/amd64では

(--) RandR disabled

と/var/log/Xorg.0.log に記録されてます故、まだ3D効果や特殊エフェクトは先になりそう。