| 1 |
/* This file holds the various bits of the config file for X.Org 6.8.2+ */
|
| 2 |
|
| 3 |
#define FONTPATH "/usr/share/fonts/"
|
| 4 |
#define MAX_VIDEO_LEN 2048
|
| 5 |
#define TRUE 1
|
| 6 |
#define FALSE 0
|
| 7 |
#define XAC_VER "0.2.2"
|
| 8 |
|
| 9 |
static char *header =
|
| 10 |
"# This file was generated by Xorgautoconfig v" XAC_VER ".\n"
|
| 11 |
"Section \"ServerLayout\"\n"
|
| 12 |
" Identifier \"X.Org Configured\"\n"
|
| 13 |
" Screen 0 \"Screen0\" 0 0\n"
|
| 14 |
" InputDevice \"Mouse0\" \"CorePointer\"\n"
|
| 15 |
" InputDevice \"Keyboard0\" \"CoreKeyboard\"\n"
|
| 16 |
"EndSection\n"
|
| 17 |
"\n"
|
| 18 |
"Section \"Files\"\n"
|
| 19 |
"# Multiple FontPath entries are allowed (which are concatenated together),\n"
|
| 20 |
"# as well as specifying multiple comma-separated entries in one FontPath\n"
|
| 21 |
"# command (or a combination of both methods)\n\n";
|
| 22 |
|
| 23 |
static char *fontpath_xfs =
|
| 24 |
"# For X Font Server support, uncomment this and comment the other FontPaths\n"
|
| 25 |
"# Note that this is not required for most configurations\n"
|
| 26 |
"# FontPath \"unix/:-1\"\n";
|
| 27 |
|
| 28 |
static char *fontpath_gentoo =
|
| 29 |
" FontPath \"/usr/share/fonts/local\"\n"
|
| 30 |
" FontPath \"/usr/share/fonts/misc\"\n"
|
| 31 |
" FontPath \"/usr/share/fonts/75dpi/:unscaled\"\n"
|
| 32 |
" FontPath \"/usr/share/fonts/100dpi/:unscaled\"\n"
|
| 33 |
" FontPath \"/usr/share/fonts/Type1\"\n"
|
| 34 |
" fontpath \"/usr/share/fonts/TTF\"\n"
|
| 35 |
" FontPath \"/usr/share/fonts/CID\"\n"
|
| 36 |
" FontPath \"/usr/share/fonts/Speedo\"\n"
|
| 37 |
" FontPath \"/usr/share/fonts/75dpi\"\n"
|
| 38 |
" FontPath \"/usr/share/fonts/100dpi\"\n";
|
| 39 |
|
| 40 |
static char *modules_section_start =
|
| 41 |
"Section \"Module\"\n"
|
| 42 |
" Load \"extmod\"\n";
|
| 43 |
|
| 44 |
static char *modules_section_end =
|
| 45 |
" Load \"dri\"\n"
|
| 46 |
" Load \"dbe\"\n"
|
| 47 |
" Load \"record\"\n"
|
| 48 |
" Load \"glx\"\n"
|
| 49 |
" Load \"type1\"\n"
|
| 50 |
" Load \"freetype\"\n"
|
| 51 |
"EndSection\n\n";
|
| 52 |
|
| 53 |
static char *extensions_section =
|
| 54 |
"Section \"Extensions\"\n"
|
| 55 |
"# Option \"Composite\" \"Disable\" # Experimental\n"
|
| 56 |
"EndSection\n\n";
|
| 57 |
|
| 58 |
static char *serverflags_section =
|
| 59 |
"Section \"ServerFlags\"\n"
|
| 60 |
" Option \"blank time\" \"10\" # 10 minutes\n"
|
| 61 |
" Option \"standby time\" \"20\"\n"
|
| 62 |
" Option \"suspend time\" \"30\"\n"
|
| 63 |
" Option \"off time\" \"60\"\n"
|
| 64 |
"### Uncomment this Server flag if X should not change resolutions.\n"
|
| 65 |
"### This is useful if mode changing crashes / corrupts the X server\n"
|
| 66 |
"# Option \"DisableVidModeExtensions\"\n"
|
| 67 |
"EndSection\n\n";
|
| 68 |
|
| 69 |
static char *inputdev_section =
|
| 70 |
"Section \"InputDevice\"\n"
|
| 71 |
" Identifier \"Keyboard0\"\n"
|
| 72 |
" Driver \"kbd\"\n";
|
| 73 |
|
| 74 |
static char *keyboard_linux_start =
|
| 75 |
"# Change \"XkbModel\" to \"macintosh_old\" if you are using\n"
|
| 76 |
"# the deprecated adb keycodes.\n"
|
| 77 |
" Option \"XkbModel\" \"pc105\"\n"
|
| 78 |
" Option \"XkbLayout\" \"";
|
| 79 |
|
| 80 |
static char *keyboard_linux_end =
|
| 81 |
" Option \"XkbOptions\" \"compose:rwin\"\n"
|
| 82 |
"### Uncomment this if your layout uses nodeadkeys\n"
|
| 83 |
" #Option \"XkbVariant\" \"nodeadkeys\"\n"
|
| 84 |
"EndSection\n\n";
|
| 85 |
|
| 86 |
static char *mouse_section =
|
| 87 |
"Section \"InputDevice\"\n"
|
| 88 |
" Identifier \"Mouse0\"\n"
|
| 89 |
" Driver \"mouse\"\n"
|
| 90 |
" Option \"CorePointer\"\n"
|
| 91 |
" Option \"Protocol\" \"auto\"\n"
|
| 92 |
" Option \"Device\" \"/dev/input/mice\"\n"
|
| 93 |
"EndSection\n\n";
|
| 94 |
|
| 95 |
static char *monitor_section =
|
| 96 |
"Section \"Monitor\"\n"
|
| 97 |
" Identifier \"Monitor0\"\n"
|
| 98 |
" UseModes \"Modes0\"\n"
|
| 99 |
" ModelName \"Monitor Model\"\n"
|
| 100 |
" Option \"DPMS\"\n";
|
| 101 |
|
| 102 |
static char *monitor_section_nomodes =
|
| 103 |
"Section \"Monitor\"\n"
|
| 104 |
" Identifier \"Monitor0\"\n"
|
| 105 |
" ModelName \"Monitor Model\"\n"
|
| 106 |
" Option \"DPMS\"\n";
|
| 107 |
|
| 108 |
static char *modes_section =
|
| 109 |
"EndSection\n\n"
|
| 110 |
"Section \"Modes\"\n"
|
| 111 |
" Identifier \"Modes0\"\n"
|
| 112 |
"\n"
|
| 113 |
" # Generated\n";
|
| 114 |
|
| 115 |
static char *device_start =
|
| 116 |
"\n"
|
| 117 |
"EndSection\n\n"
|
| 118 |
"Section \"Device\"\n"
|
| 119 |
" Identifier \"Card0\"\n";
|
| 120 |
|
| 121 |
static char *driver_r128 =
|
| 122 |
" ### Available Driver options:\n"
|
| 123 |
" Option \"DMAForXv\" \"true\" # Use DMA for XV, reduces CPU usage\n"
|
| 124 |
" # Can cause stability problems\n"
|
| 125 |
" #Option \"SWcursor\" \"false\" # Use Software Cursor\n"
|
| 126 |
" #Option \"NoAccel\" \"false\" # Disable Hardware Acceleration\n"
|
| 127 |
" #Option \"Display\" \"FP\" # Display mode for devices which\n"
|
| 128 |
" # support Flat Panels. Modes:\n"
|
| 129 |
" # \"FP\" - Use Flat Panel\n"
|
| 130 |
" # \"CRT\" - Use CRT\n"
|
| 131 |
" # \"Mirror\" - Use both FP and CRT\n"
|
| 132 |
" ### See \"man r128\" for additional options\n"
|
| 133 |
"\n ### Warning: If your r128 has less than 10MB of ram, you will only be\n"
|
| 134 |
" ### able to use dri in 16bit color.\n";
|
| 135 |
|
| 136 |
static char *driver_radeon =
|
| 137 |
" ### Available Driver options:\n"
|
| 138 |
" Option \"EnablePageFlip\" \"true\" # Increases performance\n"
|
| 139 |
" #Option \"SWcursor\" \"false\" # Use Software Cursor\n"
|
| 140 |
" #Option \"NoAccel\" \"false\" # Disable Hardware Acceleration\n"
|
| 141 |
" #Option \"AGPMode\" \"1\" # Set AGP data transfer rate, DRI only\n"
|
| 142 |
" #Option \"AGPFastWrite\" \"false\" # Use AGP Fast Write, DRI only\n"
|
| 143 |
" #Option \"RenderAccel\" \"true\" # Hardware acceleration\n"
|
| 144 |
" #Option \"DCCMode\" \"false\" # Use querried modes from monitor\n"
|
| 145 |
" #Option \"MonitorLayout\" \"TMDS\" # Enable this for Apple DVI LCDs\n"
|
| 146 |
" ### See \"man radeon\" for additional options\n";
|
| 147 |
|
| 148 |
static char *driver_nv =
|
| 149 |
" ### Available Driver options:\n"
|
| 150 |
" #Option \"HWcursor\" \"true\" # Use Hardware Cursor\n"
|
| 151 |
" #Option \"NoAccel\" \"false\" # Disable Hardware Acceleration\n"
|
| 152 |
" ### See \"man nv\" for additional options\n";
|
| 153 |
|
| 154 |
/* Generic options */
|
| 155 |
static char *driver_on_opts =
|
| 156 |
" ### Available Driver options are:\n"
|
| 157 |
" #Option \"SWcursor\"\n"
|
| 158 |
" Option \"HWcursor\"\n"
|
| 159 |
" #Option \"PciRetry\"\n"
|
| 160 |
" #Option \"NoAccel\"\n"
|
| 161 |
" #Option \"ShadowFB\" \"true\"\n"
|
| 162 |
" Option \"fbdev\" \"/dev/fb0\"\n";
|
| 163 |
|
| 164 |
static char *driver_off_opts =
|
| 165 |
" ### Available Driver options are:\n"
|
| 166 |
" #Option \"SWcursor\"\n"
|
| 167 |
" #Option \"HWcursor\"\n"
|
| 168 |
" #Option \"PciRetry\"\n"
|
| 169 |
" #Option \"NoAccel\"\n"
|
| 170 |
" #Option \"ShadowFB\" \"true\"\n"
|
| 171 |
" #Option \"fbdev\" \"/dev/fb0\"\n";
|
| 172 |
|
| 173 |
static char *screen_section =
|
| 174 |
"EndSection\n"
|
| 175 |
"\n"
|
| 176 |
"Section \"Screen\"\n"
|
| 177 |
" Identifier \"Screen0\"\n"
|
| 178 |
" Device \"Card0\"\n"
|
| 179 |
" Monitor \"Monitor0\"\n"
|
| 180 |
" DefaultDepth ";
|
| 181 |
|
| 182 |
static char *dri_section =
|
| 183 |
"\n"
|
| 184 |
"Section \"DRI\"\n"
|
| 185 |
" Group 0\n"
|
| 186 |
" Mode 0666\n"
|
| 187 |
"EndSection\n";
|
| 188 |
|
| 189 |
static char *keymap_list =
|
| 190 |
"Available keymaps:\n"
|
| 191 |
"\tal\t\tAlbainian\n"
|
| 192 |
"\tam\t\tArmenian\n"
|
| 193 |
"\tar\t\tArabic\n"
|
| 194 |
"\taz\t\tAzerbaidjani\n"
|
| 195 |
"\tbe\t\tBelgian\n"
|
| 196 |
"\tben\t\tBengali\n"
|
| 197 |
"\tbg\t\tBulgarian\n"
|
| 198 |
"\tbr\t\tBrazilian\n"
|
| 199 |
"\tbs\t\tBosnian\n"
|
| 200 |
"\tby\t\tBelarusian\n"
|
| 201 |
"\tca\t\tCanadian\n"
|
| 202 |
"\tca_enhanced\tFrench Canadian\n"
|
| 203 |
"\tcz\t\tCzech\n"
|
| 204 |
"\tcz_qwerty\tCzech qwerty\n"
|
| 205 |
"\tczsk\t\tCzech and Slovak\n"
|
| 206 |
"\tde\t\tGerman\n"
|
| 207 |
"\tde_CH\t\tSwiss\n"
|
| 208 |
"\tdk\t\tDanish\n"
|
| 209 |
"\tdvorak\t\tDvorak\n"
|
| 210 |
"\tee\t\tEstonian\n"
|
| 211 |
"\tel\t\tHellenic\n"
|
| 212 |
"\tes\t\tSpanish\n"
|
| 213 |
"\tfi\t\tFinnish\n"
|
| 214 |
"\tfr\t\tFrench\n"
|
| 215 |
"\tfr_CH\t\tSwiss French\n"
|
| 216 |
"\tgb\t\tGreat Brittian\n"
|
| 217 |
"\tge_la\t\tGeorgian Latin Layout\n"
|
| 218 |
"\tge_ru\t\tGeorgian Russian Layout\n"
|
| 219 |
"\tguj\t\tGujarati\n"
|
| 220 |
"\tgur\t\tGurmukhi\n"
|
| 221 |
"\thr\t\tSlovenian\n"
|
| 222 |
"\thr_US\t\tCroatian-US\n"
|
| 223 |
"\thu\t\tHungarian\n"
|
| 224 |
"\thu_US\t\tHungarian-US\n"
|
| 225 |
"\thu_qwerty\tHungarian qwerty\n"
|
| 226 |
"\tie\t\tIrish\n"
|
| 227 |
"\til\t\tIsraelian\n"
|
| 228 |
"\til_phonetic\tIsraelian Phoentic\n"
|
| 229 |
"\tinet\t\tEAK Easy Access and Internet Keyboards\n"
|
| 230 |
"\tir\t\tIranian\n"
|
| 231 |
"\tis\t\tIslandic\n"
|
| 232 |
"\tit\t\tItalian\n"
|
| 233 |
"\tiu\t\tInuktitut\n"
|
| 234 |
"\tjp\t\tJapanese\n"
|
| 235 |
"\tjan\t\tKannada\n"
|
| 236 |
"\tla\t\tLatin American\n"
|
| 237 |
"\tlao\t\tLao\n"
|
| 238 |
"\tlt\t\tLithuanian\n"
|
| 239 |
"\tlt_a\t\tLithuanian azerty\n"
|
| 240 |
"\tlt_p\t\tLithuanian qwerty\n"
|
| 241 |
"\tlt_std\t\tLithuanian Standard\n"
|
| 242 |
"\tlv\t\tLatvian\n"
|
| 243 |
"\tmk\t\tMacedonian\n"
|
| 244 |
"\tml\t\tMalayalam\n"
|
| 245 |
"\tmm\t\tBurmese\n"
|
| 246 |
"\tmng\t\tMongolian Cryillic\n"
|
| 247 |
"\tmt\t\tMaltese\n"
|
| 248 |
"\tmt_us\t\tMaltese-US\n"
|
| 249 |
"\tnl\t\tNederland\n"
|
| 250 |
"\tno\t\tNorwegian\n"
|
| 251 |
"\togham\t\tOgham\n"
|
| 252 |
"\tori\t\tOriya\n"
|
| 253 |
"\tpl\t\tPolish\n"
|
| 254 |
"\tpl2\t\tPolish qwertz\n"
|
| 255 |
"\tpt\t\tPortuguese\n"
|
| 256 |
"\tro\t\tRomanian\n"
|
| 257 |
"\tru\t\tRussian\n"
|
| 258 |
"\tse\t\tSwedish\n"
|
| 259 |
"\tse_FI\t\tFinland\n"
|
| 260 |
"\tse_NO\t\tNorway\n"
|
| 261 |
"\tse_SE\t\tSweden\n"
|
| 262 |
"\tsi\t\tSlovenian\n"
|
| 263 |
"\tsk\t\tSlovak\n"
|
| 264 |
"\tsk_qwerty\tSlovak qwerty\n"
|
| 265 |
"\tsr\t\tSerbian\n"
|
| 266 |
"\tsyr\t\tSyriac\n"
|
| 267 |
"\tsyr_phonetic\tSyriac Phonetic\n"
|
| 268 |
"\ttel\t\tTelugu\n"
|
| 269 |
"\tth\t\tThai Kedmanee\n"
|
| 270 |
"\tth_pat\t\tThai Pattachote\n"
|
| 271 |
"\tth_tis\t\tThai TIS-820.2538\n"
|
| 272 |
"\ttj\t\tTajik\n"
|
| 273 |
"\ttml\t\tTamil\n"
|
| 274 |
"\ttr\t\tTurkish\n"
|
| 275 |
"\ttr_f\t\tTurkish F\n"
|
| 276 |
"\tua\t\tUkrainian\n"
|
| 277 |
"\tus\t\tUS\n"
|
| 278 |
"\tuz\t\tUzbek\n"
|
| 279 |
"\tvn\t\tVietnamese\n"
|
| 280 |
"\tyu\t\tYugoslav\n"
|
| 281 |
"\nNote that if no map is specified, us will be used\n";
|