Mini Howto Subject: X Windows setup (xf86config) By: นายเชิด ต่อโชติ Date: 24 กันยายน 2541 License: สงวนลิขสิทธิ์เอกสารนี้ โดย นายเชิด ต่อโชติ การเผยแพร่เอกสารนี้จะต้องอยู่ภายไต้ เงื่อนไขของ GNU General Public License เวอร์ชั่น 2.0 ที่ออกโดย Free Sofware Foundation กรุณาอ่านรายละเอียดของ GPL ที่ Introduction: การ Configure X windows สำหรับ Slackware ด้วยวิธีนี้ค่อนข้างยุ่งยาก แต่ก็เป็นวิธีการเดียวที่จะทำได้ ก็ขอให้ทำการทดลอง และจดบันทึก ผลที่เกิดขึ้น ไว้เพื่อ เปรียบเทียบ ก่อนที่ จะเริ่มทำการ Configควรที่จะตรวจระบบว่าใช้การ์ดแสดงผลชนิดใด จำนวนหน่วยความจำเท่าไร เพื่อเป็นข้อมูล Prerequire: ดำเนินการติดตั้ง linux slackware พร้อม diskset ฃุด x ตรวจสอบ Card แสดงผล ใช้คำสั่งดังนี้ [root@localhost /]# SuperProbe จะปรากฏผลดังนี้ SuperProbe Version 2.15 (4 August 1997) (c) Copyright 1993,1994 by David Wexelblat This work is derived from the 'vgadoc2.zip' and 'vgadoc3.zip' documentation packages produced by Finn Thoegersen, and released with all appropriate permissions having been obtained. Additional information obtained from 'Programmer's Guide to the EGA and VGA, 2nd ed', by Richard Ferraro, and from manufacturer's data books The author welcomes bug reports and other comments mailed to the electronic mail address above. In particular, reports of chipsets that this program fails to correctly detect are appreciated. Before submitting a report, please make sure that you have the latest version of SuperProbe (see http://www.xfree86.org/FAQ). WARNING - THIS SOFTWARE COULD HANG YOUR MACHINE. READ THE SuperProbe.1 MANUAL PAGE BEFORE RUNNING THIS PROGRAM. INTERRUPT WITHIN FIVE SECONDS TO ABORT! หลังจากรอชั่วขณะหนึ่ง ผลการตรวจสอบจะออกมาดังนี้ First video: Super-VGA Chipset: ATI 264CT (Port Probed) Memory: 2048 Kbytes RAMDAC: ATI Mach64 integrated 15/16/24/32-bit DAC w/clock (with 6-bit wide lookup tables (or in 6-bit mode)) (programmable for 6/8-bit wide lookup tables) Attached graphics coprocessor: Chipset: ATI Mach64 Memory: 2048 Kbytes เริ่มทำการติดตั้ง Xwindow (xf86config) [root@localhost /]# xf86config จะมีข้อความปรากฏ ในลักษณะดังนี้ This program will create a basic XF86Config file, based on menu selections you make. The XF86Config file usually resides in /usr/X11R6/lib/X11 or /etc/X11. A sample XF86Config file is supplied with XFree86; it is configured for a standard VGA card and monitor with 640x480 resolution. This program will ask for a pathname when it is ready to write the file. You can either take the sample XF86Config as a base and edit it for your configuration, or let this program produce a base XF86Config file for your configuration and fine-tune it. Refer to /usr/X11R6/lib/X11/doc/README.Config for a detailed overview of the configuration process. For accelerated servers (including accelerated drivers in the SVGA server), there are many chipset and card-specific options and settings. This program does not know about these. On some configurations some of these settings must be specified. Refer to the server man pages and chipset-specific READMEs. Before continuing with this program, make sure you know the chipset and amount of video memory on your video card. SuperProbe can help with this. It is also helpful if you know what server you want to run. Press enter to continue, or ctrl-c to abort. ให้กดปุ่ม enter The directory '/usr/X386/bin' exists. You probably have an old version of XFree86 installed (XFree86 3.1 installs in '/usr/X11R6' instead of '/usr/X386'). it is important that diredtory '/usr/X11R6' is present in your search path, *before* any occurrence of '/usr/X386/bin'. If you have installed X program binaries that are not in the base XFree86 destribution in '/usr/X386/bin'. you can keep the diredtory in your path as long as it is after '/usr/X11R6'. your PAHT is currently set as follows: /usr/local/sbin:/usr/local/bin:/sbin:................. Note that the X binary diredtory in your path may be a symbolic link. in that case you could modify the symbolic link to point to the new binaries. Example: 'rm -f /usr/bin/X11; ln -s /usr/X11R6/bin /usr/bin/X11', if the link is '/usr/bin/X11' . Make sure the path is OK before continuing Press enter to continue, or ctrl-c to abort. ให้กดปุ่ม enter 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 If you have a two-button mouse, it is most likely of type 1, and if you have a three-button mouse, it can probably support both protocol 1 and 2. There are two main varieties of the latter type: mice with a switch to select the protocol, and mice that default to 1 and require a button to be held at boot-time to select protocol 2. Some mice can be convinced to do 2 by sending special sequence to the serial port (see the ClearDTR/ClearRTS options). Enter a protocol number: 4 ถ้าใช้ Mouse ชนิด PS/2 ให้กดปุ่มเลข 4 แล้ว enter ถ้าใช้ชนิดอื่นๆให้เลือกที่ใกล้เคียงที่สุด If your mouse has only two buttons, it is recommended that you enable Emulate3Buttons. Please answer the following question with either 'y' or 'n'. Do you want to enable Emulate3Buttons? y ให้กดปุ่ม y แล้ว enter 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: ให้กดปุ่ม Enter Beginning with XFree86 3.1.2D, you can use the new X11R6.1 XKEYBOARD extension to manage the keyboard layout. If you answer 'n' to the following question, the server will use the old method, and you have to adjust your keyboard layout with xmodmap. Please answer the following question with either 'y' or 'n'. Do you want to use XKB? y กดปุ่ม y แล้ว Enter The folling dialogue will allow you to select from a list of already preconfigured keymaps. If you don't find a suitable key map in the list, the program will try to combine a keymap from additional information you are asked the. Such akeymap is by default untested and may require manual tuinig. Please report success or required changes for such a keymap to XFREE86@XFREE86.ORG for addition to the list of preconfigured keymaps in the future. Press enter to continue, or ctrl-c to abort. ให้กดปุ่ม enter List of preconfigured keymaps: 1 Standard 101-key, US encoding 2 Microsoft Natural, US encoding 3 KeyTronic FlexPro, US encoding 4 Standard 101-key, US encoding with ISO9995-3 extensions 5 Standard 101-key, German encoding 6 Standard 101-key, French encoding 7 Standard 101-key, Thai encoding 8 Standard 101-key, Swiss/German encoding 9 Standard 101-key, Swiss/French encoding 10 None of the above Enter a number to choose the keymap. ให้กดปุ่มหมายเลข 7 แล้ว Enter Now we want to set the specifications of the monitor. The two critical parameters are the vertical refresh rate, which is the rate at which the the whole screen is refreshed, and most importantly the horizontal sync rate, which is the rate at which scanlines are displayed. 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. ให้กดปุ่ม Enter You must indicate the horizontal sync range of your monitor. You can either select one of the predefined ranges below that correspond to industry- standard monitor types, or give a specific range. It is VERY IMPORTANT that you do not specify a monitor type with a horizontal sync range that is beyond the capabilities of your monitor. If in doubt, choose a conservative setting. hsync in kHz; monitor type with characteristic modes 1 31.