2003-11-25 20:29:01 +01:00
|
|
|
# $DHD: xc/programs/Xserver/hw/xfree86/getconfig/cfg.sample,v 1.2 2003/09/23 05:12:07 dawes Exp $
|
|
|
|
|
2004-04-23 21:54:30 +02:00
|
|
|
# Some sample Xorg getconfig rules file.
|
2003-11-25 20:29:01 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# The line below is the getconfig rules file signature, and must be the
|
|
|
|
# first non-blank, non-comment line.
|
|
|
|
#
|
|
|
|
|
2004-04-23 21:54:30 +02:00
|
|
|
Xorg Project getconfig rules file. Version: 1.0
|
2003-11-25 20:29:01 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# Set the weight for the following rules. This should be set, otherwise
|
|
|
|
# the previously set weight will get used, and you have no idea of knowing
|
|
|
|
# what that might be.
|
|
|
|
#
|
|
|
|
|
|
|
|
$weight = 1000
|
|
|
|
|
|
|
|
#
|
|
|
|
# Rules. Rules consist of a condition (in perl code) followed by
|
|
|
|
# a driver name and optionally some additional strings. The start of a
|
|
|
|
# rule is indicated by a line with no leading white space. Subsequent
|
|
|
|
# lines making up a rule must be indented. Logical lines may be split
|
|
|
|
# over multiple physical lines by using the usual continuation '\'.
|
|
|
|
#
|
|
|
|
# Rules that are not followed by a driver name may be used to do other
|
|
|
|
# things, like setting the weight as above.
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# Pre-defined variables include:
|
|
|
|
#
|
|
|
|
# $vendor PCI vendor ID
|
|
|
|
# $device PCI device ID
|
|
|
|
# $revision PCI revision ID
|
|
|
|
# $subsys PCI subsystem ID
|
|
|
|
# $subsysVendor PCI subsystem vendor ID
|
|
|
|
# $class PCI class
|
2004-04-23 21:54:30 +02:00
|
|
|
# $XorgVersion Xorg version, as a 'v' string.
|
2003-11-25 20:29:01 +01:00
|
|
|
#
|
2004-04-23 21:54:30 +02:00
|
|
|
# The Xorg version information is also available as the following:
|
2003-11-25 20:29:01 +01:00
|
|
|
#
|
2004-04-23 21:54:30 +02:00
|
|
|
# $XorgVersionNumeric
|
|
|
|
# $XorgVersionMajor
|
|
|
|
# $XorgVersionMinor
|
|
|
|
# $XorgVersionPatch
|
|
|
|
# $XorgVersionSnap
|
2003-11-25 20:29:01 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
# Define a fake vendor ID for some sample rules.
|
|
|
|
|
|
|
|
$novendor = 0x10000
|
|
|
|
$nodevice = 0x10000
|
|
|
|
|
|
|
|
$vendor == $novendor
|
|
|
|
nodriver
|
|
|
|
Option "xx"
|
|
|
|
Videoram 1000
|
|
|
|
|
|
|
|
# A rule with continued lines.
|
|
|
|
|
|
|
|
$vendor == $novendor && \
|
|
|
|
$device == $nodevice
|
|
|
|
nodriver2
|
|
|
|
Option \
|
|
|
|
"yy"
|
|
|
|
|
2004-04-23 21:54:30 +02:00
|
|
|
# Increase the weight of the following rules if the Xorg version is 4.3 or
|
2003-11-25 20:29:01 +01:00
|
|
|
# higher.
|
|
|
|
|
2004-04-23 21:54:30 +02:00
|
|
|
$weight++ if ($XorgVersion ge v4.3)
|
2003-11-25 20:29:01 +01:00
|
|
|
|
|
|
|
$vendor == $novendor
|
|
|
|
nodriver
|
|
|
|
Option "yy"
|
|
|
|
|
|
|
|
#
|
|
|
|
# The weight can be changed at any times, and applies to rules that follow
|
|
|
|
# until changed again.
|
|
|
|
#
|
|
|
|
|
|
|
|
$weight = 100
|
|
|
|
|
2004-04-23 21:54:30 +02:00
|
|
|
$vendor == $novendor && $XorgVersion eq v4.3.2.1
|
2003-11-25 20:29:01 +01:00
|
|
|
nodriver3
|
|
|
|
|
|
|
|
$weight = 600
|
|
|
|
|
|
|
|
#
|
|
|
|
# The following two examples use some real values.
|
|
|
|
#
|
|
|
|
|
|
|
|
# Example: make the default depth 24 for Radeon R200 and RV200 cards.
|
|
|
|
|
|
|
|
$vendor == 0x1002 && \
|
|
|
|
($device >= 0x5148 && $device <= 0x514F || \
|
|
|
|
$device >= 0x5168 && $device <= 0x516C || \
|
|
|
|
$device == 0x4242 || \
|
|
|
|
$device >= 0x5157 && device <= 0x5158)
|
|
|
|
ati
|
|
|
|
Option "DefaultDepth" "24"
|
|
|
|
|
|
|
|
|
|
|
|
# Example: enable DRI for MGA G400
|
|
|
|
|
|
|
|
$vendor == 0x102b && $device == 0x0525
|
|
|
|
mga
|
|
|
|
Option "dri"
|
|
|
|
|