Back to Howawan's Homepage to index to Yahoo's Homepage

nBSDinstall7/XF86Config ......

inhalts

nBSDinstall7@ここまでで、やっとXなしで動くようになったわけですから、次はいよいよxを動かすことになるわけです。つまり/etc/X11/XF86Configを作るわけです。まず#からxf86configを実行します。ただし、動きません。ただ、XF86Configをつくるのが目的です。いったんできれば、つぎの点を注意して手書きでなおせばよいわけです。 以下なおすとこだけ。実際にうごいているXF86(確かv.4.4.0?)です。 # File generated by xf86config. から始まり。 ********************************************************************** # Module section -- this section is used to specify # which dynamically loadable modules to load. # このセクションは下手にさわると止まる。 ********************************************************************** # Section "Module" ********************************************************************** # Input devices # ********************************************************************** #ここからが要注意! /dev/wskbdの次に1とか2とかいれないでやってみる。 ********************************************************************** # Core keyboard's InputDevice section # ********************************************************************** Section "InputDevice" Identifier "Keyboard1" Driver "Keyboard" Option "Protocol" "wskbd" Option "Device" "/dev/wskbd" # These are the default XKB settings for XFree86 # Option "XkbRules" "xfree86" # Option "XkbModel" "pc101" # Option "XkbLayout" "us" # Option "XkbVariant" "" # Option "XkbOptions" "" # Option "XkbDisable" Option "XkbRules" "xfree86" Option "XkbModel" "jp106" Option "XkbLayout" "jp" Option "XkbVariant" "altjp" EndSection # ********************************************************************** # Core Pointer's InputDevice section # ここもキーボードと同じ要領。うごかないのが、videocard のidentifierの設定や、screenとばかりおもっていたらこのあたり、ということもままあります。 ********************************************************************** Section "InputDevice" # Identifier and driver Identifier "Mouse1" Driver "mouse" Option "Protocol" "wsmouse" Option "Device" "/dev/wsmouse" Option "ZAxisMapping" "4 5" # Option "Emulate3Buttons" # Option "Emulate3Timeout" "50" EndSection # ********************************************************************** # Other input device sections ********************************************************************** # Monitor section # ここは、multisync(もともとコメントアウトしてある)の復活と verticalに気をつける。 ********************************************************************** # Any number of monitor sections may be present Section "Monitor" Identifier "Generic Monitor" # HorizSync is in kHz unless units are specified. # HorizSync may be a comma separated list of discrete values, or a # comma separated list of ranges of values. # NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S # USER MANUAL FOR THE CORRECT NUMBERS. # HorizSync 31.5 - 35.1 HorizSync 30-64 # multisync # HorizSync 31.5, 35.2 # multiple fixed sync frequencies # HorizSync 15-25, 30-50 # multiple ranges of sync frequencies # VertRefresh is in Hz unless units are specified. # VertRefresh may be a comma separated list of discrete values, or a # comma separated list of ranges of values. # NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S # USER MANUAL FOR THE CORRECT NUMBERS. VertRefresh 50-70 Option "dpms" EndSection # ********************************************************************** # Graphics device section # ここは思った程神経質ではないのです。 Identifierと driverでしょう。 ********************************************************************** # Any number of graphics device sections may be present # Standard VGA Device: Section "Device" Identifier "Standard VGA" VendorName "Unknown" BoardName "Unknown" Driver "vga" # BusID "PCI:0:10:0" # VideoRam 256 EndSection # Device configured by xf86config: Section "Device" Identifier "Radeon 9200" Driver "ati" #VideoRam 256 # Insert Clocks lines here if appropriate EndSection # ********************************************************************** # Screen sections #ここは、monitorとvideocardがうまくできていれば、defaultの色の深さの設定と、mode設定が(たしか、ひとつあれば)大丈夫。 ********************************************************************** # Any number of screen sections may be present. Each describes # the configuration of a single screen. A single specific screen section # may be specified from the X server command line with the "-screen" # option. Section "Screen" Identifier "Screen 1" Device "Radeon 9200" Monitor "Generic Monitor" DefaultDepth 16 Subsection "Display" Depth 8 Modes "640x400" ViewPort 0 0 EndSubsection Subsection "Display" Depth 16 Modes "800x600" ViewPort 0 0 EndSubsection # Subsection "Display" # Depth 24 # Modes "800x600" # ViewPort 0 0 # EndSubsection EndSection # ********************************************************************** # ServerLayout sections. # このうしろはさわらなくてよい。 ********************************************************************** # Section "DRI" # Mode 0666 # EndSection