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