-->
Previous | Table of Contents | Next |
The next subsection of the XF86Config file deals with the video card your system uses. You can have several cards defined with different resolutions, or simply enter the one that you will use the most. For example, the following subsection has a VGA and SVGA generic driver defined:
Section Device Identifier Generic VGA VendorName Unknown BoardName Unknown Chipset generic VideoRam 256 Clocks 25.2 28.3 EndSection Section Device # SVGA server auto-detected chipset Identifier Generic SVGA VendorName Unknown BoardName Unknown EndSection
The Identifier, VendorName, BoardName, and optional Chipset entries are strings and are used only for identification purposes. The VideoRam (the amount of RAM on the video board) and Clocks entries are used to specify any particular behavior for your card. These should be carefully checked to verify the information, as illegal entries can cause damage to some video boards.
If you have a particular video board that has special features, you can create a Device entry for that board. For example, the following entry is used for a Trident TVGA board:
Section Device Identifier Any Trident TVGA 9000 VendorName Trident BoardName TVGA 9000 Chipset tvga9000 VideoRam 512 Clocks 25 28 45 36 57 65 50 40 25 28 0 45 72 77 80 75 EndSection
The information in the VideoRam and Clocks lines is taken from the documentation file that accompanies XFree86, although it can be entered manually from the video cards documentation.
Some video boards require more detail, provided by additional entries in the devices subsection. For example, the following is for an Actix GE32+ video card with 2MB of RAM on board:
Section Device Identifier Actix GE32+ 2MB VendorName Actix BoardName GE32+ Ramdac ATT20C490 Dacspeed 110 Option dac_8_bit Clocks 25.0 28.0 40.0 0.0 50.0 77.0 36.0 45.0 Clocks 130.0 120.0 80.0 31.0 110.0 65.0 75.0 94.0 EndSection
You will see that the Ramdac and Dacspeed options, as well as an Option line, have been added to the entry. The entries that are allowed in this subsection change with each release of XFree86, so check the man pages or documentation files for more details if you want to get the most out of your video card.
Earlier in this chapter, we looked at the XFree86 server and showed how you should choose one for your X server specifically. The server section of the Xconfig or XF86Config file is where the server specification is located. The server subsection from an XF86Config file looks like this:
Section Screen Driver svga Device Generic SVGA Monitor Generic Monitor Subsection Display Depth 8 Modes 640x480 ViewPort 0 0 Virtual 800 600 EndSubsection EndSection
The preceding section shows a generic SVGA driver. The card supports the VGA 640×480 and SVGA 800×600 resolutions. If you have a more powerful video card and monitor combination, you can use a specific server file if it exists, such as the driver for the Actix GE32+ card with 2MB RAM, shown as follows:
Section Screen Driver accel Device Actix GE32+ 2MB Monitor Generic Monitor Subsection Display Depth 8 Modes 640x480 ViewPort 0 0 Virtual 1280 1024 EndSubsection SubSection Display Depth 16 Weight 565 Modes 640x480 ViewPort 0 0 Virtual 1024 768 EndSubsection EndSection
This card is set to use the special accelerated server file for the Actix card, supporting up to 1,280×1,024 resolutions. Check the list of servers to see whether there is one specifically designed for your video card. If you are not sure, default to a generic driver!
The options in this subsection do not apply to all cards, but you can set their values if you know them. The most important (and most often used) options are as follows:
Previous | Table of Contents | Next |