1
# $DHD: xc/programs/Xserver/hw/xfree86/getconfig/cfg.sample,v 1.2 2003/09/23 05:12:07 dawes Exp $
3
# Some sample Xorg getconfig rules file.
6
# The line below is the getconfig rules file signature, and must be the
7
# first non-blank, non-comment line.
10
Xorg Project getconfig rules file. Version: 1.0
13
# Set the weight for the following rules. This should be set, otherwise
14
# the previously set weight will get used, and you have no idea of knowing
21
# Rules. Rules consist of a condition (in perl code) followed by
22
# a driver name and optionally some additional strings. The start of a
23
# rule is indicated by a line with no leading white space. Subsequent
24
# lines making up a rule must be indented. Logical lines may be split
25
# over multiple physical lines by using the usual continuation '\'.
27
# Rules that are not followed by a driver name may be used to do other
28
# things, like setting the weight as above.
32
# Pre-defined variables include:
34
# $vendor PCI vendor ID
35
# $device PCI device ID
36
# $revision PCI revision ID
37
# $subsys PCI subsystem ID
38
# $subsysVendor PCI subsystem vendor ID
40
# $XorgVersion Xorg version, as a 'v' string.
42
# The Xorg version information is also available as the following:
51
# Define a fake vendor ID for some sample rules.
61
# A rule with continued lines.
63
$vendor == $novendor && \
69
# Increase the weight of the following rules if the Xorg version is 4.3 or
72
$weight++ if ($XorgVersion ge v4.3)
79
# The weight can be changed at any times, and applies to rules that follow
80
# until changed again.
85
$vendor == $novendor && $XorgVersion eq v4.3.2.1
91
# The following two examples use some real values.
94
# Example: make the default depth 24 for Radeon R200 and RV200 cards.
96
$vendor == 0x1002 && \
97
($device >= 0x5148 && $device <= 0x514F || \
98
$device >= 0x5168 && $device <= 0x516C || \
99
$device == 0x4242 || \
100
$device >= 0x5157 && device <= 0x5158)
102
Option "DefaultDepth" "24"
105
# Example: enable DRI for MGA G400
107
$vendor == 0x102b && $device == 0x0525