¦b¶}©l³]©w X11 ¤§«e¡An¥ýÁA¸Ñ©Òn¸Ëªº¾÷¾¹¸ê®Æ¬°¦ó¡G
¿Ã¹õ³W®æ
Åã¥Ü¥dªº´¹¤ù³W®æ
Åã¥Ü¥dªº°O¾ÐÅé®e¶q
X11 ·|¨Ì¿Ã¹õ³W®æ¨Ó¨M©w¸ÑªR«×¥H¤Î§ó·sÀW²v¡C ³o¨Ç³W®æ³q±`¥i±q¿Ã¹õ©Òªþªº¤å¥ó©Î¼t°Óºô¯¸¤W¨ú±o¡C ³Ì«nªº¬Onª¾¹D¤ô¥¡B««ª½§ó·sÀW²v¬°¦ó¡C
¦ÓÅã¥Ü¥d´¹¤ù«h¨M©w X11 n¥Îþ¤@ºØÅX°Êµ{¦¡¼Ò²Õ¡C ¤j¦h¼Æªº´¹¤ù³£¥i¥H¦Û°Ê°»´ú¡A¦ý³Ì¦nÁÙ¬Onª¾¹D¬O¦óºØ´¹¤ù¡A ¥H§K¸U¤@¦Û°Ê°»´ú¥¢±Ñ¡C
Video memory on the graphic adapter determines the resolution and color depth which the system can run at. This is important to know so the user knows the limitations of the system.
Xorg ¦Û 7.3 ª©°_¤£¦A»Ý¥ô¦ó³]©wÀÉ¡A¥un¥´¤U¦C§Y¥i¡G
% startx
Y³o«ü¥O¤£¦æ©Î¹w³]³]©wµLªk¨Ï¥Î¡A¨º»ò´N»Ýn¤â°Ê³]©w X11¡C ³]©w X11 »Ýn´XÓ¨BÆJ¡Aº¥ý¬O¥H¨t²ÎºÞ²zªÌ±b¸¹¨Ó«Ø¥ßªì©l³]©wÀÉ¡G
# Xorg -configure
³o·|¦b /root ¥Ø¿ý¤º²£¥Í xorg.conf.new ³]©wÀÉ(µL½×¬O¥Î su(1) ©Îª½±µµn¤J¬° root¡A³£·|§ïÅÜ root ¹w³]ªº $HOME Àô¹ÒÅܼÆ)¡C X11 µ{¦¡±µµÛ·|°»´ú¨t²ÎªºÅã¥Ü¥d¬ÛÃöµwÅé¡A¨Ã±N°»´ú¨ìµwÅé°T®§¼g¤J³]©wÀÉ¡A ¥H«K¸ü¤J¥¿½TªºÅX°Êµ{¦¡¡C
¤U¤@¨B¬O´ú¸Õ²{¦³ªº³]©wÀÉ¡A¥H«K½T»{ Xorg ¥i¥H»PÅã¥Ü¥d¡B¿Ã¹õ¬ÛÃöµwÅ饿½T¹B§@¡G
# Xorg -config xorg.conf.new
Y¬Ý±o¨ì¤@°ï¶Â¦Ç§¨Âøªººô®æµe±¡A¥H¤Î X §Îªº·Æ¹«´å¼Ð¡A ¨º»ò³]©wÀÉ´N¬O¦¨¥\ªº¡C n°h¥X´ú¸Õ¡A¥un¦P®É«ö¤U Ctrl+Alt+Backspace §Y¥i¡C
Note: Y·Æ¹«¤£¥¿½T¹B§@¡A¨º»ò»Ýn¥ý¹ï¨ä§@³]©w¡C ½Ð°Ñ¾\ FreeBSD ¦w¸Ë¤@³¹¤¤ªº Section 2.10.10 »¡©ú¡C
Next, tune the xorg.conf.new configuration file to taste. Open the file in a text editor such as emacs(1) or ee(1). First, add the frequencies for the target system's monitor. These are usually expressed as a horizontal and vertical synchronization rate. These values are added to the xorg.conf.new file under the "Monitor" section:
Section "Monitor" Identifier "Monitor0" VendorName "Monitor Vendor" ModelName "Monitor Model" HorizSync 30-107 VertRefresh 48-120 EndSection
The HorizSync and VertRefresh keywords may be missing in the configuration file. If they are, they need to be added, with the correct horizontal synchronization rate placed after the HorizSync keyword and the vertical synchronization rate after the VertRefresh keyword. In the example above the target monitor's rates were entered.
X allows DPMS (Energy Star) features to be used with capable monitors. The xset(1) program controls the time-outs and can force standby, suspend, or off modes. If you wish to enable DPMS features for your monitor, you must add the following line to the monitor section:
Option "DPMS"
While the xorg.conf.new configuration file is still open in an editor, select the default resolution and color depth desired. This is defined in the "Screen" section:
Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" DefaultDepth 24 SubSection "Display" Viewport 0 0 Depth 24 Modes "1024x768" EndSubSection EndSection
The DefaultDepth keyword describes the color depth to run at
by default. This can be overridden with the -depth
command
line switch to
Xorg(1). The Modes
keyword describes the resolution to run at for the given color depth. Note that only VESA
standard modes are supported as defined by the target system's graphics hardware. In the
example above, the default color depth is twenty-four bits per pixel. At this color
depth, the accepted resolution is 1024 by 768 pixels.
Finally, write the configuration file and test it using the test mode given above.
Note: One of the tools available to assist you during troubleshooting process are the X11 log files, which contain information on each device that the X11 server attaches to. Xorg log file names are in the format of /var/log/Xorg.0.log. The exact name of the log can vary from Xorg.0.log to Xorg.8.log and so forth.
If all is well, the configuration file needs to be installed in a common location where Xorg(1) can find it. This is typically /etc/X11/xorg.conf or /usr/local/etc/X11/xorg.conf.
# cp xorg.conf.new /etc/X11/xorg.conf
The X11 configuration process is now complete. Xorg ¥Ø«e¥i³z¹L startx(1) ¨Ó±Ò°Ê¤§¡C The X11 server may also be started with the use of xdm(1).
Note: There is also a graphical configuration tool, xorgcfg(1), which comes with the X11 distribution. It allows you to interactively define your configuration by choosing the appropriate drivers and settings. This program can be invoked from the console, by typing the command xorgcfg -textmode. For more details, refer to the xorgcfg(1) manual pages.
Alternatively, there is also a tool called xorgconfig(1). This program is a console utility that is less user friendly, but it may work in situations where the other tools do not.
Configuration with Intel® i810 integrated chipsets requires the agpgart AGP programming interface for X11 to drive the card. ¸Ô±¡½Ð°Ñ¾\ agp(4) »¡©ú¡C
This will allow configuration of the hardware as any other graphics board. Note on systems without the agp(4) driver compiled in the kernel, trying to load the module with kldload(8) will not work. This driver has to be in the kernel at boot time through being compiled in or using /boot/loader.conf.
¥»¸`°²³]¦U¦ì¤w¸g¦³¨Ç·L¶i¶¥³]©wªº¥\¤O¡C ¦pªG¸ÕµÛ¨Ï¥Î¤Wz³]©w¤u¨ã·|¦³°ÝÃDªº¸Ü¡A½Ð¦h§Q¥Î¬ÛÃö log ÀÉ (·|°O¿ý¬ÛÃö°T®§)¥H«K§ä¥X¸Ñªk¡C §ä´M¸Ñªk¹Lµ{¤¤¡A¥i¯à·|»Ýn¥Î¨ì¤å¦r½s¿è¾¹§@¬°»²§U¡C
¥Ø«eªº¼e¿Ã¹õ (WSXGA, WSXGA+, WUXGA, WXGA, WXGA+ µ¥) ³£¦³¤ä´© 16:10 ¤Î 10:9 ¤ñ¨Ò¡A¥H¤Î¤@¨Ç¥i¯à¦³°ÝÃDªº¤ñ¨Ò¡C ¥H¤U¬O¤@¨Ç±`¨£ªº 16:10 ¿Ã¹õ¸ÑªR«×¡G
2560x1600
1920x1200
1680x1050
1440x900
1280x800
¬Y¤è±¦Ó¨¥¡An¼W¥[³o¨Ç¸ÑªR«×³]©w¤]¬O¬Û·í®e©öªº¡A ¥un¦b Section "Screen" ¤ºªº Mode ¥[¤W¥h´N¦n¡A¤ñ¦p¡G
Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" DefaultDepth 24 SubSection "Display" Viewport 0 0 Depth 24 Modes "1680x1050" EndSubSection EndSection
Xorg ¥i¥H³z¹L I2C/DDC ¨Ó±oª¾¸Ó¼e¿Ã¹õ©Ò¤ä´©ªº¸ÑªR«×µ¥¬ÛÃö¸ê°T¡A ¦]¦¹´N¯à¥¿½T°»´ú¥X¸Ó¿Ã¹õ©Ò¯à¤ä´©ªºÀW²v¡B¸ÑªR«×¡C
YÅX°Êµ{¦¡¨Ã¥¼¥]¬A ModeLine °T®§ªº¸Ü¡A ¨º»ò´Nn¬° Xorg °µ¨Ç³]©w¤~¦æ¡C §ÚÌ¥i¥H³z¹L /var/log/Xorg.0.log ÀɨӨú±o ModeLine ¬ÛÃö³]©w¸ê®Æ¡A§Y¥iÅý¿Ã¹õ¥¿±`Åã¥Ü¡C À³¸Ó¥i¥H¬Ý¨ìÃþ¦ü¤U±ªº°T®§¡G
(II) MGA(0): Supported additional Video Mode: (II) MGA(0): clock: 146.2 MHz Image Size: 433 x 271 mm (II) MGA(0): h_active: 1680 h_sync: 1784 h_sync_end 1960 h_blank_end 2240 h_border: 0 (II) MGA(0): v_active: 1050 v_sync: 1053 v_sync_end 1059 v_blanking: 1089 v_border: 0 (II) MGA(0): Ranges: V min: 48 V max: 85 Hz, H min: 30 H max: 94 kHz, PixClock max 170 MHz
³o¨Ç°T®§³QºÙ¬° EDID °T®§¡C ¥i¥HÂǥѳo¨Ç¸ê®Æ¡A ·f°t¤U¦Cªº¥¿½T¶¶§Ç¨Ó²£¥Í ModeLine ³]©w¡G
ModeLine <name> <clock> <4 horiz. timings> <4 vert. timings>
©Ò¥H³oÓ®×¨Ò Section "Monitor" ªº ModeLine ´N·|¬O¹³¤U±³o¼Ë¡G
Section "Monitor" Identifier "Monitor1" VendorName "Bigname" ModelName "BestModel" ModeLine "1680x1050" 146.2 1680 1784 1960 2240 1050 1053 1059 1089 Option "DPMS" EndSection
³o¼Ë¤l´N²³æ§¹¦¨¤F¡AX µøµ¡´N¥i¥H¥´³y¬°·sªº¼e¿Ã¹õÀô¹ÒÅo¡C
¥»¤å¤Î¨ä¥L¤å¥ó¡A¥i¥Ñ¦¹¤U¸ü¡Gftp://ftp.FreeBSD.org/pub/FreeBSD/doc/¡C
Y¦³ FreeBSD ¤è±ºÃ°Ý¡A½Ð¥ý¾\Ū FreeBSD ¬ÛÃö¤å¥ó¡A¦p¤£¯à¸Ñ¨Mªº¸Ü¡A¦A¬¢¸ß
<questions@FreeBSD.org>¡C
Ãö©ó¥»¤å¥óªº°ÝÃD¡A½Ð¬¢¸ß <doc@FreeBSD.org>¡C