Penguin
Blame: XF86Config(5x)
EditPageHistoryDiffInfoLikePages
Annotated edit history of XF86Config(5x) version 3 showing authors affecting page license. View with all changes included.
Rev Author # Line
1 JohnMcPherson 1 !!NAME
2 XF86Config - Configuration File for [XFree86]
3
4 !!DESCRIPTION
5 ''XFree86'' uses a configuration file called __XF86Config__ for its initial setup. This configuration file is searched for in the following places when the server is started as a normal user:
6
7
8
9 /etc/X11/ ''<cmdline>''
10 /usr/X11R6/etc/X11/ ''<cmdline>''
11 /etc/X11/ __$XF86CONFIG__
12 /usr/X11R6/etc/X11/ __$XF86CONFIG__
13 /etc/X11/XF86Config-4
14 /etc/X11/XF86Config
15 /etc/XF86Config
16 /usr/X11R6/etc/X11/XF86Config. ''<hostname>''
17 /usr/X11R6/etc/X11/XF86Config-4
18 /usr/X11R6/etc/X11/XF86Config
19 /usr/X11R6/lib/X11/XF86Config. ''<hostname>''
20 /usr/X11R6/lib/X11/XF86Config-4
21 /usr/X11R6/lib/X11/XF86Config
22
23
24
25
26 where ''<cmdline>'' is a relative path (with no ".." components) specified with the __-xf86config__ command line option, __$XF86CONFIG__ is the relative path (with no ".." components) specified by that environment variable, and ''<hostname>'' is the machines hostname as reported by gethostname(3).
27
28 When the X server is started by the "root" user, the config file search locations are as follows:
29
30
31
32 ''<cmdline>''
33 /etc/X11/ ''<cmdline>''
34 /usr/X11R6/etc/X11/ ''<cmdline>''
35 __$XF86CONFIG__
36 /etc/X11/ __$XF86CONFIG__
37 /usr/X11R6/etc/X11/ __$XF86CONFIG__
38 __$HOME__ /XF86Config
39 /etc/X11/XF86Config-4
40 /etc/X11/XF86Config
41 /etc/XF86Config
42 /usr/X11R6/etc/X11/XF86Config. ''<hostname>''
43 /usr/X11R6/etc/X11/XF86Config-4
44 /usr/X11R6/etc/X11/XF86Config
45 /usr/X11R6/lib/X11/XF86Config. ''<hostname>''
46 /usr/X11R6/lib/X11/XF86Config-4
47 /usr/X11R6/lib/X11/XF86Config
48
49
50
51
52 where ''<cmdline>'' is the path specified with the __-xf86config__ command line option (which may be absolute or relative), __$XF86CONFIG__ is the path specified by that environment variable (absolute or relative), __$HOME__ is the path specified by that environment variable (usually the home directory), and ''<hostname>'' is the machines hostname as reported by gethostname(3).
53
54 The __XF86Config__ file is composed of a number of sections which may be present in any order. Each section has the form:
55
56
57
58 __Section "__ ''!SectionName'' __"__
59
60 ''!SectionEntry''
61
62 ...
63 __!EndSection__
64
65
66 The section names are:
67
68
69
70 __Files __ File pathnames
71 __!ServerFlags __ Server flags
72 __Module __ Dynamic module loading
73 __!InputDevice __ Input device description
74 __Device __ Graphics device description
75 __!VideoAdaptor __ Xv video adaptor description
76 __Monitor __ Monitor description
77 __Modes __ Video modes descriptions
78 __Screen __ Screen configuration
79 __!ServerLayout __ Overall layout
80 __DRI __ DRI-specific configuration
81 __Vendor __ Vendor-specific configuration
82
83
84
85
86 The following obsolete section names are still recognised for compatibility purposes. In new config files, the __!InputDevice__ section should be used instead.
87
88
89
90 __Keyboard __ Keyboard configuration
91 __Pointer __ Pointer/mouse configuration
92
93
94
95
96 The old __XInput__ section is no longer recognised.
97
98 The __!ServerLayout__ sections are at the highest level. They bind together the input and output devices that will be used in a session. The input devices are described in the __!InputDevice__ sections. Output devices usually consist of multiple independent components (e.g., and graphics board and a monitor). These multiple components are bound together in the __Screen__ sections, and it is these that are referenced by the __!ServerLayout__ section. Each __Screen__ section binds together a graphics board and a monitor. The graphics boards are described in the __Device__ sections, and the monitors are described in the __Monitor__ sections.
99
100 Config file keywords are case-insensitive, and "_" characters are ignored. Most strings (including __Option__ names) are also case-insensitive, and insensitive to white space and "_" characters.
101
102 Each config file entry usually take up a single line in the file. They consist of a keyword, which is possibly followed by one or more arguments, with the number and types of the arguments depending on the keyword. The argument types are:
103
104
105
106 __Integer __ an integer number in decimal, hex or octal
107 __Real __ a floating point number
108 __String __ a string enclosed in double quote marks (")
109
110
111 Note: hex integer values must be prefixed with "0x", and octal values with "0".
112
113 A special keyword called __Option__ may be used to provide free-form data to various components of the server. The __Option__ keyword takes either one or two string arguments. The first is the option name, and the optional second argument is the option value. Some commonly used option value types include:
114
115 __Integer __ an integer number in decimal, hex or octal
116 __Real __ a floating point number
117 __String __ a sequence of characters
118 __Boolean __ a boolean value (see below)
119 __Frequency __ a frequency value (see below)
120
121
122
123
124 Note that ''all'' __Option__ values, not just strings, must be enclosed in quotes.
125
126 Boolean options may optionally have a value specified. When no value is specified, the option's value is __TRUE__ . The following boolean option values are recognised as __TRUE__ :
127
128
129 __1__ , __on__ , __true__ , __yes__
130
131
132 and the following boolean option values are recognised as __FALSE__ :
133
134
135 __0__ , __off__ , __false__ , __no__
136
137
138 If an option name is prefixed with " __No__ ", then the option value is negated.
139
140 Example: the following option entries are equivalent:
141
142
143
144 __Option "Accel" "Off"__
145 __Option "!NoAccel"__
146 __Option "!NoAccel" "On"__
147 __Option "Accel" "false"__
148 __Option "Accel" "no"__
149
150
151
152 Frequency option values consist of a real number that is optionally followed by one of the following frequency units:
153
154
155 __Hz__ , __k__ , __kHz__ , __M__ , __MHz__
156
157
158 When the unit name is omitted, the correct units will be determined from the value and the expectations of the appropriate range of the value. It is recommended that the units always be specified when using frequency option values to avoid any errors in determining the value.
159
160 !!FILES SECTION
161 The __Files__ section is used to specify some path names required by the server. Some of these paths can also be set from the command line (see ''Xserver(1)'' and ''XFree86(1)'' ). The command line settings override the values specified in the config file. The entries that can appear in this section are:
162 ;__!FontPath "__ ''path'' __"__ : sets the search path for fonts. This path is a comma separated list of font path elements which the X server searches for font databases. Multiple __!FontPath__ entries may be specified, and they will be concatenated to build up the fontpath used by the server. Font path elements may be either absolute directory paths, or a font server identifier. Font server identifiers have the form:
163
164
165 ''<trans>'' / ''<hostname>'' : ''<port-number>''
166
167
168
169 where ''<trans>'' is the transport type to use to connect to the font server (e.g., __unix__ for UNIX-domain sockets or __tcp__ for a TCP/IP connection), ''<hostname>'' is the hostname of the machine running the font server, and ''<port-number>'' is the port number that the font server is listening on (usually 7100).
170
171 When this entry is not specified in the config file, the server falls back to the compiled-in default font path, which contains the following font path elements:
172
173
174 /usr/X11R6/lib/X11/fonts/misc/
175 /usr/X11R6/lib/X11/fonts/Speedo/
176 /usr/X11R6/lib/X11/fonts/Type1/
177 /usr/X11R6/lib/X11/fonts/CID/
178 /usr/X11R6/lib/X11/fonts/75dpi/
179 /usr/X11R6/lib/X11/fonts/100dpi/
180
181 The recommended font path contains the following font path elements:
182
183
184
185 /usr/X11R6/lib/X11/fonts/local/
186 /usr/X11R6/lib/X11/fonts/misc/
187 /usr/X11R6/lib/X11/fonts/75dpi/:unscaled
188 /usr/X11R6/lib/X11/fonts/100dpi/:unscaled
189 /usr/X11R6/lib/X11/fonts/Type1/
190 /usr/X11R6/lib/X11/fonts/CID/
191 /usr/X11R6/lib/X11/fonts/Speedo/
192 /usr/X11R6/lib/X11/fonts/75dpi/
193 /usr/X11R6/lib/X11/fonts/100dpi/
194
195
196
197 Font path elements that are found to be invalid are removed from the font path when the server starts up.
198
199 ;__RGBPath "__ ''path'' __"__ : sets the path name for the RGB color database. When this entry is not specified in the config file, the server falls back to the compiled-in default RGB path, which is:
200
201
202 /usr/X11R6/lib/X11/rgb
203
204 ;__!ModulePath "__ ''path'' __"__ : sets the search path for loadable X server modules. This path is a comma separated list of directories which the X server searches for loadable modules loading in the order specified. Multiple __!ModulePath__ entries may be specified, and they will be concatenated to build the module search path used by the server.
205
206
207 !!SERVERFLAGS SECTION
208 The __!ServerFlags__ section is used to specify some global X server options. All of the entries in this section are __Options__ , although for compatibility purposes some of the old style entries are still recognised. Those old style entries are not documented here, and using them is discouraged.
209
210 __Options__ specified in this section may be overridden by __Options__ specified in the active __!ServerLayout__ section. Options with command line equivalents are overridden when their command line equivalent is used. The options recognised by this section are:
211 ;__Option "!NoTrapSignals" "__ ''boolean'' __"__ : This prevents the X server from trapping a range of unexpected fatal signals and exiting cleanly. Instead, the X server will die and drop core where the fault occurred. The default behaviour is for the X server exit cleanly, but still drop a core file. In general you never want to use this option unless you are debugging an X server problem and know how to deal with the consequences.
212 ;__Option "!DontZap" "__ ''boolean'' __"__ : This disallows the use of the __Ctrl+Alt+Backspace__ sequence. That sequence is normally used to terminate the X server. When this option is enabled, that key sequence has no special meaning and is passed to clients. Default: off.
213 ;__Option "!DontZoom" "__ ''boolean'' __"__ : This disallows the use of the __Ctrl+Alt+Keypad-Plus__ and __Ctrl+Alt+Keypad-Minus__ sequences. These sequences allows you to switch between video modes. When this option is enabled, those key sequences have no special meaning and are passed to clients. Default: off.
214 ;__Option "!DisableVidModeExtension" "__ ''boolean'' __"__ : This disables the parts of the !VidMode extension used by the xvidtune client that can be used to change the video modes. Default: the !VidMode extension is enabled.
215 ;__Option "!AllowNonLocalXvidtune" "__ ''boolean'' __"__ : This allows the xvidtune client (and other clients that use the !VidMode extension) to connect from another host. Default: off.
216 ;__Option "!DisableModInDev" "__ ''boolean'' __"__ : This disables the parts of the XFree86-Misc extension that can be used to modify the input device settings dynamically. Default: that functionality is enabled.
217 ;__Option "!AllowNonLocalModInDev" "__ ''boolean'' __"__ : This allows a client to connect from another host and change keyboard and mouse settings in the running server. Default: off.
218 ;__Option "!AllowMouseOpenFail" "__ ''boolean'' __"__ : This allows the server to start up even if the mouse device can't be opened/initialised. Default: false.
219 ;__Option "VTInit" "__ ''command'' __"__ : Runs ''command'' after the VT used by the server has been opened. The command string is passed to "/bin/sh -c", and is run with the real user's id with stdin and stdout set to the VT. The purpose of this option is to allow system dependent VT initialisation commands to be run. This option should rarely be needed. Default: not set.
220 ;__Option "VTSysReq" "__ ''boolean'' __"__ : enables the SYSV-style VT switch sequence for non-SYSV systems which support VT switching. This sequence is __Alt-!SysRq__ followed by a function key ( __Fn__ ). This prevents the X server trapping the keys used for the default VT switch sequence, which means that clients can access them. Default: off.
221 ;__Option "!BlankTime" "__ ''time'' __"__ : sets the inactivity timeout for the blanking phase of the screensaver. ''time'' is in minutes. This is equivalent to the Xserver's `-s' flag, and the value can be changed at run-time with ''xset(1)''. Default: 10 minutes.
222 ;__Option "!StandbyTime" "__ ''time'' __"__ : sets the inactivity timeout for the "standby" phase of DPMS mode. ''time'' is in minutes, and the value can be changed at run-time with ''xset(1)''. Default: 20 minutes. This is only suitable for VESA DPMS compatible monitors, and may not be supported by all video drivers. It is only enabled for screens that have the __"DPMS"__ option set (see the MONITOR section below).
223 ;__Option "!SuspendTime" "__ ''time'' __"__ : sets the inactivity timeout for the "suspend" phase of DPMS mode. ''time'' is in minutes, and the value can be changed at run-time with ''xset(1)''. Default: 30 minutes. This is only suitable for VESA DPMS compatible monitors, and may not be supported by all video drivers. It is only enabled for screens that have the __"DPMS"__ option set (see the MONITOR section below).
224 ;__Option "!OffTime" "__ ''time'' __"__ : sets the inactivity timeout for the "off" phase of DPMS mode. ''time'' is in minutes, and the value can be changed at run-time with ''xset(1)''. Default: 40 minutes. This is only suitable for VESA DPMS compatible monitors, and may not be supported by all video drivers. It is only enabled for screens that have the __"DPMS"__ option set (see the MONITOR section below).
225 ;__Option "Pixmap" "__ ''bpp'' __"__ : This sets the pixmap format to use for depth 24. Allowed values for ''bpp'' are 24 and 32. Default: 32 unless driver constraints don't allow this (which is rare). Note: some clients don't behave well when this value is set to 24.
226 ;__Option "PC98" "__ ''boolean'' __"__ : Specify that the machine is a Japanese PC-98 machine. This should not be enabled for anything other than the Japanese-specific PC-98 architecture. Default: auto-detected.
227 ;__Option "NoPM" "__ ''boolean'' __"__ : Disables something to do with power management events. Default: PM enabled on platforms that support it.
228 ;__Option "Xinerama" "__ ''boolean'' __"__ : enable or disable XINERAMA extension. Default is disabled.
229
230
231 !!MODULE SECTION
232 The __Module__ section is used to specify which X server modules should be loaded. This section is ignored when the X server is built in static form. The types of modules normally loaded in this section are X server extension modules, and font rasteriser modules. Most other module types are loaded automatically when they are needed via other mechanisms.
233
234 Entries in this section may be in two forms. The first and most commonly used form is an entry that uses the __Load__ keyword, as described here:
235 ;__Load "__ ''modulename'' __"__ : This instructs the server to load the module called ''modulename'' . The module name given should be the module's standard name, not the module file name. The standard name is case-sensitive, and does not include the "lib" prefix, or the ".a", ".o", or ".so" suffixes.
236
237
238 Example: the Type 1 font rasteriser can be loaded with the following entry:
239
240 __Load "type1"__
241
242
243
244 The second form of entry is a __!SubSection,__ with the subsection name being the module name, and the contents of the __!SubSection__ being __Options__ that are passed to the module when it is loaded.
245
246 Example: the extmod module (which contains a miscellaneous group of server extensions) can be loaded, with the XFree86-DGA extension disabled by using the following entry:
247
248
249
250 __!SubSection "extmod"__
251 __ Option "omit XFree86-DGA"__
252 __!EndSubSection__
253
254
255
256
257 Modules are searched for in each directory specified in the __!ModulePath__ search path, and in the drivers, input, extensions, fonts, and internal subdirectories of each of those directories. In addition to this, operating system specific subdirectories of all the above are searched first if they exist.
258
259 To see what font and extension modules are available, check the contents of the following directories:
260
261
262
263 /usr/X11R6/lib/modules/fonts
264 /usr/X11R6/lib/modules/extensions
265
266
267
268
269 The "bitmap" font modules is loaded automatically. It is recommended that at very least the "extmod" extension module be loaded. If it isn't some commonly used server extensions (like the SHAPE extension) will not be available.
270
271 !!INPUTDEVICE SECTION
272 The config file may have multiple __!InputDevice__ sections. There will normally be at least two: one for the core (primary) keyboard, and one of the core pointer.
273
274 __!InputDevice__ sections have the following format:
275
276
277
278 __Section "!InputDevice"__
279 __ Identifier "__ ''name'' __"__
280 __ Driver "__ ''inputdriver'' __"__
281 '' options''
282 '' ...''
283 __!EndSection__
284
285
286 The __Identifier__ entry specifies the unique name for this input device. The __Driver__ entry specifies the name of the driver to use for this input device. When using the loadable server, the input driver module " ''inputdriver'' " will be loaded for each active __!InputDevice__ section. An __!InputDevice__ section is considered active if it is referenced by an active __!ServerLayout__ section, or if it is referenced by the __-keyboard__ or __-pointer__ command line options. The most commonly used input drivers are "keyboard" and "mouse".
287
288 __!InputDevice__ sections recognise some driver-independent __Options__ , which are described here. See the individual input driver manual pages for a description of the device-specific options.
289 ;__Option "!CorePointer"__ : When this is set, the input device is installed as the core (primary) pointer device. There must be exactly one core pointer. If this option is not set here, or in the __!ServerLayout__ section, or from the __-pointer__ command line option, then the first input device that is capable of being used as a core pointer will be selected as the core pointer. This option is implicitly set when the obsolete __Pointer__ section is used.
290 ;__Option "!CoreKeyboard"__ : When this is set, the input device is to be installed as the core (primary) keyboard device. There must be exactly one core keyboard. If this option is not set here, in the __!ServerLayout__ section, or from the __-keyboard__ command line option, then the first input device that is capable of being used as a core keyboard will be selected as the core keyboard. This option is implicitly set when the obsolete __Keyboard__ section is used.
291 ;__Option "!AlwaysCore" "__ ''boolean'' __"__ :
292 ;__Option "!SendCoreEvents" "__ ''boolean'' __"__ : Both of these options are equivalent, and when enabled cause the input device to always report core events. This can be used, for example, to allow an additional pointer device to generate core pointer events (like moving the cursor, etc).
293 ;__Option "!HistorySize" "__ ''number'' __"__ : Sets the motion history size. Default: 0.
294 ;__Option "!SendDragEvents" "__ ''boolean'' __"__ : ???
295
296
297 !!DEVICE SECTION
298 The config file may have multiple __Device__ sections. There must be at least one, for the video card being used.
299
300 __Device__ sections have the following format:
301
302
303
304 __Section "Device"__
305 __ Identifier "__ ''name'' __"__
306 __ Driver "__ ''driver'' __"__
307 '' entries''
308 '' ...''
309 __!EndSection__
310
311
312
313
314 The __Identifier__ entry specifies the unique name for this graphics device. The __Driver__ entry specifies the name of the driver to use for this graphics device. When using the loadable server, the driver module " ''driver'' " will be loaded for each active __Device__ section. A __Device__ section is considered active if it is referenced by an active __Screen__ section.
315
316 __Device__ sections recognise some driver-independent entries and __Options__ , which are described here. Not all drivers make use of these driver-independent entries, and many of those that do don't require them to be specified because the information is auto-detected. See the individual graphics driver manual pages for further information about this, and for a description of the device-specific options. Note that most of the __Options__ listed here (but not the other entries) may be specified in the __Screen__ section instead of here in the __Device__ section.
317 ;__BusID "__ ''bus-id'' __"__ : This specifies the bus location of the graphics card. For PCI/AGP cards, the ''bus-id'' string has the form __PCI:__ ''bus'' __:__ ''device'' __:__ ''function'' (e.g., "PCI:1:0:0" might be appropriate for an AGP card). This field is usually optional in single-head configurations when using the primary graphics card. In multi-head configurations, or when using a secondary graphics card in a single-head configuration, this entry is mandatory. Its main purpose is to make an unambiguous connection between the device section and the hardware it is representing. This information can usually be found by running the X server with the __-scanpci__ command line option.
318 ;__Screen __ ''number'' : This option is mandatory for cards where a single PCI entity can drive more than one display (i.e., multiple CRTCs sharing a single graphics accelerator and video memory). One __Device__ section is required for each head, and this parameter determines which head each of the __Device__ sections applies to. The legal values of ''number'' range from 0 to one less than the total number of heads per entity. Most drivers require that the primary screen (0) be present.
319 ;__Chipset "__ ''chipset'' __"__ : This usually optional entry specifies the chipset used on the graphics board. In most cases this entry is not required because the drivers will probe the hardware to determine the chipset type. Don't specify it unless the driver-specific documentation recommends that you do.
320 ;__Ramdac "__ ''ramdac-type'' __"__ : This optional entry specifies the type of RAMDAC used on the graphics board. This is only used by a few of the drivers, and in most cases it is not required because the drivers will probe the hardware to determine the RAMDAC type where possible. Don't specify it unless the driver-specific documentation recommends that you do.
321 ;__!DacSpeed __ ''speed'' :
322 ;__!DacSpeed __ ''speed-8 speed-16 speed-24 speed-32'' : This optional entry specifies the RAMDAC speed rating (which is usually printed on the RAMDAC chip). The speed is in MHz. When one value is given, it applies to all framebuffer pixel sizes. When multiple values are give, they apply to the framebuffer pixel sizes 8, 16, 24 and 32 respectively. This is not used by many drivers, and only needs to be specified when the speed rating of the RAMDAC is different from the defaults built in to driver, or when the driver can't auto-detect the correct defaults. Don't specify it unless the driver-specific documentation recommends that you do.
323 ;__Clocks __ ''clock ...'' : specifies the pixel that are on your graphics board. The clocks are in MHz, and may be specified as a floating point number. The value is stored internally to the nearest kHz. The ordering of the clocks is important. It must match the order in which they are selected on the graphics board. Multiple __Clocks__ lines may be specified, and each is concatenated to form the list. Most drivers do not use this entry, and it is only required for some older boards with non-programmable clocks. Don't specify this entry unless the driver-specific documentation explicitly recommends that you do.
324 ;__!ClockChip "__ ''clockchip-type'' __"__ : This optional entry is used to specify the clock chip type on graphics boards which have a programmable clock generator. Only a few X servers support programmable clock chips. For details, see the appropriate X server manual page.
325 ;__!VideoRam __ ''mem'' : This optional entry specifies the amount of video ram that is installed on the graphics board. This is measured in kBytes. In most cases this is not required because the X server probes the graphics board to determine this quantity. The driver-specific documentation should indicate when it might be needed.
326 ;__!BiosBase __ ''baseaddress'' : This optional entry specifies the base address of the video BIOS for the VGA board. This address is normally auto-detected, and should only be specified if the driver-specific documentation recommends it.
327 ;__!MemBase __ ''baseaddress'' : This optional entry specifies the memory base address of a graphics board's linear frame buffer. This entry is not used by many drivers, and it should only be specified if the driver-specific documentation recommends it.
328 ;__IOBase __ ''baseaddress'' : This optional entry specifies the IO base address. This entry is not used by many drivers, and it should only be specified if the driver-specific documentation recommends it.
329 ;__ChipID __ ''id'' : This optional entry specifies a numerical ID representing the chip type. For PCI cards, it is usually the device ID. This can be used to override the auto-detection, but that should only be done when the driver-specific documentation recommends it.
330 ;__!ChipRev __ ''rev'' : This optional entry specifies the chip revision number. This can be used to override the auto-detection, but that should only be done when the driver-specific documentation recommends it.
331 ;__!TextClockFreq __ ''freq'' : This optional entry specifies the pixel clock frequency that is used for the regular text mode. The frequency is specified in MHz. This is rarely used.
332 ;__Options__ : Option flags may be specified in the __Device__ sections. These include driver-specific options and driver-independent options. The former are described in the driver-specific documentation. Some of the latter are described below in the section about the __Screen__ section, and they may also be included here.
333
334
335 !!VIDEOADAPTOR SECTION
336 Nobody wants to say how this works. Maybe nobody knows ...
337
338
339
340 !!MONITOR SECTION
341 The config file may have multiple __Monitor__ sections. There must be at least one, for the monitor being used.
342
343 __Monitor__ sections have the following format:
344
345
346
347 __Section "Monitor"__
348 __ Identifier "__ ''name'' __"__
349 '' entries''
350 '' ...''
351 __!EndSection__
352
353
354
355 The __Identifier__ entry specifies the unique name for this monitor. The __Monitor__ section provides information about the specifications of the monitor, monitor-specific __Options__ , and information about the video modes to use with the monitor. Specifying video modes is optional because the server now has a built-in list of VESA standard modes. When modes are specified explicitly in the __Monitor__ section (with the __Modes__ , __!ModeLine__ , or __!UseModes__ keywords), built-in modes with the same names are not included. Built-in modes with different names are, however, still implicitly included.
356
357 The entries that may be used in __Monitor__ sections are described below.
358 ;__!VendorName "__ ''vendor'' __"__ : This optional entry specifies the monitor's manufacturer.
359 ;__!ModelName "__ ''model'' __"__ : This optional entry specifies the monitor's model.
360 ;__!HorizSync __ ''horizsync-range'' : gives the range(s) of horizontal sync frequencies supported by the monitor. ''horizsync-range'' may be a comma separated list of either discrete values or ranges of values. A range of values is two values separated by a dash. By default the values are in units of kHz. They may be specified in MHz or Hz if __MHz__ or __Hz__ is added to the end of the line. The data given here is used by the X server to determine if video modes are within the specifications of the monitor. This information should be available in the monitor's handbook. If this entry is omitted, a default range of 28-33kHz is used.
361 ;__!VertRefresh __ ''vertrefresh-range'' : gives the range(s) of vertical refresh frequencies supported by the monitor. ''vertrefresh-range'' may be a comma separated list of either discrete values or ranges of values. A range of values is two values separated by a dash. By default the values are in units of Hz. They may be specified in MHz or kHz if __MHz__ or __kHz__ is added to the end of the line. The data given here is used by the X server to determine if video modes are within the specifications of the monitor. This information should be available in the monitor's handbook. If this entry is omitted, a default range of 43-72Hz is used.
362 ;__!DisplaySize __ ''width height'' : This optional entry gives the width and height, in millimetres, of the picture area of the monitor. If given this is used to calculate the horizontal and vertical pitch (DPI) of the screen.
363 ;__Gamma __ ''gamma-value'' :
364 ;__Gamma __ ''red-gamma green-gamma blue-gamma'' : This is an optional entry that can be used to specify the gamma correction for the monitor. It may be specified as either a single value or as three separate RGB values. The values should be in the range 0.1 to 10.0, and the default is 1.0. Not all drivers are capable of using this information.
365 ;__!UseModes "__ ''modesection-id'' __"__ : Include the set of modes listed in the __Modes__ section called ''modesection-id.'' This make all of the modes defined in that section available for use by this monitor.
366 ;__Mode ''"name"''__ : This is an optional multi-line entry that can be used to provide definitions for video modes for the monitor. In most cases this isn't necessary because the built-in set of VESA standard modes will be sufficient. The __Mode__ keyword indicates the start of a multi-line video mode description. The mode description is terminated with the __!EndMode__ keyword. The mode description consists of the following entries:
367
368 ;__!DotClock __ ''clock'' : is the dot (pixel) clock rate to be used for the mode.
369 ;__HTimings __ ''hdisp hsyncstart hsyncend htotal'' : specifies the horizontal timings for the mode.
370 ;__VTimings __ ''vdisp vsyncstart vsyncend vtotal'' : specifies the vertical timings for the mode.
371 ;__Flags "__ ''flag'' __"__ '' ...'' : specifies an optional set of mode flags, each of which is a separate string in double quotes. __"Interlace"__ indicates that the mode is interlaced. __"!DoubleScan"__ indicates a mode where each scanline is doubled. __"+HSync"__ and __"-HSync"__ can be used to select the polarity of the HSync signal. __"+VSync"__ and __"-VSync"__ can be used to select the polarity of the VSync signal. __"Composite"__ can be used to specify composite sync on hardware where this is supported. Additionally, on some hardware, __"+CSync"__ and __"-CSync"__ may be used to select the composite sync polarity.
372 ;__HSkew __ ''hskew'' : specifies the number of pixels (towards the right edge of the screen) by which the display enable signal is to be skewed. Not all drivers use this information. This option might become necessary to override the default value supplied by the server (if any). "Roving" horizontal lines indicate this value needs to be increased. If the last few pixels on a scan line appear on the left of the screen, this value should be decreased.
373 ;__VScan __ ''vscan'' : specifies the number of times each scanline is painted on the screen. Not all drivers use this information. Values less than 1 are treated as 1, which is the default. Generally, the __"!DoubleScan"__ __Flag__ mentioned above doubles this value.
374
2 CraigBox 375 ;__!ModeLine "__ ''name'' __"__ '' mode-description'' : This entry is a more compact version of the __Mode__ entry, and it also can be used to specify video modes for the monitor. is a single line format for specifying video modes. In most cases this isn't necessary because the built-in set of VESA standard modes will be sufficient. The ''mode-description'' is in four sections, the first three of which are mandatory. The first is the dot (pixel) clock. This is a single number specifying the pixel clock rate for the mode in MHz. The second section is a list of four numbers specifying the horizontal timings. These numbers are the ''hdisp'' , ''hsyncstart'' , ''hsyncend'' , and ''htotal'' values. The third section is a list of four numbers specifying the vertical timings. These numbers are the ''vdisp'' , ''vsyncstart'' , ''vsyncend'' , and ''vtotal'' values. The final section is a list of flags specifying other characteristics of the mode. __Interlace__ indicates that the mode is interlaced. __!DoubleScan__ indicates a mode where each scanline is doubled. __+HSync__ and __-HSync__ can be used to select the polarity of the HSync signal. __+VSync__ and __-VSync__ can be used to select the polarity of the VSync signal. __Composite__ can be used to specify composite sync on hardware where this is supported. Additionally, on some hardware, __+CSync__ and __-CSync__ may be used to select the composite sync polarity. The __HSkew__ and __VScan__ options mentioned above in the __Modes__ entry description can also be used here.
1 JohnMcPherson 376
377 ;__Options__ : Some __Option__ flags that may be useful to include in __Monitor__ sections (when needed) include __"DPMS"__ , and __"!SyncOnGreen"__ .
378
379
380
381 !!MODES SECTION
382 The config file may have multiple __Modes__ sections, or none. These sections provide a way of defining sets of video modes independently of the __Monitor__ sections. __Monitor__ sections may include the definitions provided in these sections by using the __!UseModes__ keyword. In most cases the __Modes__ sections are not necessary because the built-in set of VESA standard modes will be sufficient.
383
384 __Modes__ sections have the following format:
385
386
387 __Section "Modes"__
388 __ Identifier "__ ''name'' __"__
389 '' entries''
390 '' ...''
391 __!EndSection__
392
393
394
395
396 The __Identifier__ entry specifies the unique name for this set of mode descriptions. The other entries permitted in __Modes__ sections are the __Mode__ and __!ModeLine__ entries that are described above in the __Monitor__ section.
397
398
399
400 !!SCREEN SECTION
401 The config file may have multiple __Screen__ sections. There must be at least one, for the "screen" being used. A "screen" represents the binding of a graphics device ( __Device__ section) and a monitor ( __Monitor__ section). A __Screen__ section is considered "active" if it is referenced by an active __!ServerLayout__ section or by the __-screen__ command line option. If neither of those is present, the first __Screen__ section found in the config file is considered the active one.
402
403 __Screen__ sections have the following format:
404
405
406
407 __Section "Screen"__
408 __ Identifier "__ ''name'' __"__
409 __ Device "__ ''devid'' __"__
410 __ Monitor "__ ''monid'' __"__
411 '' entries''
412 '' ...''
413 __ !SubSection "Display"__
414 '' entries''
415 '' ...''
416 __ !EndSubSection__
417 '' ...''
418 __!EndSection__
419
420
421
422
423 The __Identifier__ entry specifies the unique name for this screen. The __Screen__ section provides information specific to the whole screen, including screen-specific __Options__ . In multi-head configurations, there will be multiple active __Screen__ sections, one for each head. The entries available for this section are:
424 ;__Device "__ ''device-id'' __"__ : This specifies the __Device__ section to be used for this screen. This is what ties a specific graphics card to a screen. The ''device-id'' must match the __Identifier__ of a __Device__ section in the config file.
425 ;__Monitor "__ ''monitor-id'' __"__ : specifies which monitor description is to be used for this screen.
426 ;__!VideoAdaptor "__ ''xv-id'' __"__ : specifies an optional Xv video adaptor description to be used with this screen.
427 ;__!DefaultDepth __ ''depth'' : specifies which color depth the server should use by default. The __-depth__ command line option can be used to override this. If neither is specified, the default depth is driver-specific, but in most cases is 8.
428 ;__!DefaultFbBpp __ ''bpp'' : specifies which framebuffer layout to use by default. The __-fbbpp__ command line option can be used to override this. In most cases the driver will chose the best default value for this. The only case where there is even a choice in this value is for depth 24, where some hardware supports both a packed 24 bit framebuffer layout and a sparse 32 bit framebuffer layout.
429 ;__Options__ : Various __Option__ flags may be specified in the __Screen__ section. Some are driver-specific and are described in the driver documentation. Others are driver-independent, and will eventually be described here.
430 ;__Option "Accel"__ : Enables XAA (X Acceleration Architecture), a mechanism that makes video cards' 2D hardware acceleration available to the X server. This option is on by default, but it may be necessary to turn it off if there are bugs in the driver. There are many options to disable specific acclerated operations, listed below. Note that disabling an operation will have no effect if the operation is not accelerated (whether due to lack of support in the hardware or in the driver).
431 ;__Option "!XaaNoCPUToScreenColorExpandFill"__ : Disables accelerated rectangular expansion blits from source patterns stored in system memory (using a memory-mapped aperture).
432 ;__Option "!XaaNoColor8x8PatternFillRect"__ : Disables accelerated fills of a rectangular region with a full-color pattern.
433 ;__Option "!XaaNoColor8x8PatternFillTrap"__ : Disables accelerated fills of a trapezoidal region with a full-color pattern.
434 ;__Option "!XaaNoDashedBresenhamLine"__ : Disables accelerated dashed Bresenham line draws.
435 ;__Option "!XaaNoDashedTwoPointLine"__ : Disables accelerated dashed line draws between two arbitrary points.
436 ;__Option "!XaaNoImageWriteRect"__ : Disables acclerated transfers of full-color rectangular patterns from system memory to video memory (using a memory-mapped aperture).
437 ;__Option "!XaaNoMono8x8PatternFillRect"__ : Disables accelerated fills of a rectangular region with a monochrome pattern.
438 ;__Option "!XaaNoMono8x8PatternFillTrap"__ : Disables accelerated fills of a trapezoidal region with a monochrome pattern.
439 ;__Option "!XaaNoOffscreenPixmaps"__ : Disables accelerated draws into pixmaps stored in offscreen video memory.
440 ;__Option "!XaaNoPixmapCache"__ : Disables caching of patterns in offscreen video memory.
441 ;__Option "!XaaNoScanlineCPUToScreenColorExpandFill"__ : Disables accelerated rectangular expansion blits from source patterns stored in system memory (one scan line at a time).
442 ;__Option "!XaaNoScanlineImageWriteRect"__ : Disables acclerated transfers of full-color rectangular patterns from system memory to video memory (one scan line at a time).
443 ;__Option "!XaaNoScreenToScreenColorExpandFill"__ : Disables accelerated rectangular expansion blits from source patterns stored in offscreen video memory.
444 ;__Option "!XaaNoScreenToScreenCopy"__ : Disables accelerated copies of rectangular regions from one part of video memory to another part of video memory.
445 ;__Option "!XaaNoSolidBresenhamLine"__ : Disables accelerated solid Bresenham line draws.
446 ;__Option "!XaaNoSolidFillRect"__ : Disables accelerated solid-color fills of rectangles.
447 ;__Option "!XaaNoSolidFillTrap"__ : Disables accelerated solid-color fills of Bresenham trapezoids.
448 ;__Option "!XaaNoSolidHorVertLine"__ : Disables accelerated solid horizontal and vertical line draws.
449 ;__Option "!XaaNoSolidTwoPointLine"__ : Disables accelerated solid line draws between two arbitrary points.
450
451 Each __Screen__ section must contain one or more __Display__ subsections. Those subsections provide depth/fbbpp specific configuration information, and the one chosen depends on the depth and/or fbbpp that is being used for the screen. The __Display__ subsection format is described in the section below.
452
453
454
455 !!DISPLAY SUBSECTION
456 Each __Screen__ section may have multiple __Display__ subsections. There must be at least one, which matches the depth and/or fbbpp values that are being used for the screen. The "active" __Display__ subsection is the first that matches the depth and/or fbbpp values being used.
457
458 __Display__ subsections have the following format:
459
460
461
462 __ !SubSection "Display"__
463 __ Depth __ ''depth''
464 '' entries''
465 '' ...''
466 __ !EndSubSection__
467
468
469
470
471
472 ;__Depth __ ''depth'' : This entry specifies what colour depth the __Display__ subsection is to be used for. This entry is usually mandatory, but it may be omitted in some cases providing an __!FbBpp__ entry is present. The range of ''depth'' values that are allowed depends on the driver. Most driver support 8, 15, 16 and 24. Some also support 1 and/or 4, and some may support other values (like 30). Note: ''depth'' means the number of bits in a pixel that are actually used to determine the pixel colour. 32 is not a valid ''depth'' value. Most hardware that uses 32 bits per pixel only uses 24 of them to hold the colour information, which means that the colour depth is 24, not 32.
473 ;__!FbBpp __ ''bpp'' : This entry specifies the framebuffer format this __Display__ subsection is to be used for. This entry is only needed when providing depth 24 configurations that allow a choice between a 24 bpp packed framebuffer format and a 32bpp sparse framebuffer format. In most cases this entry should not be used.
474 ;__Weight __ ''red-weight green-weight blue-weight'' : This optional entry specifies the relative RGB weighting to be used for a screen is being used at depth 16 for drivers that allow multiple formats. This may also be specified from the command line with the __-weight__ option (see ''XFree86(1)'' ).
475 ;__Virtual __ ''xdim ydim'' : This optional entry specifies the virtual screen resolution to be used. ''xdim'' must be a multiple of either 8 or 16 for most drivers, and a multiple of 32 when running in monochrome mode. The given value will be rounded down if this is not the case. Video modes which are too large for the specified virtual size will be rejected. If this entry is not present, the virtual screen resolution will be set to accommodate all the valid video modes given in the __Modes__ entry. Some drivers/hardware combinations do not support virtual screens. Refer to the appropriate driver-specific documentation for details.
476 ;__!ViewPort __ ''x0 y0'' : This optional entry sets the upper left corner of the initial display. This is only relevant when the virtual screen resolution is different from the resolution of the initial video mode. If this entry is not given, then the initial display will be centered in the virtual display area.
477 ;__Modes "__ ''mode-name'' __"__ '' ...'' : This entry is highly desirable for most drivers, and it specifies the list of video modes to use. Each ''mode-name'' specified must be in double quotes. They must correspond to those specified or referenced in the appropriate __Monitor__ section (including implicitly referenced built-in VESA standard modes). The server will delete modes from this list which don't satisfy various requirements. The first valid mode in this list will be the default display mode for startup. The list of valid modes is converted internally into a circular list. It is possible to switch to the next mode with __Ctrl+Alt+Keypad-Plus__ and to the previous mode with __Ctrl+Alt+Keypad-Minus__ . When this entry is omitted, the largest valid mode referenced by the appropriate __Monitor__ section will be used.
478 ;__Visual "__ ''visual-name'' __"__ : This optional entry sets the default root visual type. This may also be specified from the command line (see the ''Xserver(1)'' man page). The visual types available for depth 8 are (default is __!PseudoColor__ ):
479
2 CraigBox 480 __!StaticGray__
481 __!GrayScale__
482 __!StaticColor__
483 __!PseudoColor__
484 __!TrueColor__
485 __!DirectColor__
1 JohnMcPherson 486
2 CraigBox 487 The visual type available for the depths 15, 16 and 24 are (default is __!TrueColor__ ):
1 JohnMcPherson 488
2 CraigBox 489 __!TrueColor__
490 __!DirectColor__
1 JohnMcPherson 491
492
2 CraigBox 493 Not all drivers support __!DirectColor__ at these depths.
1 JohnMcPherson 494
2 CraigBox 495 The visual types available for the depth 4 are (default is __!StaticColor__ ):
1 JohnMcPherson 496
2 CraigBox 497 __!StaticGray__
498 __!GrayScale__
499 __!StaticColor__
500 __!PseudoColor__
1 JohnMcPherson 501
502
2 CraigBox 503 The visual type available for the depth 1 (monochrome) is __!StaticGray__ .
1 JohnMcPherson 504
505 ;__Black __ ''red green blue'' : This optional entry allows the "black" colour to be specified. This
506 ;__White __ ''red green blue'' : This optional entry allows the "white" colour to be specified. This is only supported at depth 1. The default is white.
507 ;__Options__ : Option flags may be specified in the __Display__ subsections. These may include driver-specific options and driver-independent options. The former are described in the driver-specific documentation. Some of the latter are described above in the section about the __Screen__ section, and they may also be included here.
508
509
510 !!SERVERLAYOUT SECTION
511 The config file may have multiple __!ServerLayout__ sections. A "server layout" represents the binding of one or more screens ( __Screen__ sections) and one or more input devices ( __!InputDevice__ sections) to form a complete configuration. In multi-head configurations, it also specifies the relative layout of the heads. A __!ServerLayout__ section is considered "active" if it is referenced by the __-layout__ command line option. If that option is not used, the first __!ServerLayout__ section found in the config file is considered the active one. If no __!ServerLayout__ sections are present, the single active screen and two active (core) input devices are selected as described in the relevant sections above.
512
513 __!ServerLayout__ sections have the following format:
514
515
516
517 __Section "!ServerLayout"__
518 __ Identifier "__ ''name'' __"__
519 __ Screen "__ ''screen-id'' __"__
520 '' ...''
521 __ !InputDevice "__ ''idev-id'' __"__
522 '' ...''
523 '' options''
524 '' ...''
525 __!EndSection__
526
527
528
529
530 The __Identifier__ entry specifies the unique name for this server layout. The __!ServerLayout__ section provides information specific to the whole session, including session-specific __Options__ . The __!ServerFlags__ options (described above) may be specified here, and ones given here override those given in the __!ServerFlags__ section.
531
532 The entries that may be used in this section are described here.
533 ;__Screen __ ''screen-num'' __ "screen-id" __ ''position-information'' : One of these entries must be given for each screen being used in a session. The ''screen-id'' field is mandatory, and specifies the __Screen__ section being referenced. The ''screen-num'' field is optional, and may be used to specify the screen number in multi-head configurations. When this field is omitted, the screens will be numbered in the order that they are listed in. The numbering starts from 0, and must be consecutive. The ''position-information'' field describes the way multiple screens are positioned. There are a number of different ways that this information can be provided:
534
535 ;__Absolute __ ''x y'' : This says that the upper left corner's coordinates are ( ''x'' , ''y'' ). If the coordinates are omitted or if no positioning information is given, (0,0) is assumed.
536 ;__!RightOf "__ ''screen-id'' __"__ :
537 ;__!LeftOf "__ ''screen-id'' __"__ :
538 ;__Above "__ ''screen-id'' __"__ :
539 ;__Below "__ ''screen-id'' __"__ :
540 ;__Relative "__ ''screen-id'' __"__ '' x y'' : These give the screen's location relative to another screen.
541
542 ;__!InputDevice "__ ''idev-id'' __" "__ ''option'' __"__ '' ...'' : One of these entries must be given for each input device being used in a session. Normally at least two are required, one each for the core pointer and keyboard devices. The ''idev-id'' field is mandatory, and specifies the name of the __!InputDevice__ section being referenced. Multiple ''option'' fields may be specified, each in double quotes. The options permitted here are any that may also be given in the __!InputDevice__ sections. Normally only session-specific input device options would be used here. The most commonly used options are:
543
544
545
546 __"!CorePointer"__
547 __"!CoreKeyboard"__
548 __"!SendCoreEvents"__
549
550
551
552
553 and the first two should normally be used to indicate the core pointer and core keyboard devices respectively.
554
555 ;__Options__ : Any option permitted in the __!ServerFlags__ section may also be specified here. When the same option appears in both places, the value given here overrides the one given in the __!ServerFlags__ section.
556
557 Here is an example of a __!ServerLayout__ section for a dual headed configuration with two mice:
558
559
560
561 __Section "!ServerLayout"__
562 __ Identifier "Layout 1"__
563 __ Screen "MGA 1"__
564 __ Screen "MGA 2" !RightOf "MGA 1"__
565 __ !InputDevice "Keyboard 1" "!CoreKeyboard"__
566 __ !InputDevice "Mouse 1" "!CorePointer"__
567 __ !InputDevice "Mouse 2" "!SendCoreEvents"__
568 __ Option "!BlankTime" "5"__
569 __!EndSection__
570
571
572
573
574 !!DRI SECTION
575 This optional section is used to provide some information for the Direct Rendering Infrastructure. Details about the format of this section can be found in the README.DRI document, which is also available on-line at ''<http://www.xfree86.org/current/DRI.html>'' .
576
577 !!VENDOR SECTION
578 The optional __Vendor__ section may be used to provide vendor-specific configuration information. Multiple __Vendor__ sections may be present, and they may contain an __Identifier__ entry and multiple __Option__ flags. The data therein is not used in this release.
579
580
581
582 !!FILES
583 For an example of an XF86Config file, see the file installed as /usr/X11R6/lib/X11/XF86Config.eg.
584
585
586 !!SEE ALSO
587 X(7), Xserver(1), XFree86(1), apm(4), ati(4), chips(4), cirrus(4), cyrix(4), fbdev(4), glide(4), glint(4), i128(4), i740(4), i810(4), imstt(4), mga(4), neomagic(4), nv(4), r128(4), rendition(4), s3virge(4), siliconmotion(4), sis(4), sunbw2(4), suncg14(4), suncg3(4), suncg6(4), sunffb(4), sunleo(4), suntcx(4), tdfx(4), tga(4), trident(4), tseng(4), v4l(4), vesa(4), vga(4), vmware(4),
588 README ''<http://www.xfree86.org/current/README.html>'' ,
589 RELNOTES ''<http://www.xfree86.org/current/RELNOTES.html>'' ,
590 README.mouse ''<http://www.xfree86.org/current/mouse.html>'' ,
591 README.DRI ''<http://www.xfree86.org/current/DRI.html>'' ,
592 Status ''<http://www.xfree86.org/current/Status.html>'' ,
593 Install ''<http://www.xfree86.org/current/Install.html>'' .
594
595 !!AUTHORS
596 This manual page was largely rewritten for XFree86 4.0 by David Dawes ''<dawes@xfree86.org>'' .
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.

PHP Warning

lib/blame.php:177: Warning: Invalid argument supplied for foreach() (...repeated 2 times)