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