This software may not, in whole or in part, be copied through any means, mechanical, electromechanical, or
otherwise, without the express permission of NVIDIA Corporation.
Information furnished is believed to be accurate and reliable. However, NVIDIA assumes no responsibility for the
consequences of use of such information nor for any infringement of patents or other rights of third parties, which
may result from its use. No License is granted by implication or otherwise under any patent or patent rights of
NVIDIA Corporation.
Specifications mentioned in the software are subject to change without notice.
NVIDIA Corporation products are not authorized for use as critical components in life support devices or systems
without express written approval of NVIDIA Corporation.
NVIDIA, the NVIDIA logo, GeForce, GeForce2 Ultra, GeForce2 MX, GeForce2 GTS, GeForce 256, GeForce3,
Quadro2, NVIDIA Quadro2, Quadro2 Pro, Quadro2 MXR, Quadro, NVIDIA Quadro, Vanta, NVIDIA Vanta, TNT2,
NVIDIA TNT2, TNT, NVIDIA TNT, RIVA, NVIDIA RIVA, NVIDIA RIVA 128ZX, and NVIDIA RIVA 128 are
registered trademarks or trademarks of NVIDIA Corporation in the United States and/or other countries.
Intel and Pentium are registered trademarks of Intel.
Microsoft, Windows, Windows NT, Direct3D, DirectDraw, and DirectX are registered trademarks of Microsoft
Corporation.
CDRS is a trademark and Pro/ENGINEER is a registered trademark of Parametric Technology Corporation.
OpenGL is a registered trademark of Silicon Graphics Inc.
SPECglperf and SPECviewperf are trademarks of the Standard Performance Evaluation Corporation.
Other company and product names may be trademarks or registered trademarks of the respective owners with which
they are associated.
NVIDIA Corporation
C HAPTER
1
Overview
The Purpose of Compressed Modes
About This Document
OMPRESSED
C
Advanced NVIDIA graphics processors and software drivers have greatly increased the
number of possible display mode combinations.
Compressed Modes is NVIDIA’s method for efficiently specifying any number of desired
display modes without having to add huge mode lists to the Windows registry.
• The information in this document applies to NVIDIATM Display Drivers for Windows®
NT 4.0, Windows 2000, and Windows XP—Release 40 and later—and explains how to
construct a master display mode list using the compressed modes method.
• Revision History
RevisionDateDescription
1.03/29/02Initial Release
1.13/29/02Simplified the
2.08/29/02Revised to reflect the new compressed mode architecture for
Release 40 drivers.
2.110/24/02
Effective in version 41.00:
eliminate separate product groupings. All products are now
specified within the same INF entry.
Adding Mode Deltas to the INF
Simplified the INF entry to
ODES
M
section.
Removed use of the UseCompressedModeFormat registry
key.
NVIDIA Corporation
Compressed Modes User’s Guide – Version 2.1 1
HAPTER
C
Compressed Modes
1
Using Compressed Modes
Constructing the Mode List
The basic steps for constructing a master mode list are as follows:
For a graphics card or group of graphics cards, determine which modes you want to
1
make available at which refresh rates.
To simplify the mode delta list, group the modes according to common refresh rates.
For example, all modes that are available at refresh rates of 60, 70, and 85 Hz should
be grouped together.
Add the following entry to the “Add registry” section of the adapter INF.
2
1
,, NV_Modes, %REG_MULTI_SZ%, "{
HKR
group 1)
Where—
(mode group 2)
;
; ...;{
PCI ID header 1}(mode
PCI ID header 2
} ...”
PCI ID header n
•
= a list, or range, of values that correspond to product PCI IDs,
separated by commas. “{*}” indicates all PCI IDs.
See “Understanding the PCI ID Header” on page 3 for a detailed explanation.
mode group n
•
See “Understanding the Mode Group Structure” on page 3
= string data for each mode group.
for a detailed
explanation.
Install the driver using the new INF.
3
1. For Windows NT 4.0 and Windows 2000—
“HKR” in the INF represents the registry key
HKEY_LOCAL_MACHINE \\SYSTEM\\CurrentControlSet\\Services\\nv4\\Device X
where X is one of 0, 1, 2, 3, ….
For Windows XP—
“HKR” in the INF represents the registry key
where the “GUID” stands for an ID string and “XXXX” can be either 0000, 0001, 0002, etc.
The exact path represented by “GUID\\XXXX” is found in the registry key
where “X” is one of 0, 1, 2, etc. If an NVIDIA card is the first or only card installed, the key is
Video0, which is the most common case.
NVIDIA Corporation
2Compressed Modes User’s Guide– Version 2.1
Understanding the PCI ID Header
The PCI ID header specifies which graphics cards to apply the succeeding modes.
• The PCI ID header consists of any combination of single PCI IDs as well as ranges.
“{*}” indicates all PCI IDs:
Examples:
{*} = all PCI IDs
•
{100-309} = the inclusive range of PCI IDs from 0x100 through 0x309
•
{100-103,113} = PCI ID 0x113, and the inclusive range of 0x100 through 0x103
•
• If the graphics card matches any one of the ID s listed in the PCI ID header, then the
succeeding modes apply until another PCI ID header is encountered.
Understanding the Mode Group Structure
Mode delta groups consist of one or more modes, and are separated by a semicolon. Each
mode within the mode group consists of one or more of the items shown in Figure 1.1.
HAPTER
C
Compressed Modes
1
SHV 2048x1536x32=1;
Mode type
Resolution
Bit depth
Refresh Rate
Figure 1.1
Mode Group Structure
Mode Type
The mode type entry specifies whether the modes that follow include standard or spanning
modes.
• The entry can include any combination of S, H, or V.
= Standard mode
•
S
= Horizontal spanning mode
•
H
= Vertical spanning mode
•
V
SH 800x600
Example
: “
(horizontal spanning).
” specifies resolutions of 800x600 (standard) and 1600x600
• The mode type applies to all modes that follow, until another mode type is specified.
NVIDIA Corporation
Compressed Modes User’s Guide – Version 2.1 3
HAPTER
C
Compressed Modes
1
Resolution
Format - Horizontal resolution x vertical resolution
Bit Depth
•
•
When no bit depth is specified, then all bit depths (8, 16, and 32 bpp) are applied
automatically.
To specify a subset, list the specific bit depths, separated by commas.
Format: “[
The bit depth applies only to the resolution that it follows.
•
x8
] or [
x8,16]
or [
x8,32]
or [
x16
] or [
x16,32]
or [
x32
]”
Refresh Rate
At the end of each mode group, specify the refresh rates to apply to all the modes in
•
the mode group.
Format: “=[refresh rate code];”
Refresh Rate Code for Standard Refresh Rates:
•
Specify standard refresh rates using a hexadecimal number, where each bit
represents a specific refresh rate as defined in Figure 1.2.
15
X X X 240 200 170 150 144 140 120 100 85 75 72 70 60
Figure 1.2
Example
Refresh Rate Code for Custom Refresh Rates
•
Specify custom refresh rates (those not included in Figure 1.2) using a four digit hex
number in the format
custom refresh rate.
Refresh Rate Code Bit Definitions
: 1 = 60 Hz; 1DF = 144, 140, 120, 85, 75, 72, 70, and 60 Hz.