1#
2# Copyright (c) 1994-1998 by The XFree86 Project, Inc.
3#
4# Permission is hereby granted, free of charge, to any person obtaining a
5# copy of this software and associated documentation files (the "Software"),
6# to deal in the Software without restriction, including without limitation
7# the rights to use, copy, modify, merge, publish, distribute, sublicense,
8# and/or sell copies of the Software, and to permit persons to whom the
9# Software is furnished to do so, subject to the following conditions:
10#
11# The above copyright notice and this permission notice shall be included in
12# all copies or substantial portions of the Software.
13#
14# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17# THE XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
19# OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20# SOFTWARE.
21#
22# Except as contained in this notice, the name of the XFree86 Project shall
23# not be used in advertising or otherwise to promote the sale, use or other
24# dealings in this Software without prior written authorization from the
25# XFree86 Project.
26#
27# $XConsortium: XF86Conf.cpp /main/22 1996/10/23 11:43:51 kaleb $
28
29# **********************************************************************
30# This is a sample configuration file only, intended to illustrate
31# what a config file might look like.  Refer to the xorg.conf(__filemansuffix__)
32# man page for details about the format of this file.
33# **********************************************************************
34
35# The ordering of sections is not important in XFree86 4.0 and later,
36# nor in any Xorg release.
37
38# **********************************************************************
39# Files section.  This allows default font and module paths to be set
40# **********************************************************************
41
42Section "Files"
43
44# Multiple FontPath entries are allowed (which are concatenated together),
45# as well as specifying multiple comma-separated entries in one FontPath
46# command (or a combination of both methods).
47# The default path is shown here.
48
49#    FontPath	DEFAULTFONTPATH
50
51# ModulePath can be used to set a search path for the X server modules.
52# The default path is shown here.
53
54#    ModulePath	MODULEPATH
55
56EndSection
57
58# **********************************************************************
59# Module section -- this is an optional section which is used to specify
60# which run-time loadable modules to load when the X server starts up.
61# **********************************************************************
62
63Section "Module"
64
65# This loads the DBE extension module.
66
67    Load	"dbe"
68
69# This loads the miscellaneous extensions module, and disables
70# initialisation of the XFree86-DGA extension within that module.
71
72    SubSection	"extmod"
73	Option	"omit xfree86-dga"
74    EndSubSection
75
76EndSection
77
78
79# **********************************************************************
80# Server flags section.  This contains various server-wide Options.
81# **********************************************************************
82
83Section "ServerFlags"
84
85# Uncomment this to disable the <Ctrl><Alt><Fn> VT switch sequence
86# (where n is 1 through 12).  This allows clients to receive these key
87# events.
88
89#    Option	"DontVTSwitch"
90
91# Uncomment this to disable the <Ctrl><Alt><BS> server abort sequence
92# This allows clients to receive this key event.
93
94#    Option	"DontZap"	"true"
95
96# Uncomment this to disable the <Ctrl><Alt><KP_+>/<KP_-> mode switching
97# sequences.  This allows clients to receive these key events.
98
99#    Option	"DontZoom"
100
101# Uncomment this to disable tuning with the xvidtune client. With
102# it the client can still run and fetch card and monitor attributes,
103# but it will not be allowed to change them. If it tries it will
104# receive a protocol error.
105
106#    Option	"DisableVidModeExtension"
107
108# Uncomment this to enable the use of a non-local xvidtune client.
109
110#    Option	"AllowNonLocalXvidtune"
111
112# Set the basic blanking screen saver timeout.
113
114    Option	"BlankTime"	"10"	# 10 minutes
115
116# Set the DPMS timeouts.  These are set here because they are global
117# rather than screen-specific.  These settings alone don't enable DPMS.
118# It is enabled per-screen (or per-monitor), and even then only when
119# the driver supports it.
120
121    Option	"StandbyTime"	"10"	# 10 minutes
122    Option	"SuspendTime"	"10"	# 10 minutes
123    Option	"OffTime"	"10"	# 10 minutes
124
125EndSection
126
127# **********************************************************************
128# Input devices
129# **********************************************************************
130
131# **********************************************************************
132# Core keyboard's InputDevice section
133# **********************************************************************
134
135Section "InputDevice"
136
137    Identifier	"Keyboard1"
138    Driver	"kbd"
139
140# Set the keyboard auto repeat parameters.  Not all platforms implement
141# this.
142
143    Option	"AutoRepeat"	"500 5"
144
145# Specify which keyboard LEDs can be user-controlled (eg, with xset(1)).
146
147#    Option	"Xleds"	"1 2 3"
148
149# To customise the XKB settings to suit your keyboard, modify the
150# lines below (which are the defaults).  For example, for a European
151# keyboard, you will probably want to use one of:
152#
153#    Option	"XkbModel"	"pc102"
154#    Option	"XkbModel"	"pc105"
155#
156# If you have a Microsoft Natural keyboard, you can use:
157#
158#    Option	"XkbModel"	"microsoft"
159#
160# If you have a US "windows" keyboard you will want:
161#
162#    Option	"XkbModel"	"pc104"
163#
164# Then to change the language, change the Layout setting.
165# For example, a german layout can be obtained with:
166#
167#    Option	"XkbLayout"	"de"
168#
169# or:
170#
171#    Option	"XkbLayout"	"de"
172#    Option	"XkbVariant"	"nodeadkeys"
173#
174# If you'd like to switch the positions of your capslock and
175# control keys, use:
176#
177#    Option	"XkbOptions"	"ctrl:swapcaps"
178
179
180# These are the default XKB settings for xorg
181#
182#    Option	"XkbRules"	"xorg"
183#    Option	"XkbModel"	"pc105"
184#    Option	"XkbLayout"	"us"
185#    Option	"XkbVariant"	""
186#    Option	"XkbOptions"	""
187
188EndSection
189
190
191# **********************************************************************
192# Core Pointer's InputDevice section
193# **********************************************************************
194
195Section "InputDevice"
196
197# Identifier and driver
198
199    Identifier	"Mouse1"
200    Driver	"mouse"
201
202# The mouse protocol and device.  The device is normally set to /dev/mouse,
203# which is usually a symbolic link to the real device.
204
205    Option	"Protocol"	"Microsoft"
206    Option	"Device"	"/dev/mouse"
207
208# On platforms where PnP mouse detection is supported the following
209# protocol setting can be used when using a newer PnP mouse:
210
211#    Option	"Protocol"	"Auto"
212
213# When using mouse connected to a PS/2 port (aka "MousePort"), set the
214# the protocol as follows.  On some platforms some other settings may
215# be available.
216
217#    Option "Protocol"	"PS/2"
218
219# Baudrate and SampleRate are only for some older Logitech mice.  In
220# almost every case these lines should be omitted.
221
222#    Option	"BaudRate"	"9600"
223#    Option	"SampleRate"	"150"
224
225# Emulate3Buttons is an option for 2-button mice
226# Emulate3Timeout is the timeout in milliseconds (default is 50ms)
227
228#    Option	"Emulate3Buttons"
229#    Option	"Emulate3Timeout"	"50"
230
231# ChordMiddle is an option for some 3-button Logitech mice, or any
232# 3-button mouse where the middle button generates left+right button
233# events.
234
235#    Option	"ChordMiddle"
236
237EndSection
238
239Section "InputDevice"
240    Identifier	"Mouse2"
241    Driver	"mouse"
242    Option	"Protocol"	"MouseMan"
243    Option	"Device"	"/dev/mouse2"
244EndSection
245
246# Some examples of extended input devices
247
248# Section "InputDevice"
249#    Identifier	"spaceball"
250#    Driver	"magellan"
251#    Option	"Device"	"/dev/cua0"
252# EndSection
253#
254# Section "InputDevice"
255#    Identifier	"spaceball2"
256#    Driver	"spaceorb"
257#    Option	"Device"	"/dev/cua0"
258# EndSection
259#
260# Section "InputDevice"
261#    Identifier	"touchscreen0"
262#    Driver	"microtouch"
263#    Option	"Device"	"/dev/ttyS0"
264#    Option	"MinX"		"1412"
265#    Option	"MaxX"		"15184"
266#    Option	"MinY"		"15372"
267#    Option	"MaxY"		"1230"
268#    Option	"ScreenNumber"	"0"
269#    Option	"ReportingMode"	"Scaled"
270#    Option	"ButtonNumber"	"1"
271#    Option	"SendCoreEvents"
272# EndSection
273#
274# Section "InputDevice"
275#    Identifier	"touchscreen1"
276#    Driver	"elo2300"
277#    Option	"Device"	"/dev/ttyS0"
278#    Option	"MinX"		"231"
279#    Option	"MaxX"		"3868"
280#    Option	"MinY"		"3858"
281#    Option	"MaxY"		"272"
282#    Option	"ScreenNumber"	"0"
283#    Option	"ReportingMode"	"Scaled"
284#    Option	"ButtonThreshold"	"17"
285#    Option	"ButtonNumber"	"1"
286#    Option	"SendCoreEvents"
287# EndSection
288
289# **********************************************************************
290# Monitor section
291# **********************************************************************
292
293# Any number of monitor sections may be present
294
295Section "Monitor"
296
297# The identifier line must be present.
298
299    Identifier	"Generic Monitor"
300
301# HorizSync is in kHz unless units are specified.
302# HorizSync may be a comma separated list of discrete values, or a
303# comma separated list of ranges of values.
304# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
305# USER MANUAL FOR THE CORRECT NUMBERS.
306
307#    HorizSync	31.5  # typical for a single frequency fixed-sync monitor
308#    HorizSync	30-64         # multisync
309#    HorizSync	31.5, 35.2    # multiple fixed sync frequencies
310#    HorizSync	15-25, 30-50  # multiple ranges of sync frequencies
311
312# VertRefresh is in Hz unless units are specified.
313# VertRefresh may be a comma separated list of discrete values, or a
314# comma separated list of ranges of values.
315# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
316# USER MANUAL FOR THE CORRECT NUMBERS.
317
318#    VertRefresh	60  # typical for a single frequency fixed-sync monitor
319
320#    VertRefresh	50-100        # multisync
321#    VertRefresh	60, 65        # multiple fixed sync frequencies
322#    VertRefresh	40-50, 80-100 # multiple ranges of sync frequencies
323
324# Modes can be specified in two formats.  A compact one-line format, or
325# a multi-line format.
326
327# A generic VGA 640x480 mode (hsync = 31.5kHz, refresh = 60Hz)
328# These two are equivalent
329
330#    ModeLine "640x480" 25.175 640 664 760 800 480 491 493 525
331
332    Mode "640x480"
333        DotClock	25.175
334        HTimings	640 664 760 800
335        VTimings	480 491 493 525
336    EndMode
337
338# These two are equivalent
339
340#    ModeLine "1024x768i" 45 1024 1048 1208 1264 768 776 784 817 Interlace
341
342#    Mode "1024x768i"
343#        DotClock	45
344#        HTimings	1024 1048 1208 1264
345#        VTimings	768 776 784 817
346#        Flags		"Interlace"
347#    EndMode
348
349# If a monitor has DPMS support, that can be indicated here.  This will
350# enable DPMS when the monitor is used with drivers that support it.
351
352#    Option	"dpms"
353
354# If a monitor requires that the sync signals be superimposed on the
355# green signal, the following option will enable this when used with
356# drivers that support it.  Only a relatively small range of hardware
357# (and drivers) actually support this.
358
359#    Option	"sync on green"
360
361EndSection
362
363# **********************************************************************
364# Graphics device section
365# **********************************************************************
366
367# Any number of graphics device sections may be present
368
369Section "Device"
370
371# The Identifier must be present.
372
373    Identifier	"Generic VESA"
374
375# The Driver line must be present.  When using run-time loadable driver
376# modules, this line instructs the server to load the specified driver
377# module.  Even when not using loadable driver modules, this line
378# indicates which driver should interpret the information in this section.
379
380    Driver	"vesa"
381
382# The chipset line is optional in most cases.  It can be used to override
383# the driver's chipset detection, and should not normally be specified.
384
385#    Chipset	"generic"
386
387# Various other lines can be specified to override the driver's automatic
388# detection code.  In most cases they are not needed.
389
390#    VideoRam	256
391#    Clocks	25.2 28.3
392
393# The BusID line is used to specify which of possibly multiple devices
394# this section is intended for.  When this line isn't present, a device
395# section can only match up with the primary video device.  For PCI
396# devices a line like the following could be used.  This line should not
397# normally be included unless there is more than one video device
398# intalled.
399
400#    BusID	"PCI:0:10:0"
401
402# Various option lines can be added here as required.  Some options
403# are more appropriate in Screen sections, Display subsections or even
404# Monitor sections.
405
406#    Option	"hw cursor" "off"
407
408EndSection
409
410Section "Device"
411    Identifier	"any supported Trident chip"
412    Driver	"trident"
413EndSection
414
415Section "Device"
416    Identifier	"MGA Millennium I"
417    Driver	"mga"
418    Option	"hw cursor" "off"
419    BusID	"PCI:0:10:0"
420EndSection
421
422Section "Device"
423    Identifier	"MGA G200 AGP"
424    Driver	"mga"
425    BusID	"PCI:1:0:0"
426    Option	"pci retry"
427EndSection
428
429
430# **********************************************************************
431# Screen sections.
432# **********************************************************************
433
434# Any number of screen sections may be present.  Each describes
435# the configuration of a single screen.  A single specific screen section
436# may be specified from the X server command line with the "-screen"
437# option.
438
439Section "Screen"
440
441# The Identifier, Device and Monitor lines must be present
442
443    Identifier	"Screen 1"
444    Device	"Generic VESA"
445    Monitor	"Generic Monitor"
446
447# The favoured Depth and/or Bpp may be specified here
448
449    DefaultDepth 8
450
451    SubSection "Display"
452        Depth		8
453        Modes		"640x480"
454        ViewPort	0 0
455        Virtual 	800 600
456    EndSubsection
457
458    SubSection "Display"
459	Depth		4
460        Modes		"640x480"
461    EndSubSection
462
463    SubSection "Display"
464	Depth		1
465        Modes		"640x480"
466    EndSubSection
467
468EndSection
469
470
471Section "Screen"
472    Identifier		"Screen MGA1"
473    Device		"MGA Millennium I"
474    Monitor		"Generic Monitor"
475    Option		"no accel"
476    DefaultDepth	16
477#    DefaultDepth	24
478
479    SubSection "Display"
480	Depth		8
481	Modes		"1280x1024"
482	Option		"rgb bits" "8"
483	Visual		"StaticColor"
484    EndSubSection
485    SubSection "Display"
486	Depth		16
487	Modes		"1280x1024"
488    EndSubSection
489    SubSection "Display"
490	Depth		24
491	Modes		"1280x1024"
492    EndSubSection
493EndSection
494
495
496Section "Screen"
497    Identifier		"Screen MGA2"
498    Device		"MGA G200 AGP"
499    Monitor		"Generic Monitor"
500    DefaultDepth	8
501
502    SubSection "Display"
503	Depth		8
504	Modes		"1280x1024"
505	Option		"rgb bits" "8"
506	Visual		"StaticColor"
507    EndSubSection
508EndSection
509
510
511# **********************************************************************
512# ServerLayout sections.
513# **********************************************************************
514
515# Any number of ServerLayout sections may be present.  Each describes
516# the way multiple screens are organised.  A specific ServerLayout
517# section may be specified from the X server command line with the
518# "-layout" option.  In the absence of this, the first section is used.
519# When now ServerLayout section is present, the first Screen section
520# is used alone.
521
522Section "ServerLayout"
523
524# The Identifier line must be present
525
526    Identifier	"Main Layout"
527
528# Each Screen line specifies a Screen section name, and optionally
529# the relative position of other screens.  The four names after
530# primary screen name are the screens to the top, bottom, left and right
531# of the primary screen.  In this example, screen 2 is located to the
532# right of screen 1.
533
534    Screen	"Screen MGA 1"	""	""	""	"Screen MGA 2"
535    Screen	"Screen MGA 2"	""	""	"Screen MGA 1"	""
536
537# Each InputDevice line specifies an InputDevice section name and
538# optionally some options to specify the way the device is to be
539# used.  Those options include "CorePointer", "CoreKeyboard" and
540# "SendCoreEvents".  In this example, "Mouse1" is the core pointer,
541# and "Mouse2" is an extended input device that also generates core
542# pointer events (i.e., both mice will move the standard pointer).
543
544    InputDevice	"Mouse1" "CorePointer"
545    InputDevice	"Mouse2" "SendCoreEvents"
546    InputDevice "Keyboard1" "CoreKeyboard"
547
548EndSection
549
550
551Section "ServerLayout"
552    Identifier	"another layout"
553    Screen	"Screen 1"
554    Screen	"Screen MGA 1"
555    InputDevice	"Mouse1" "CorePointer"
556    InputDevice "Keyboard1" "CoreKeyboard"
557EndSection
558
559
560Section "ServerLayout"
561    Identifier	"simple layout"
562    Screen	"Screen 1"
563    InputDevice	"Mouse1" "CorePointer"
564    InputDevice "Keyboard1" "CoreKeyboard"
565EndSection
566
567