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