df2c3de1ced384f285e3c1581553fc5b5ab0566f
[grml-x.git] / etc / X11 / xorg.conf.example
1 ################################################################################
2 # Filename:      /etc/X11/xorg.conf
3 # Purpose:       config file for xserver - generated by grml-x
4 # Bug-Reports:   see http://grml.org/bugs/
5 # Latest change: Sat Apr 15 10:39:38 CEST 2006 [mika]
6 # See also:
7 #   /usr/share/doc/xserver-xorg/   and
8 #   http://wiki.x.org/wiki/Home    and
9 #   http://ftp.x.org/pub/X11R7.0/doc/html/index.html for information on Xorg
10 #   /usr/share/doc/xfree86-common/                   for information on XFree86
11 # Refer to the xorg.conf man page and to
12 # http://ftp.x.org/pub/X11R7.0/doc/html/xorg.conf.5.html
13 # for details about the format of this file.
14
15 # If you would like this file to be automatically reconfigured by debian,
16 # run the following command:
17 #   sudo dpkg-reconfigure -phigh xserver-xorg
18 ################################################################################
19
20 Section "ServerLayout"
21         Identifier     "XServer Configured"
22         Screen      0  "Screen0" 0 0
23         InputDevice    "Keyboard0"  "CoreKeyboard"
24         InputDevice    "USB Mouse"  "CorePointer"
25         # InputDevice    "PS/2 Mouse" "CorePointer"
26 EndSection
27
28 Section "ServerFlags"
29         Option "AllowMouseOpenFail"  "true"  # allows the server to start up even if the mouse does not work
30         Option "DontVTSwitch"        "false" # allow switching between virtual terminal
31         # Option "DontZap"             "true"  # disable <Crtl><Alt><BS> (server abort)
32         # Option "DontZoom"            "true"  # disable <Crtl><Alt><KP_+>/<KP_-> (resolution switching)
33 EndSection
34
35 Section "Files"
36 #        RgbPath      "/usr/X11R6/lib/X11/rgb"
37 #        ModulePath   "/usr/X11R6/lib/modules"
38 # More information:  http://ftp.x.org/pub/X11R7.0/doc/html/fonts.html
39         FontPath     "/usr/share/fonts/X11/misc"
40         FontPath     "/usr/share/fonts/X11/cyrillic"
41         FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
42         FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
43         FontPath     "/usr/share/fonts/X11/Type1"
44         FontPath     "/usr/share/fonts/X11/100dpi"
45         FontPath     "/usr/share/fonts/X11/75dpi"
46         FontPath     "/usr/X11R6/lib/X11/fonts/misc:unscaled"
47         FontPath     "/usr/X11R6/lib/X11/fonts/misc"
48         FontPath     "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
49         FontPath     "/usr/X11R6/lib/X11/fonts/75dpi"
50         FontPath     "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
51         FontPath     "/usr/X11R6/lib/X11/fonts/100dpi"
52 # True type and type1 fonts are also handled via xftlib, see /etc/X11/XftConfig!
53         FontPath     "/usr/X11R6/lib/X11/fonts/Type1"
54         FontPath     "/usr/share/fonts/ttf/western"
55         FontPath     "/usr/share/fonts/ttf/decoratives"
56         FontPath     "/usr/share/fonts/truetype/ttf-bitstream-vera"
57         FontPath     "/usr/share/fonts/latex-ttf-fonts"
58         FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
59 EndSection
60
61 # Modules - see /usr/lib/xorg/modules/fonts and /usr/lib/xorg/modules/extensions
62 Section "Module"
63         Load  "dbe"       # double buffer extension
64         Load  "dri"       # direct rendering
65         Load  "glx"       # 3D layer
66         Load  "type1"     # font module
67         Load  "freetype"  # font rendering
68         Load  "extmod"    # some commonly used server extensions (e.g. shape extension)
69         Load  "record"    # recording extension
70         # Load  "vbe"       # Vesa BIOS Extension
71         # Load  "ddc"       # ddc probing of monitor
72         # Load  "bitmap"    # bitmap fonts
73         # Load  "GLcore"    # render OpenGL in software
74         # Load  "i2c"       # I2C bus
75         # Load  "int10"     # initialize graphics cards via int10 call to the BIOS
76         # Load  "speedo"    # font module
77         # Load  "v4l"       # Video for Linux
78         # Load  "evdev"     # generic input handling driver on Linux
79 # Valid entries - see /usr/lib/xorg/modules/[extensions/]
80 # afb bitmap cfb cfb16 cfb24 cfb32 cw damage dbe ddc dri drm extmod fb
81 # fbdevhw freetype GLcore glx i2c int10 int10 layer mfb pcidata rac ramdac
82 # record scanpci shadow shadowfb type1 vbe vgahw xaa xf1bpp xf24_32bpp xf4bpp
83 # xf8_16bpp xf8_32bpp xtrap
84 EndSection
85
86 # If you'd like to switch the positions of your capslock and control keys, use:
87 # Option "XkbOptions" "ctrl:swapcaps"
88 # Or if you just want both to be control, use:
89 # Option "XkbOptions" "ctrl:nocaps"
90 # More information: http://ftp.x.org/pub/X11R7.0/doc/html/XKB-Config.html
91 Section "InputDevice"
92         Identifier  "Keyboard0"
93         Option      "CoreKeyboard"
94         Driver      "kbd"
95         #Option      "XkbRules"   "xfree86"
96         Option      "XkbRules"   "xorg"
97         Option      "XkbModel"   "pc105"
98         Option      "XkbLayout"  "us"
99         #Option      "XkbVariant" "nodeadkeys"
100 EndSection
101
102 # More information: http://ftp.x.org/pub/X11R6.9.0/doc/html/mouse.html
103
104
105 Section "InputDevice"
106         Identifier      "USB Mouse"
107         Driver          "mouse"
108         Option          "Device"                "/dev/input/mice"
109         Option          "Protocol"              "auto"
110         Option          "ZAxisMapping"          "4 5"
111         Option          "Buttons"               "5"
112         Option          "SendCoreEvents"        "true"
113 EndSection
114
115
116 Section "InputDevice"
117         Identifier  "PS/2 Mouse"
118         Driver      "mouse"
119         Option      "Device" "/dev/input/mice"
120         # Option      "Device" "/dev/psaux"
121         Option      "Protocol" "PS/2"
122         Option      "Emulate3Buttons" "true"
123         Option      "Emulate3Timeout" "70"
124         Option      "SendCoreEvents"  "true"
125 EndSection
126
127
128 # Example for a Elo touchscreen:
129 # Section "InputDevice"
130 #     Identifier  "touchscreen"
131 #     Driver "elographics"
132 #     Option "Device" "/dev/ttyS0"
133 #     Option "SendCoreEvents" "true"
134 #     Option "MinX" "4070"
135 #     Option "MaxX" "0"
136 #     Option "MinY" "36"
137 #     Option "MaxY" "3960"
138 #     Option "ScreenNo" "1"
139 #     Option "BaudRate" "9600"
140 #     Option "StopBits" "1"
141 #     Option "DataBits" "8"
142 #     Option "Parity" "None"
143 #     Option "Vmin" "10"
144 #     Option "Vtime" "1"
145 #     Option "FlowControl" "None"
146 #     Option "PortraitMode" "Portrait"
147 #     Option "PortraitMode" "PortraitCCW"
148 #     Option "SwapXY" "true"
149 #     Option "UntouchDelay" "3"
150 #     Option "ReportDelay" "1"
151 # EndSection
152
153 Section "Monitor"
154         Identifier   "Monitor0"
155 #       ModelName    "Old Monitor (no DDC)"
156         Option       "DPMS"      "true"
157 #       HorizSync    28.0 - 78.0 # Warning: This may fry very old Monitors
158 #       HorizSync    28.0 - 96.0 # Warning: This may fry old Monitors
159         HorizSync    31.0 - 61.0
160 #       VertRefresh  50.0 - 76.0 # Very conservative. May flicker.
161 #       VertRefresh  50.0 - 60.0 # Extreme conservative. Will flicker. TFT default.
162         VertRefresh  50.0 - 90.0
163 # Need more information?
164 #  http://xtiming.sourceforge.net/cgi-bin/xtiming.pl
165 #  http://en.tldp.org/HOWTO/XFree86-Video-Timings-HOWTO/
166 EndSection
167
168 Section "Device"
169         ### Available Driver options are:
170         ## sw_cursor is needed for some ati and radeon cards
171         # Option     "sw_cursor"
172         # Option     "hw_cursor"
173         # Option     "NoAccel"
174         # Option     "ShowCache"
175         # Option     "ShadowFB"
176         # Option     "UseFBDev"
177         # Option     "Rotate"
178         ## xorg + nvidia:
179         # Option "RenderAccel" "true"
180         # Option "AllowGLXWithComposite" "true"
181         Identifier  "Card0"
182 # The following line is auto-generated by grml-x
183         Driver      "vesa"
184         VendorName  "All"
185         BoardName   "All"
186         ## Workaround for drivers which send output to wrong device:
187         # Option "MonitorLayout" "LVDS, AUTO"
188         # Option "MonitorLayout" "LVDS, CRT"
189         # Option "MonitorLayout" "NONE, STV"
190         # Option "MonitorLayout" "LVDS"
191         ## Specify BusID:
192         # BusID       "PCI:1:0:0"
193 EndSection
194
195 Section "Screen"
196         Identifier "Screen0"
197         Device     "Card0"
198         Monitor    "Monitor0"
199         DefaultColorDepth 16
200         SubSection "Display"
201                 Depth     1
202                 Modes "1024x768" "800x600" "640x480"  "1600x1200" "1280x1024" "1280x960"
203         EndSubSection
204         SubSection "Display"
205                 Depth     4
206                 Modes "1024x768" "800x600" "640x480"  "1600x1200" "1280x1024" "1280x960"
207         EndSubSection
208         SubSection "Display"
209                 Depth     8
210                 Modes "1024x768" "800x600" "640x480"  "1600x1200" "1280x1024" "1280x960"
211         EndSubSection
212         SubSection "Display"
213                 Depth     15
214                 Modes "1024x768" "800x600" "640x480"  "1600x1200" "1280x1024" "1280x960"
215         EndSubSection
216         SubSection "Display"
217                 Depth     16
218                 Modes "1024x768" "800x600" "640x480"  "1600x1200" "1280x1024" "1280x960"
219         EndSubSection
220         SubSection "Display"
221                 Depth     24
222                 Modes "1024x768" "800x600" "640x480"  "1600x1200" "1280x1024" "1280x960"
223         EndSubSection
224         SubSection "Display"
225                 Depth     32
226                 Modes "1024x768" "800x600" "640x480"  "1600x1200" "1280x1024" "1280x960"
227         EndSubSection
228 EndSection
229
230 Section "DRI"
231         Mode 0666
232 EndSection
233
234 #Section "Extensions"
235 #    Option "Composite" "Enable"
236 #EndSection
237
238 ## END OF FILE #################################################################