² X-Window ]w
wA@IЫeod\̷s峹
̪sG2003/02/12
X-Window[c
@@XFree86 vtiP
@@X server, X client P Window manager
@@XFree86 Dn]wɮ
ϥγ]wuGXFdrake, Xconfigurator
ϥXFree86Ѫu]wGxf86cfg, xf86config
ʭקXFree86]w
ҰX-Window
sܥdXʵ{dGHGeforce2 MX
Dm

X-Window[c
bUnix-Like]ALinux@~Uϧάɭq`Qڭ²٬X-WindowoAoX-WindowӪHLثeOˡH٦AX-WindowDnODq[c(Server, Client)AoǥDq[cO^ƩOHڭ̩UNӽͤ@ͳoǪFaI

ϥγ]wuGXFdrake, XconfiguratorG
nFApGAX-WindowӴNSDA򩳤UƴNiHnݰաIOApGAX-Window@ǩǪA򩳤U]w觋NoL@@@IثeϥΤWKA٬OHUadistributionѪpuӳ]wڭ̪/etc/X11/XF86Config-4oɮ׸KAӳ]we~GG
  1. L榡F
  2. ƹ榡F
  3. ù榡A]tѪRסBBsWvF
  4. ܥdDnXʵ{A]NOҿתX server̥DneաI
  5. ܪѪRסG
WܪѪRٱonAѤ@UAڭ̦b]wùѪR׮ɡAOyڪùt̰ѪRסzAӦbĤܪѪRסAOڭ̶iJX-WindowåBϥWindow managerӾާ@DAӮୱ䴩ѪRװաI]AĤTùѪR׷MNiH]woI
@
ثe̬y檺MLinuxGMandrakePRed HatѤnӳ]wXF86Config-4ANOG oӮM]wشXGO@Ҥ@˰աCnFAаOoƥAXF86Config-4oɮקaC ²aAoNOϥΤunӳ]wkCUڭ̨Ӵ@A򥿲Ϊ]wXFree86ӫ򪱡H


ϥXFree86Ѫu]wGxf86cfg, xf86config
򥻤WAXFree86 wgѤF۷nΪ{ڭ̳]w XF86Config-4 FINO xf86cfg xf86config oӡI
@
xf86cfg |۰ʪڭ̪DTAåBNs XF86Config.new ɮשmb]w̪aؿUA۷KIunϥΪ̦bҰ X-Window eANۤvaؿ XF86Config.new ƻs /etc/X11/XF86Config-4 oɮסAN]wաIOAѩ xf86cfg DnO۰ڭ̮ƪADzϥ man xf86cfg ӬdߥLѼơA_h``LkۤvwҦIϥΪkObOCҦUAUF xf86cfg YiI
@
۹ xf86cfg DʰơAo xf86config h㪺ѺAsA]LҦ]wݭnϥΪ̵OI]ALBƹBùBѪR׵DCLA]LOgѨϥΪ̳]wAҥH۵M]NkѨϥΪ̤@ӳߦnҳ]woIUڭ̴Nw xf86config ӽͤ@ͧaI
@
[root @test root]# xf86config
Step 1: dzƳƥPO_iH
This program will create a basic XF86Config file, based on menu selections you make.
Before continuing with this program, make sure you know what video card
you have, and preferably also the chipset it uses and the amount of video
memory on your video card. SuperProbe may be able to help with this.
Press enter to continue, or ctrl-c to abort.   <==o̫UEnter}l]w

Step 2: ]wƹG
First specify a mouse protocol type. Choose one from the following list:
 1.  Microsoft compatible (2-button protocol)
 2.  Mouse Systems (3-button protocol)
 3.  Bus Mouse
 4.  PS/2 Mouse
 5.  Logitech Mouse (serial, old type, Logitech protocol)
 6.  Logitech MouseMan (Microsoft compatible)
 7.  MM Series
 8.  MM HitTablet
 9.  Microsoft IntelliMouse
Enter a protocol number: 4  <==DnO24Aثejhϥps/2ƹAҥH4NFI

Do you want to enable Emulate3Buttons? n <==O_THڭ̤wgOTAMI

Now give the full device name that the mouse is connected to, for example
/dev/tty00. Just pressing enter will use the default, /dev/mouse.
Mouse device:  <==o̭n]wƹ˸mNAq`ϥιw]ȧYiAҥHUEnterI

Step 3: ]wL榡G
  1  Generic 101-key PC
  2  Generic 102-key (Intl) PC
  3  Generic 104-key PC
  4  Generic 105-key (Intl) PC
  5  Dell 101-key PC
  6  Everex STEPnote
  7  Keytronic FlexPro
  8  Microsoft Natural
Enter a number to choose the keyboard.
<==LΦApGDAL榡A 1 3 YiI

  1  U.S. English
  2  U.S. English w/ ISO9995-3
  3  U.S. English w/ deadkeys
  4  Albanian
Enter a number to choose the country.
Press enter for the next page
1   <==LAڭLWO^rIҥHM 1 ^I

Please enter a variant name for 'us' layout. Or just press enter
for default variant
  <==ܳoLW١Aw]٬ us AηdSAEnterYiI

Please answer the following question with either 'y' or 'n'.
Do you want to select additional XKB options (group switcher,
group indicator, etc.)? n  <==O_ݭnB~XKBﶵAݭnաI n I

Step 4:]wù
Now we want to set the specifications of the monitor. 
The valid range for horizontal sync and vertical sync should be documented
in the manual of your monitor. If in doubt, check the monitor database
/usr/X11R6/lib/X11/doc/Monitors to see if your monitor is there.
Press enter to continue, or ctrl-c to abort.  <==dzƳ]wùAEnter}l

    hsync in kHz; monitor type with characteristic modes
 1  31.5; Standard VGA, 640x480 @ 60 Hz
 2  31.5 - 35.1; Super VGA, 800x600 @ 56 Hz
 3  31.5, 35.5; 8514 Compatible, 1024x768 @ 87 Hz interlaced (no 800x600)
 4  31.5, 35.15, 35.5; Super VGA, 1024x768 @ 87 Hz interlaced, 800x600 @ 56 Hz
 5  31.5 - 37.9; Extended Super VGA, 800x600 @ 60 Hz, 640x480 @ 72 Hz
 6  31.5 - 48.5; Non-Interlaced SVGA, 1024x768 @ 60 Hz, 800x600 @ 72 Hz
 7  31.5 - 57.0; High Frequency SVGA, 1024x768 @ 70 Hz
 8  31.5 - 64.3; Monitor that can do 1280x1024 @ 60 Hz
 9  31.5 - 79.0; Monitor that can do 1280x1024 @ 74 Hz
10  31.5 - 82.0; Monitor that can do 1280x1024 @ 76 Hz
11  Enter your own horizontal sync range
Enter your choice (1-11): 7 <==ثeù 7 ӳYUաI
MApGAùnAiHҼ{ 8~10 ܡI

the number that counts is the high one (e.g. 87 Hz rather than 43 Hz).
 1  50-70
 2  50-90
 3  50-100
 4  40-150
 5  Enter your own vertical sync range
Enter your choice: 2  <==ثeù 2 ]ӳSDաI

You must now enter a few identification/description strings, namely an
identifier, a vendor name, and a model name. Just pressing enter will fill
in default names.
The strings are free-form, spaces are allowed.
Enter an identifier for your monitor definition: MyMonitor<==o̭ng@UAùNA
HKgSYաI]oӬObXF86Config̭NӤwI

Step 5: ]wܥd
Do you want to look at the card database? y <==O_nܥdHMOnoI

468  SiS 5597                                          SiS5597
469  SiS 5598                                          SIS5598
470  SiS 620                                           SIS620
471  SiS 6326                                          SiS6326
472  SiS SG86C201                                      SIS86C201
Enter a number to choose the corresponding card definition.
Press enter for the next page, q to continue configuration.
471<==o̱ۤUӷ|AܧAܥdơAѩڭ̪Ʈw۷ejAҥH
      pGӭSAnƮɡAiHUEnterU@hܡIpGAt
      OpPHSYAGupAܤPtӦOP˴
      ƴNiHFIѩڬOϥSis 6326AҥHN471oӸXoI

Your selected card definition:
Identifier: SiS 6326
Chipset:    SiS6326
Driver:     sis
Do NOT probe clocks or use any Clocks line.
Press enter to continue, or ctrl-c to abort.  <==o̦AEnterYiI

How much video memory do you have on your video card:
 1  256K
 2  512K
 3  1024K
 4  2048K
 5  4096K
 6  Other
Enter your choice: 6 <==]wAܥdOAثeDywgɨ 64MBFA
                        ҥH۵Mn 6 Ӧ۩wFIOo RAM kG
                        32M = 32*1024= 32768K ~I

Amount of video memory in Kbytes: 1024 <==ڪdu 1M ӤwK.

The strings are free-form, spaces are allowed.
Enter an identifier for your video card definition:  <==o̫U Enter ϥιw]ȧYiI

Step 6:]wùѪRסG
"640x480" "800x600" "1024x768" for 8-bit
"640x480" "800x600" for 16-bit
"640x480" for 24-bit

Modes that cannot be supported due to monitor or clock constraints will
be automatically skipped by the server.

 1  Change the modes for 8-bit (256 colors)
 2  Change the modes for 16-bit (32K/64K colors)
 3  Change the modes for 24-bit (24-bit color)
 4  The modes are OK, continue.

Enter your choice: <==w]pU|WǼҦAڳq`w@ؼҦӤwA
                         ҥHNU 3 ӭקӼҦA]wڳw 1024x768 ӼҦC

Select modes from the following list:
 1  "640x400"
 2  "640x480"
 3  "800x600"
 4  "1024x768"
 5  "1280x1024"
 6  "320x200"
 7  "320x240"
 8  "400x300"
 9  "1152x864"
 a  "1600x1200"
 b  "1800x1400"
 c  "512x384"
Please type the digits corresponding to the modes that you want to select.
For example, 432 selects "1024x768" "800x600" "640x480", with a
default mode of 1024x768.

Which modes? <==ܧڭnI

Please answer the following question with either 'y' or 'n'.
Do you want a virtual screen that is larger than the physical screen? n
W]wbAO_ݭnୱHڤ~nOIҥH n oI

 1  Change the modes for 8-bit (256 colors)
 2  Change the modes for 16-bit (32K/64K colors)
 3  Change the modes for 24-bit (24-bit color)
 4  The modes are OK, continue.

Enter your choice:  4  <==o˴N OK FI

Please specify which color depth you want to use by default:

  1  1 bit (monochrome)
  2  4 bits (16 colors)
  3  8 bits (256 colors)
  4  16 bits (65536 colors)
  5  24 bits (16 million colors)
Enter a number to choose the default depth.
<==w]O@Ӧm׵nJOHܧAnIڭnO 5 ӦmסI

Step 7: gJ]w
Shall I write it to /etc/X11/XF86Config? y <==i@IIL y gJaIϥwgƥFI

@
o˴N]wFAO·ЪOAoӫOb]wXF86ConfigAҥHAݱNLƻsXF86Config-4~iHOIMNiHդ@UX-WindowO_\oI

ʭקXFree86]w
nFAJMDeXөNNOb]wXF86Config-4oɮסAڭ̰ZO]iHۦhקoɮשOHnISIҥHڭ̴Nӭ׭קoɮקaIAoɮ׸̭NܦhqoؼҼˡG
@
Section section name
KK..
KK..
EndSection
@
}Y Section ۸ӬqeءAMᵲH EndSection ӵAڭ̪bɮפei满aIаѦҤ@UUeoG
@
[root @test X11]# vi /etc/X11/XF86Config-4
Section "Module"
        Load  "dbe"
        Load  "dri"
        Load  "extmod"
        Load  "glx"
        Load  "record"
        Load  "xie"
        Load  "freetype"
        Load  "type1"
        Load "v4l"
EndSection
WƦbJXX-WindowɭԡAݭnҲնءIq`oǶسLJihaIt~AҲժƥiHb/usr/X11R6/lib/modulesoӥؿI

Section "Device"
        Identifier  "Card0"
        Driver      "nv"
        VendorName  "NVidia"
        BoardName   "GeForce2 MX"
        BusID       "PCI:1:0:0"
        Option "X-KXCONFIG-VideoRam" "32768"
        Option "X-KXCONFIG-MaxClock" "350"
EndSection
oӶئb]wAܥdXʵ{IHڪdҡAoӨҤlAϥΪO Geforce 2 MXA
ҥHMNOϥ nv oӹw] Nvidia Xʵ{աI٦OptioṋVideoRam]wOܥdOeqAOoIܩLشNSo򭫭nI

Section "Files"
        RgbPath "/usr/X11R6/lib/X11/rgb"
        FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
        FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled"
        FontPath "/usr/X11R6/lib/X11/fonts/TrueType"
        FontPath "/usr/X11R6/lib/X11/fonts/Type1"
        FontPath "/usr/X11R6/lib/X11/fonts/Speedo"
        FontPath "/usr/X11R6/lib/X11/fonts/ghostscript"
EndSection
oӶئb]wrPCARgbPathO]wmAFontPathhO]wraI
o̧iDڭ̥t@ӸTANOrq`O\b/usr/X11R6/lib/X11/fonts̭I

Section "ServerFlags"
        Option "AllowMouseOpenFail" false
EndSection
o̥iH]wX-Windowt@ӾưѼơIW AllowMouseOpenFail ]wA
Y]w false SXʷƹANnJX-WindowoI

Section "InputDevice"
        Driver          "keyboard"
        Identifier      "keyboard"
        Option          "XkbRules"      "xfree86"
        Option          "XkbModel"      "pc104"
        Option          "XkbLayout"     "us_group3"
EndSection
Section "InputDevice"
        Driver          "mouse"
        Identifier      "mouse"
        Option          "Protocol"      "IMPS/2"
        Option          "Device"        "/dev/psaux"
        Option "ZAxisMapping"  "4 5"
EndSection
oӬOb]wPJALηƹس]wA`NW骺aAkeyboard]wOL榡(XkbModelP XkbLayout)AӷƹhO]w(Protocol)nI

Section "ServerLayout"
        Identifier      "Default layout"
        Screen          0 "Screen0" 0 0
        InputDevice     "mouse" "CorePointer"
        InputDevice     "usbmice" "SendCoreEvents"
        InputDevice     "keyboard" "CoreKeyboard"
EndSection
oӦab]wӵeXOIIb Screen Ӷت]wI 0 0 OୱW 0 0 NI

Section "Monitor"
        Identifier "Generic Monitor"
        VendorName "Typical Monitors"
        ModelName "1280x1024, 60Hz"
        HorizSync 31-64
        VertRefresh 50-90
        ModeLine "1024x768/70Hz" 75    1024 1048 1184 1328   768  771  777  806 -HSync -VSync
        ModeLine "640x480" 25.175 640 664 760 800 480 491 493 525
EndSection
oӶثhO]wùӶA]AѪRסBsWv]wȳI

Section "Screen"
    Identifier  "Screen0"
    Device      "Card0"
    Monitor     "Generic Monitor"
    DefaultDepth 16
    Subsection "Display"
        Depth       32
        Modes "1024x768/70Hz" "640x480"
                Virtual 0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes "1024x768/70Hz" "640x480"
                Virtual 0 0
    EndSubsection
    Subsection "Display"
        Depth       8
        Modes "1024x768/70Hz" "640x480"
                Virtual 0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes "1024x768/70Hz"
                Virtual 0 0
    EndSubsection
EndSection
IӤFIoӴNO]wAiJX-WindowɭԡAܪѪRoIw]䴩س|giӡAOAt򪺧ڡANOwohئsbAҥHڥiHNWơAuѤUrALRAiJX-WindowNu@ܼҦIKաIMoAA]iHǥѭקDefaultDepthӶبӱnJX-Windowɪ]woI

@
o˴N]wաIӦpGAgFyୱAVirtual desktopzɡANקSection Screen ӶءAṊ Virtual 令 0 0 YioI@ӨAڭ̦b]wX-WindowɡAq`|HUaLinux distributionѪnӳ]wApGন\ANHxf86cfgӦ۰ʳ]wA٤ন\ANHxf86configӳ]wAA\AunϥΤʪ觋ק]woI

ҰX-Window
nFA]wnFXF86Config-4A۵MNOnҰX-WindowոլoIӦpҰX-WindowOHpGb}y{²@gJӪ@LܡAӷ|DAڭ̪}iJҦhءAO򥻤W`nJhrun-level 3rnJrun-level 5ϧΤnJIpGOrun-level 5ܡAܱzثeӤwgObX-WindowҤUFApGObrun-level 3nX-WindoweUANLG
startx
NiHաIoӮɭԴN|DʪӱNڭ̭]weLXʬݬݡApGiHܡA۵MN|iJୱoIpGiJAAL]waI ^_^

sܥdXʵ{dҡGHGeforce2 MX
U@ڪܥdäQڪXFree86Ҥ䴩OHҦp̷sGeforce4oǴժܥdHSYAणXʵwOwoitӦYAҥHunw}oӯXʵ{ܡA۵MNiHSDLXoIUڭ̥Hثe̱`NvidiaܥdӶi满AjaAѤ@UpsoXʵ{aI

Dm ( nݵ׽бNƹʨyGzUťճBAUťճBYi )

2003/02/12GĤ@