Mini Howto
Subject: X Windows setup (xf86config)
By: นายเชิด ต่อโชติ <redhatcd@hotmail.com>
Date: 24 กันยายน 2541
License: สงวนลิขสิทธิ์เอกสารนี้
โดย นายเชิด ต่อโชติ <redhatcd@hotmail.com>
การเผยแพร่เอกสารนี้จะต้องอยู่ภายไต้
เงื่อนไขของ GNU General Public License เวอร์ชั่น
2.0 ที่ออกโดย Free Sofware Foundation
กรุณาอ่านรายละเอียดของ GPL ที่ <http://linux.thai.net/gpl.html>
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
<dwex@xfree86.org>
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.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 @ 56Hz
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): 4
ให้กดปุ่มหมายเลข 4 แล้ว enter
You must indicate the vertical 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. For interlaced modes,
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:
ให้กดปุ่มหมายเลข 4 แล้ว enter
The strings are free-form, spaces are allowed.
Enter an identifier for your monitor definition: กดปุ่ม enter
Enter the vendor name of your monitor: กดปุ่ม enter
Enter the model name of your monitor: กดปุ่ม enter
Now we must configure video card specific settings. At this point you can
choose to make a selection out of a database of video card definitions.
Because there can be variation in Ramdacs and clock generators even
between cards of the same model, it is not sensible to blindly copy
the settings (e.g. a Device section). For this reason, after you make a
selection, you will still be asked about the components of the card, with
the settings from the chosen database entry presented as a strong hint.
The database entries include information about the chipset, what server to
run, the Ramdac and ClockChip, and comments that will be included in the
Device section. However, a lot of definitions only hint about what server
to run (based on the chipset the card uses) and are untested.
If you can't find your card in the database, there's nothing to worry about.
You should only choose a database entry that is exactly the same model as
your card; choosing one that looks similar is just a bad idea (e.g. a
GemStone Snail 64 may be as different from a GemStone Snail 64+ in terms of
hardware as can be).
Do you want to look at the card database?
ให้กดปุ่ม y แล้ว Enter
จนกว่าจะถึง การ์ดแสดงผล
ที่มีอยู่ในเครื่อง
0 2 the Max MAXColor S3
Trio64V+
S3 Trio64V+
1
928Movie
S3 928
2 AGX
(generic)
AGX-014/15/16
3
ALG-5434(E)
CL-GD5434
4 ASUS
PCI-AV264CT
ATI-Mach64
5 ASUS
PCI-V264CT
ATI-Mach64
6 ASUS Video Magic PCI
V864
S3 864
7 ASUS Video Magic PCI
VT64
S3 Trio64
8 ATI 3D Pro
Turbo
ATI-Mach64
9 ATI 3D
Xpression
ATI-Mach64
10 ATI 3D Xpression+
PC2TV
ATI-Mach64
11 ATI 8514 Ultra (no
VGA)
ATI-Mach8
12 ATI
All-in-Wonder
ATI-Mach64
13 ATI Graphics Pro
Turbo
ATI-Mach64
14 ATI Graphics Pro Turbo
1600
ATI-Mach64
15 ATI Graphics
Ultra
ATI-Mach8
16 ATI Graphics Ultra
Pro
ATI-Mach32
17 ATI Graphics Xpression with 68875 RAMDAC ATI-Mach64
Enter a number to choose the corresponding card definition.
Press enter for the next page, q to continue configuration.
กดปุ่ม enter เพื่อแสดงหน้าถัดไป
18 ATI Graphics Xpression with AT&T 20C408 RAMDAC
ATI-Mach64
19 ATI Graphics Xpression with CH8398
RAMDAC
ATI-Mach64
20 ATI Graphics Xpression with Mach64 CT
(264CT)
ATI-Mach64
21 ATI Graphics Xpression with STG1702 RAMDAC
ATI-Mach64
22 ATI
Mach64
ATI-Mach64
23 ATI Mach64 3D RAGE II+, Internal
RAMDAC
ATI-Mach64
24 ATI Mach64 3D RAGE II, Internal
RAMDAC
ATI-Mach64
25 ATI Mach64 CT (264CT), Internal
RAMDAC
ATI-Mach64
26 ATI Mach64 GT (264GT), aka 3D RAGE, Internal RAMDAC
ATI-Mach64
27 ATI Mach64 VT (264VT), Internal
RAMDAC
ATI-Mach64
28 ATI Mach64 with AT&T 20C408
RAMDAC
ATI-Mach64
29 ATI Mach64 with CH8398
RAMDAC
ATI-Mach64
30 ATI Mach64 with IBM RGB514
RAMDAC
ATI-Mach64
31 ATI Ultra
Plus
ATI-Mach32
32 ATI Video
Xpression
ATI-Mach64
33 ATI Win Boost with AT&T 20C408
RAMDAC
ATI-Mach64
34 ATI Win Boost with CH8398
RAMDAC
ATI-Mach64
35 ATI Win Boost with Mach64 CT
(264CT)
ATI-Mach64
Enter a number to choose the corresponding card definition.
Press enter for the next page, q to continue configuration.
พบการ์ดแสดงผลแล้ว ให้กดปุ่ม 25
แล้ว Enter
(แต่ละเครื่องจะไม่เหมือนกัน)
Your selected card definition:
Identifier: ATI Mach64 CT (264CT), Internal RAMDAC
Chipset: ATI-Mach64
Server: XF86_Mach64
Do NOT probe clocks or use any Clocks line.
Press enter to continue, or ctrl-c to abort.
ให้กดปุ่ม Enter
Now you must determine which server to run. Refer to the manpages and other
documentation. The following servers are available (they may not all be
installed on your system):
1 The XF86_Mono server. This a monochrome server that should work on any
VGA-compatible card, in 640x480 (more on some SVGA chipsets).
2 The XF86_VGA16 server. This is a 16-color VGA server that s>
Updated : 28 มิถุนายน 2547 / ปัญญา แสนมุข Panya Saenmuk <panya@spcom.co.th>