home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-2 / Inter.Net 55-2.iso / Mandrake / mdkinst / usr / bin / perl-install / Xconfigurator_consts.pm < prev    next >
Encoding:
Text File  |  2000-01-12  |  29.6 KB  |  824 lines

  1. use common qw(:common);
  2.  
  3. %depths = (
  4.       8 => __("256 colors (8 bits)"),
  5.      15 => __("32 thousand colors (15 bits)"),
  6.      16 => __("65 thousand colors (16 bits)"),
  7.      24 => __("16 million colors (24 bits)"),
  8.      32 => __("4 billion colors (32 bits)"),
  9. );
  10. @depths = ikeys(%depths);
  11.  
  12. $resolution_wanted = "1024x768";
  13. @resolutions = qw(640x480 800x600 1024x768 1152x864 1280x1024 1600x1200);
  14.  
  15. @window_managers = qw(icewm wmaker kwm afterstep fvwm fvwm2 fvwm95 mwm twm enlightenment xfce blackbox);
  16.  
  17. %serversdriver = (
  18.     'SVGA'      => "svga",
  19.     'Rage128'   => "svga",
  20.     '3dfx'      => "svga",
  21.     'S3'        => "accel",
  22.     'Mach32'    => "accel",
  23.     'Mach8'     => "accel",
  24.     '8514'      => "accel",
  25.     'P9000'     => "accel",
  26.     'AGX'       => "accel",
  27.     'W32'       => "accel",
  28.     'Mach64'    => "accel",
  29.     'I128'      => "accel",
  30.     'S3V'       => "accel",
  31.     '3DLabs'    => "accel",
  32.     'Mono'      => "vga2",
  33.     'VGA16'     => "vga16",
  34.     'FBDev'     => "fbdev",
  35. );
  36. @svgaservers = grep { $serversdriver{$_} eq "svga" } keys(%serversdriver);
  37. @accelservers = grep { $serversdriver{$_} eq "accel" } keys(%serversdriver);
  38. @allbutfbservers = grep { $serversdriver{$_} ne "fbdev" } keys(%serversdriver);
  39. @allservers = keys(%serversdriver);
  40.  
  41. %vgamodes = (
  42.     '640xx8'       => 769,
  43.     '640x480x8'    => 769,
  44.     '800xx8'       => 771,
  45.     '800x600x8'    => 771,
  46.     '1024xx8'      => 773,
  47.     '1024x768x8'   => 773,
  48.     '1280xx8'      => 775,
  49.     '1280x1024x8'  => 775,
  50.     '640xx15'      => 784,
  51.     '640x480x15'   => 784,
  52.     '800xx15'      => 787,
  53.     '800x600x15'   => 787,
  54.     '1024xx15'     => 790,
  55.     '1024x768x15'  => 790,
  56.     '1280xx15'     => 793,
  57.     '1280x1024x15' => 793,
  58.     '640xx16'      => 785,
  59.     '640x480x16'   => 785,
  60.     '800xx16'      => 788,
  61.     '800x600x16'   => 788,
  62.     '1024xx16'     => 791,
  63.     '1024x768x16'  => 791,
  64.     '1280xx16'     => 794,
  65.     '1280x1024x16' => 794,
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74. );
  75.  
  76.     my %l = my @l = ( 
  77.     13 => "640x480",
  78.     14 => "800x600",
  79.     15 => "800x600",
  80.     16 => "1024x768",
  81.     17 => "1152x864",
  82.     18 => "1152x864",
  83.     19 => "1280x1024",
  84.         20 => "1600x1200",
  85.     );
  86.     for (my $i = 0; $i < $l[0]; $i++) {
  87.     $monitorSize2resolution[$i] = $l[1];
  88.     }
  89.     while (my ($s, $r) = each %l) {
  90.     $monitorSize2resolution[$s] = $r;
  91.     }
  92. }
  93.  
  94. %videomemory = (
  95.     __("256 kB") => 256,
  96.     __("512 kB") => 512,
  97.     __("1 MB") => 1024,
  98.     __("2 MB") => 2048,
  99.     __("4 MB") => 4096,
  100.     __("8 MB") => 8192,
  101.     __("16 MB or more") => 16384,
  102. );
  103.  
  104. $default_monitor = "High Frequency SVGA, 1024x768 at 70 Hz";
  105. %standard_monitors = (
  106.   __("Standard VGA, 640x480 at 60 Hz")                             => [ '640x480@60',      "31.5"            , "60" ],
  107.   __("Standard VGA, 640x480 at 60 Hz")                             => [ '640x480@60',      "31.5"            , "60" ],
  108.   __("Super VGA, 800x600 at 56 Hz")                    => [ '800x600@56',      "31.5-35.1"       , "55-60" ],
  109.   __("8514 Compatible, 1024x768 at 87 Hz interlaced (no 800x600)") => [ '8514 compatible', "31.5,35.5"       , "60,70,87" ],
  110.   __("Super VGA, 1024x768 at 87 Hz interlaced, 800x600 at 56 Hz")  => [ '1024x768@87i',    "31.5,35.15,35.5" , "55-90" ],
  111.   __("Extended Super VGA, 800x600 at 60 Hz, 640x480 at 72 Hz")     => [ '800x600@60',      "31.5-37.9"       , "55-90" ],
  112.   __("Non-Interlaced SVGA, 1024x768 at 60 Hz, 800x600 at 72 Hz")   => [ '1024x768@60',     "31.5-48.5"       , "55-90" ],
  113.   __("High Frequency SVGA, 1024x768 at 70 Hz")                    => [ '1024x768@70',     "31.5-57.0"       , "50-90" ],
  114.   __("Multi-frequency that can do 1280x1024 at 60 Hz")                => [ '1280x1024@60',    "31.5-64.3"       , "50-90" ],
  115.   __("Multi-frequency that can do 1280x1024 at 74 Hz")                => [ '1280x1024@74',    "31.5-79.0"       , "50-100" ],
  116.   __("Multi-frequency that can do 1280x1024 at 76 Hz")                => [ '1280x1024@76',    "31.5-82.0"       , "40-100" ],
  117.   __("Monitor that can do 1600x1200 at 70 Hz")                     => [ '1600x1200@70',    "31.5-88.0"       , "50-120" ],
  118.   __("Monitor that can do 1600x1200 at 76 Hz")                   => [ '1600x1200@76',    "31.5-94.0"       , "50-160" ],
  119. );
  120.  
  121. @vsyncranges = ("50-70", "50-90", "50-100", "40-150");
  122.  
  123. @hsyncranges = (
  124.     "31.5",
  125.     "31.5-35.1",
  126.     "31.5, 35.5",
  127.     "31.5, 35.15, 35.5",
  128.     "31.5-37.9",
  129.     "31.5-48.5",
  130.     "31.5-57.0",
  131.     "31.5-64.3",
  132.     "31.5-79.0",
  133.     "31.5-82.0",
  134.     "31.5-88.0",
  135.     "31.5-94.0",
  136. );
  137.  
  138. %min_hsync4wres = (
  139.      640 => 31.5,
  140.      800 => 35.1,
  141.     1024 => 35.5,
  142.     1152 => 44.0,
  143.     1280 => 51.0,
  144.     1600 => 75.0,
  145. );
  146.  
  147.  
  148. %lines = (
  149.  
  150.       'Silicon Integrated Systems [SiS]|86C326' => [ '    Option "noaccel"' ],
  151.  
  152.  
  153. );
  154.  
  155.  
  156.  
  157. @options = (
  158.         [ 'power_saver',       'Mono',        '.*' ],
  159.         [ 'hibit_low',         'VGA16',       'Tseng.*ET4000' ],
  160.         [ 'hibit_high',        'VGA16',       'Tseng.*ET4000' ],
  161.         [ 'power_saver',       'VGA16',       '.*' ],
  162.         [ 'noaccel',           'SVGA',        'Cirrus|C&T|SiS|Oak|Western Digital|Alliance|Trident|Tseng' ],
  163.         [ 'no_accel',          'SVGA',        'ARK|MGA|i740|Oak|ET6000|W32|Media.*GX|Neomagic' ],
  164.         [ 'linear',            'SVGA',        'Cirrus|ET6000|ET4000/W32p rev [CD]|Oak|Neomagic|Triden|Tseng' ],
  165.         [ 'nolinear',          'SVGA',        'Cirrus|C&T|Trident' ],
  166.         [ 'no_linear',         'SVGA',        'ARK|SiS|Neomagic|Tseng' ],
  167.         [ 'no_bitblt',         'SVGA',        'Cirrus|C&T|SiS' ],
  168.         [ 'no_imageblt',       'SVGA',        'Cirrus|C&T|SiS' ],
  169.         [ 'sw_cursor',         'SVGA',        '.*' ],
  170.         [ 'slow_dram',         'SVGA',        'Cirrus|Trident|ET6000|W32|Western Digital|Tseng' ],
  171.         [ 'mga_sdram',         'SVGA',        'MGA' ],
  172.         [ 'no_pixmap_cache',   'SVGA',        'ARK|Cirrus|C&T|MGA|SiS|Trident.*9440|Trident.*9680|Tseng' ],
  173.         [ 'no_mmio',           'SVGA',        'Cirrus|Neomagic|Trident' ],
  174.         [ 'pci_burst_off',     'SVGA',        'ET6000|W32|Trident|Tseng' ],
  175.         [ 'hw_clocks',         'SVGA',        'SiS|C&T' ],
  176.         [ 'use_modeline',      'SVGA',        'C&T' ],
  177.         [ 'enable_bitblt',     'SVGA',        'Oak' ],
  178.         [ 'w32_interleave_off', 'SVGA',       'ET6000|W32|Tseng' ],
  179.         [ 'fifo_conservative', 'SVGA',        'Cirrus|ARK|SiS|Oak' ],
  180.         [ 'fifo_moderate',     'SVGA',        'Cirrus|ARK|SiS' ],
  181.         [ 'all_wait',          'SVGA',        'Oak' ],
  182.         [ 'one_wait',          'SVGA',        'Oak' ],
  183.         [ 'first_wait',        'SVGA',        'Oak' ],
  184.         [ 'first_wwait',       'SVGA',        'Oak' ],
  185.         [ 'write_wait',        'SVGA',        'Oak' ],
  186.         [ 'read_wait',         'SVGA',        'Oak' ],
  187.         [ 'clgd6225_lcd',      'SVGA',        'Cirrus' ],
  188.         [ 'fix_panel_size',    'SVGA',        'C&T' ],
  189.         [ 'lcd_center',        'SVGA',        'C&T|Neomagic|Trident' ],
  190.         [ 'cyber_shadow',      'SVGA',        'Trident' ],
  191.         [ 'STN',               'SVGA',        'C&T' ],
  192.         [ 'no_stretch',        'SVGA',        'C&T|Cirrus|Neomagic|Trident' ],
  193.         [ 'no_prog_lcd_mode_regs', 'SVGA',    'Neomagic' ],
  194.         [ 'prog_lcd_mode_stretch', 'SVGA',    'Neomagic' ],
  195.         [ 'suspend_hack',      'SVGA',        'C&T' ],
  196.         [ 'use_18bit_bus',     'SVGA',        'C&T' ],
  197.         [ 'hibit_low',         'SVGA',        'Tseng.*ET4000' ],
  198.         [ 'hibit_high',        'SVGA',        'Tseng.*ET4000' ],
  199.         [ 'probe_clocks',      'SVGA',        'Cirrus' ],
  200.         [ 'power_saver',       'SVGA',        '.*' ],
  201.         [ 'use_vlck1',         'SVGA',        'C&T' ],
  202.         [ 'sgram',             'SVGA',        'i740' ],
  203.         [ 'sdram',             'SVGA',        'i740' ],
  204.         [ 'no_2mb_banksel',    'SVGA',        'Cirrus' ],
  205.         [ 'tgui_pci_read_on',  'SVGA',        'Trident' ],
  206.         [ 'tgui_pci_write_on', 'SVGA',        'Trident' ],
  207.         [ 'no_program_clocks', 'SVGA',        'Trident' ],
  208.         [ 'mmio',              'SVGA',        'Cirrus|C&T|Neomagic' ],
  209.         [ 'sync_on_green',     'SVGA',        'C&T|MGA' ],
  210.         [ 'pci_retry',         'SVGA',        'Tseng|MGA|Cirrus' ],
  211.         [ 'hw_cursor',         'SVGA',        'C&T|SiS|ARK|ET6000|i740|Tseng' ],
  212.         [ 'xaa_no_color_exp',  'SVGA',        'C&T|Cirrus|Trident|Tseng' ],
  213.         [ 'xaa_benchmarks',    'SVGA',        'C&T' ],
  214.         [ 'pci_burst_on',      'SVGA',        'Trident|Tseng' ],
  215.         [ 'prog_lcd_mode_regs', 'SVGA',       'Neomagic' ],
  216.         [ 'no_prog_lcd_mode_stretch', 'SVGA', 'Neomagic' ],
  217.         [ 'no_wait',           'SVGA',        'Oak' ],
  218.         
  219.         
  220.         
  221.         
  222.         
  223.         
  224.         
  225.         
  226.         
  227.         [ 'sw_cursor',         '3DLabs',      '.*' ],
  228.         [ 'no_pixmap_cache',   '3DLabs',      '.*' ],
  229.         [ 'no_accel',          '3DLabs',      '.*' ],
  230.         [ 'firegl_3000',       '3DLabs',      '.*' ],
  231.         [ 'sync_on_green',     '3DLabs',      '.*' ],
  232.         [ 'pci_retry',         '3DLabs',      '.*' ],
  233.         
  234.         [ 'dac_8_bit',         'I128',        '.*' ],
  235.         [ 'no_accel',          'I128',        '.*' ],
  236.         [ 'sync_on_green',     'I128',        '.*' ],
  237.         [ 'composite',         'Mach32',      '.*' ],
  238.         [ 'sw_cursor',         'Mach32',      '.*' ],
  239.         [ 'dac_8_bit',         'Mach32',      '.*' ],
  240.         [ 'ast_mach32',        'Mach32',      '.*' ],
  241.         [ 'intel_gx',          'Mach32',      '.*' ],
  242.         [ 'no_linear',         'Mach32',      '.*' ],
  243.         [ 'sw_cursor',         'Mach64',      '.*' ],
  244.         [ 'nolinear',          'Mach64',      '.*' ],
  245.         [ 'no_block_write',    'Mach64',      '.*' ],
  246.         [ 'block_write',       'Mach64',      '.*' ],
  247.         [ 'fifo_conservative', 'Mach64',      '.*' ],
  248.         [ 'no_font_cache',     'Mach64',      '.*' ],
  249.         [ 'no_pixmap_cache',   'Mach64',      '.*' ],
  250.         [ 'composite',         'Mach64',      '.*' ],
  251.         [ 'power_saver',       'Mach64',      '.*' ],
  252.         [ 'no_program_clocks', 'Mach64',      '.*' ],
  253.         [ 'no_bios_clocks',    'Mach64',      '.*' ],
  254.         [ 'dac_6_bit',         'Mach64',      '.*' ],
  255.         [ 'dac_8_bit',         'Mach64',      '.*' ],
  256.         [ 'hw_cursor',         'Mach64',      '.*' ],
  257.         
  258.         [ 'sw_cursor',         'P9000',       '.*' ],
  259.         [ 'noaccel',           'P9000',       '.*' ],
  260.         [ 'sync_on_green',     'P9000',       '.*' ],
  261.         [ 'vram_128',          'P9000',       '.*' ],
  262.         [ 'nolinear',          'S3',          '.*' ],
  263.         [ 'dac_8_bit',         'S3',          '.*' ],
  264.         [ 'slow_vram',         'S3',          'S3.*964' ],
  265.         [ 'stb_pegasus',       'S3',          'S3.*928' ],
  266.         [ 'SPEA_Mercury',      'S3',          'S3.*(928|964)' ],
  267.         [ 'number_nine',       'S3',          'S3.*(864|928)' ],
  268.         [ 'lcd_center',        'S3',          'S3.*Aurora64V' ],
  269.         [ 'noaccel',           'S3V',         '.*' ],
  270.         [ 'slow_edodram',      'S3V',         '.*' ],
  271.         [ 'pci_burst_on',      'S3V',         '.*' ],
  272.         [ 'early_ras_precharge', 'S3V',       '.*' ],
  273.         [ 'late_ras_precharge', 'S3V',        '.*' ],
  274.         [ 'fifo_conservative', 'S3V',         '.*' ],
  275.         [ 'fifo_aggressive',   'S3V',         '.*' ],
  276.         [ 'fifo_moderate',     'S3V',         '.*' ],
  277.         [ 'lcd_center',        'S3V',         'S3.*ViRGE\/MX' ],
  278.         [ 'hw_cursor',         'S3V',         '.*' ],
  279.         [ 'pci_retry',         'S3V',         '.*' ],
  280.         [ 'dac_6_bit',         'AGX',         '.*' ],
  281.         [ 'dac_8_bit',         'AGX',         '.*' ],
  282.         [ 'sync_on_green',     'AGX',         '.*' ],
  283.         [ '8_bit_bus',         'AGX',         '.*' ],
  284.         [ 'wait_state',        'AGX',         '.*' ],
  285.         [ 'no_wait_state',     'AGX',         '.*' ],
  286.         [ 'noaccel',           'AGX',         '.*' ],
  287.         [ 'crtc_delay',        'AGX',         '.*' ],
  288.         [ 'fifo_conserv',      'AGX',         '.*' ],
  289.         [ 'fifo_aggressive',   'AGX',         '.*' ],
  290.         [ 'fifo_moderate',     'AGX',         '.*' ],
  291.         [ 'vram_delay_latch',  'AGX',         '.*' ],
  292.         [ 'vram_delay_ras',    'AGX',         '.*' ],
  293.         [ 'vram_extend_ras',   'AGX',         '.*' ],
  294.         [ 'slow_dram',         'AGX',         '.*' ],
  295.         [ 'slow_vram',         'AGX',         '.*' ],
  296.         [ 'med_dram',          'AGX',         '.*' ],
  297.         [ 'med_vram',          'AGX',         '.*' ],
  298.         [ 'fast_dram',         'AGX',         '.*' ],
  299.         [ 'fast_vram',         'AGX',         '.*' ],
  300.         [ 'engine_delay',      'AGX',         '.*' ],
  301.         [ 'vram_128',          'AGX',         '.*' ],
  302.         [ 'vram_256',          'AGX',         '.*' ],
  303.         [ 'refresh_20',        'AGX',         '.*' ],
  304.         [ 'refresh_25',        'AGX',         '.*' ],
  305.         [ 'screen_refresh',    'AGX',         '.*' ],
  306.         [ 'vlb_a',             'AGX',         '.*' ],
  307.         [ 'vlb_b',             'AGX',         '.*' ],
  308.         [ 'slow_dram',         'W32',         '.*' ],
  309.         [ 'pci_burst_off',     'W32',         '.*' ],
  310.         [ 'w32_interleave_off', 'W32',        '.*' ],
  311.         [ 'no_accel',          'W32',         '.*' ],
  312.         [ 'nolinear',          '8514',        '.*' ],
  313.         [ 'sw_cursor',         '8514',        '.*' ],
  314.         [ 'no_block_write',    '8514',        '.*' ],
  315.         [ 'block_write',       '8514',        '.*' ],
  316.         [ 'fifo_conservative', '8514',        '.*' ],
  317.         [ 'no_font_cache',     '8514',        '.*' ],
  318.         [ 'no_pixmap_cache',   '8514',        '.*' ],
  319.         [ 'composite',         '8514',        '.*' ],
  320.         [ 'power_saver',       '8514',        '.*' ],
  321.         [ 'power_saver',       'FBDev',       '.*' ],
  322. );
  323.  
  324. %xkb_options = (
  325.     'ru' => [ 'XkbVariant "winkeys"', 'XkbOptions "grp:caps_toggle"' ],
  326. );
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374. $intro_text = "
  375. This program will create a basic XF86Config file, based on menu selections you make.
  376.  
  377. The XF86Config file usually resides in /usr/X11R6/lib/X11 or /etc/X11. A
  378. sample XF86Config file is supplied with XFree86; it is configured for a
  379. standard VGA card and monitor with 640x480 resolution.
  380.  
  381. You can either take the sample XF86Config as a base and edit it for your
  382. configuration, or let this program produce a base XF86Config file for your
  383. configuration and fine-tune it. Refer to /usr/X11R6/lib/X11/doc/README.Config
  384. for a detailed overview of the configuration process.
  385.  
  386. For accelerated servers (including accelerated drivers in the SVGA server),
  387. there are many chipset and card-specific options and settings. This program
  388. does not know about these. On some configurations some of these settings must
  389. be specified. Refer to the server man pages and chipset-specific READMEs.
  390.  
  391. Before continuing with this program, make sure you know the chipset and
  392. amount of video memory on your video card. SuperProbe can help with this.
  393. It is also helpful if you know what server you want to run.";
  394.  
  395. $s3_comment = '
  396. # Use Option "nolinear" if the server doesn\'t start up correctly
  397. # (this avoids the linear framebuffer probe). If that fails try
  398. # option \"nomemaccess\".
  399. #
  400. # Refer to /usr/X11R6/lib/doc/README.S3, and the XF86_S3 man page.
  401. ';
  402.  
  403. $cirrus_comment = '
  404. # Use Option \"no_bitblt\" if you have graphics problems. If that fails
  405. # try Option \"noaccel\".
  406. # Refer to /usr/X11R6/lib/doc/README.cirrus.
  407. # To allow linear addressing, uncomment the Option line and the
  408. # address that the card maps the framebuffer to.
  409. ';
  410.  
  411. $probeonlywarning_text = '
  412. It is possible that the hardware detection routines in the server some how
  413. cause the system to crash and the screen to remain blank. If this is the
  414. case, skip this step the next time. The server may need a
  415. Ramdac, ClockChip or special option (e.g. "nolinear" for S3) to probe
  416. and start-up correctly.
  417. ';
  418.  
  419. $monitorintro_text = __('
  420. Now we want to set the specifications of the monitor. The two critical
  421. parameters are the vertical refresh rate, which is the rate at which the
  422. the whole screen is refreshed, and most importantly the horizontal sync rate,
  423. which is the rate at which scanlines are displayed.
  424.  
  425. The valid range for horizontal sync and vertical sync should be documented
  426. in the manual of your monitor. If in doubt, check the monitor database
  427. /usr/X11R6/lib/X11/doc/Monitors to see if your monitor is there.
  428. ');
  429.  
  430. $hsyncintro_text = __('
  431. You must indicate the horizontal sync range of your monitor. You can either
  432. select one of the predefined ranges below that correspond to industry-
  433. standard monitor types, or give a specific range.
  434.  
  435. It is VERY IMPORTANT that you do not specify a monitor type with a horizontal
  436. sync range that is beyond the capabilities of your monitor. If in doubt,
  437. choose a conservative setting.
  438. ');
  439.  
  440. $vsyncintro_text = __('
  441. You must indicate the vertical sync range of your monitor. You can either
  442. select one of the predefined ranges below that correspond to industry-
  443. standard monitor types, or give a specific range. For interlaced modes,
  444. the number that counts is the high one (e.g. 87 Hz rather than 43 Hz).
  445. ');
  446.  
  447. $XF86firstchunk_text = '
  448. # File generated by XConfigurator.
  449.  
  450. # **********************************************************************
  451. # Refer to the XF86Config(4/5) man page for details about the format of
  452. # this file.
  453. # **********************************************************************
  454.  
  455. # **********************************************************************
  456. # Files section.  This allows default font and rgb paths to be set
  457. # **********************************************************************
  458.  
  459. Section "Files"
  460.  
  461. # The location of the RGB database.  Note, this is the name of the
  462. # file minus the extension (like ".txt" or ".db").  There is normally
  463. # no need to change the default.
  464.  
  465.     RgbPath    "/usr/X11R6/lib/X11/rgb"
  466.  
  467. # Multiple FontPath entries are allowed (they are concatenated together)
  468. # By default, Red Hat 6.0 and later now use a font server independent of
  469. # the X server to render fonts.
  470.  
  471.     FontPath   "unix/:-1"
  472.  
  473. EndSection
  474.  
  475. # **********************************************************************
  476. # Server flags section.
  477. # **********************************************************************
  478.  
  479. Section "ServerFlags"
  480.  
  481.     # Uncomment this to cause a core dump at the spot where a signal is
  482.     # received.  This may leave the console in an unusable state, but may
  483.     # provide a better stack trace in the core dump to aid in debugging
  484.     #NoTrapSignals
  485.  
  486.     # Uncomment this to disable the <Crtl><Alt><BS> server abort sequence
  487.     # This allows clients to receive this key event.
  488.     #DontZap
  489.  
  490.     # Uncomment this to disable the <Crtl><Alt><KP_+>/<KP_-> mode switching
  491.     # sequences.  This allows clients to receive these key events.
  492.     #DontZoom
  493.  
  494.     # This  allows  the  server  to start up even if the
  495.     # mouse device can\'t be opened/initialised.
  496.     AllowMouseOpenFail
  497.  
  498. EndSection
  499.  
  500. # **********************************************************************
  501. # Input devices
  502. # **********************************************************************
  503. ';
  504.  
  505. $keyboardsection_start = '
  506. # **********************************************************************
  507. # Keyboard section
  508. # **********************************************************************
  509.  
  510. Section "Keyboard"
  511.  
  512.     Protocol    "Standard"
  513.  
  514.     # when using XQUEUE, comment out the above line, and uncomment the
  515.     # following line
  516.     #Protocol   "Xqueue"
  517.  
  518.     AutoRepeat  0 0
  519.  
  520.     # Let the server do the NumLock processing.  This should only be
  521.     # required when using pre-R6 clients
  522.     #ServerNumLock
  523.  
  524.     # Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
  525.     #Xleds      1 2 3
  526.  
  527.     #To set the LeftAlt to Meta, RightAlt key to ModeShift,
  528.     #RightCtl key to Compose, and ScrollLock key to ModeLock:
  529.  
  530.     LeftAlt        Meta
  531. ';
  532.  
  533. $keyboardsection_part2 = '
  534.    ScrollLock      Compose
  535.    RightCtl        Control
  536.  
  537. # To disable the XKEYBOARD extension, uncomment XkbDisable.
  538.  
  539. #    XkbDisable
  540. ';
  541.  
  542. $keyboardsection_part3 = '
  543. # To customise the XKB settings to suit your keyboard, modify the
  544. # lines below (which are the defaults).  For example, for a non-U.S.
  545. # keyboard, you will probably want to use:
  546. #    XkbModel    "pc102"
  547. # If you have a US Microsoft Natural keyboard, you can use:
  548. #    XkbModel    "microsoft"
  549. #
  550. # Then to change the language, change the Layout setting.
  551. # For example, a german layout can be obtained with:
  552. #    XkbLayout   "de"
  553. # or:
  554. #    XkbLayout   "de"
  555. #    XkbVariant  "nodeadkeys"
  556. #
  557. # If you\'d like to switch the positions of your capslock and
  558. # control keys, use:
  559. #    XkbOptions  "ctrl:swapcaps"
  560.  
  561. # These are the default XKB settings for XFree86
  562. #    XkbRules    "xfree86"
  563. #    XkbModel    "pc101"
  564. #    XkbLayout   "us"
  565. #    XkbVariant  ""
  566. #    XkbOptions  ""
  567.  
  568.     XkbKeycodes     "xfree86"
  569.     XkbTypes        "default"
  570.     XkbCompat       "default"
  571.     XkbSymbols      "us(pc101)"
  572.     XkbGeometry     "pc"
  573.     XkbRules        "xfree86"
  574.     XkbModel        "pc101"
  575. ';
  576.  
  577. $keyboardsection_end = '
  578. EndSection
  579. ';
  580.  
  581. $pointersection_text1 = '
  582. # **********************************************************************
  583. # Pointer section
  584. # **********************************************************************
  585.  
  586. Section "Pointer"
  587. ';
  588.  
  589. $pointersection_text2 = '
  590.  
  591. # When using XQUEUE, comment out the above two lines, and uncomment
  592. # the following line.
  593.  
  594. #    Protocol    "Xqueue"
  595.  
  596. # Baudrate and SampleRate are only for some Logitech mice
  597.  
  598. #    BaudRate    9600
  599. #    SampleRate    150
  600.  
  601. # Emulate3Buttons is an option for 2-button Microsoft mice
  602. # Emulate3Timeout is the timeout in milliseconds (default is 50ms)
  603. ';
  604.  
  605. $monitorsection_text1 = '
  606. # **********************************************************************
  607. # Monitor section
  608. # **********************************************************************
  609.  
  610. # Any number of monitor sections may be present
  611.  
  612. Section "Monitor"
  613. ';
  614.  
  615. $monitorsection_text2 = '
  616. # HorizSync is in kHz unless units are specified.
  617. # HorizSync may be a comma separated list of discrete values, or a
  618. # comma separated list of ranges of values.
  619. # NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR\'S
  620. # USER MANUAL FOR THE CORRECT NUMBERS.
  621. ';
  622.  
  623. $monitorsection_text3 = '
  624. # VertRefresh is in Hz unless units are specified.
  625. # VertRefresh may be a comma separated list of discrete values, or a
  626. # comma separated list of ranges of values.
  627. # NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR\'S
  628. # USER MANUAL FOR THE CORRECT NUMBERS.
  629. ';
  630.  
  631. $monitorsection_text4 = '
  632. # Modes can be specified in two formats.  A compact one-line format, or
  633. # a multi-line format.
  634.  
  635. # These two are equivalent
  636.  
  637. #    ModeLine "1024x768i" 45 1024 1048 1208 1264 768 776 784 817 Interlace
  638.  
  639. #    Mode "1024x768i"
  640. #        DotClock    45
  641. #        HTimings    1024 1048 1208 1264
  642. #        VTimings    768 776 784 817
  643. #        Flags        "Interlace"
  644. #    EndMode
  645. ';
  646.  
  647. $modelines_text_Trident_TG_96xx = '
  648. # This is a set of standard mode timings. Modes that are out of monitor spec
  649. # are automatically deleted by the server (provided the HorizSync and
  650. # VertRefresh lines are correct), so there\'s no immediate need to
  651. # delete mode timings (unless particular mode timings don\'t work on your
  652. # monitor). With these modes, the best standard mode that your monitor
  653. # and video card can support for a given resolution is automatically
  654. # used.
  655.  
  656. # These are special modelines for Trident Providia 9685. It is for VA Linux
  657. # systems only.
  658. # 640x480 @ 72 Hz, 36.5 kHz hsync
  659. Modeline "640x480"     31.5   640  680  720  864   480  488  491  521
  660. # 800x600 @ 72 Hz, 48.0 kHz hsync
  661. Modeline "800x600"     50     800  856  976 1040   600  637  643  666 +hsync +vsync
  662. # 1024x768 @ 60 Hz, 48.4 kHz hsync
  663. #Modeline "1024x768"    65    1024 1032 1176 1344   768  771  777  806 -hsync -vsync
  664. # 1024x768 @ 70 Hz, 56.5 kHz hsync
  665. Modeline "1024x768"    75    1024 1048 1184 1328   768  771  777  806 -hsync -vsync
  666. ';
  667. $modelines_text = '
  668. # This is a set of standard mode timings. Modes that are out of monitor spec
  669. # are automatically deleted by the server (provided the HorizSync and
  670. # VertRefresh lines are correct), so there\'s no immediate need to
  671. # delete mode timings (unless particular mode timings don\'t work on your
  672. # monitor). With these modes, the best standard mode that your monitor
  673. # and video card can support for a given resolution is automatically
  674. # used.
  675.  
  676. # 640x400 @ 70 Hz, 31.5 kHz hsync
  677. Modeline "640x400"     25.175 640  664  760  800   400  409  411  450
  678. # 640x480 @ 60 Hz, 31.5 kHz hsync
  679. Modeline "640x480"     25.175 640  664  760  800   480  491  493  525
  680. # 800x600 @ 56 Hz, 35.15 kHz hsync
  681. ModeLine "800x600"     36     800  824  896 1024   600  601  603  625
  682. # 1024x768 @ 87 Hz interlaced, 35.5 kHz hsync
  683. Modeline "1024x768"    44.9  1024 1048 1208 1264   768  776  784  817 Interlace
  684.  
  685. # 640x400 @ 85 Hz, 37.86 kHz hsync
  686. Modeline "640x400"     31.5   640  672 736   832   400  401  404  445 -HSync +VSync
  687. # 640x480 @ 72 Hz, 36.5 kHz hsync
  688. Modeline "640x480"     31.5   640  680  720  864   480  488  491  521
  689. # 640x480 @ 75 Hz, 37.50 kHz hsync
  690. ModeLine  "640x480"    31.5   640  656  720  840   480  481  484  500 -HSync -VSync
  691. # 800x600 @ 60 Hz, 37.8 kHz hsync
  692. Modeline "800x600"     40     800  840  968 1056   600  601  605  628 +hsync +vsync
  693.  
  694. # 640x480 @ 85 Hz, 43.27 kHz hsync
  695. Modeline "640x480"     36     640  696  752  832   480  481  484  509 -HSync -VSync
  696. # 1152x864 @ 89 Hz interlaced, 44 kHz hsync
  697. ModeLine "1152x864"    65    1152 1168 1384 1480   864  865  875  985 Interlace
  698.  
  699. # 800x600 @ 72 Hz, 48.0 kHz hsync
  700. Modeline "800x600"     50     800  856  976 1040   600  637  643  666 +hsync +vsync
  701. # 1024x768 @ 60 Hz, 48.4 kHz hsync
  702. Modeline "1024x768"    65    1024 1032 1176 1344   768  771  777  806 -hsync -vsync
  703.  
  704. # 640x480 @ 100 Hz, 53.01 kHz hsync
  705. Modeline "640x480"     45.8   640  672  768  864   480  488  494  530 -HSync -VSync
  706. # 1152x864 @ 60 Hz, 53.5 kHz hsync
  707. Modeline  "1152x864"   89.9  1152 1216 1472 1680   864  868  876  892 -HSync -VSync
  708. # 800x600 @ 85 Hz, 55.84 kHz hsync
  709. Modeline  "800x600"    60.75  800  864  928 1088   600  616  621  657 -HSync -VSync
  710.  
  711. # 1024x768 @ 70 Hz, 56.5 kHz hsync
  712. Modeline "1024x768"    75    1024 1048 1184 1328   768  771  777  806 -hsync -vsync
  713. # 1280x1024 @ 87 Hz interlaced, 51 kHz hsync
  714. Modeline "1280x1024"   80    1280 1296 1512 1568  1024 1025 1037 1165 Interlace
  715.  
  716. # 800x600 @ 100 Hz, 64.02 kHz hsync
  717. Modeline  "800x600"    69.65  800  864  928 1088   600  604  610  640 -HSync -VSync
  718. # 1024x768 @ 76 Hz, 62.5 kHz hsync
  719. Modeline "1024x768"    85    1024 1032 1152 1360   768  784  787  823
  720. # 1152x864 @ 70 Hz, 62.4 kHz hsync
  721. Modeline  "1152x864"   92    1152 1208 1368 1474   864  865  875  895
  722. # 1280x1024 @ 61 Hz, 64.2 kHz hsync
  723. Modeline "1280x1024"  110    1280 1328 1512 1712  1024 1025 1028 1054
  724.  
  725. # 1024x768 @ 85 Hz, 70.24 kHz hsync
  726. Modeline "1024x768"   98.9  1024 1056 1216 1408   768 782 788 822 -HSync -VSync
  727. # 1152x864 @ 78 Hz, 70.8 kHz hsync
  728. Modeline "1152x864"   110   1152 1240 1324 1552   864  864  876  908
  729.  
  730. # 1280x1024 @ 70 Hz, 74.59 kHz hsync
  731. Modeline "1280x1024"  126.5 1280 1312 1472 1696  1024 1032 1040 1068 -HSync -VSync
  732. # 1600x1200 @ 60Hz, 75.00 kHz hsync
  733. Modeline "1600x1200"  162   1600 1664 1856 2160  1200 1201 1204 1250 +HSync +VSync
  734. # 1152x864 @ 84 Hz, 76.0 kHz hsync
  735. Modeline "1152x864"   135    1152 1464 1592 1776   864  864  876  908
  736.  
  737. # 1280x1024 @ 74 Hz, 78.85 kHz hsync
  738. Modeline "1280x1024"  135    1280 1312 1456 1712  1024 1027 1030 1064
  739.  
  740. # 1024x768 @ 100Hz, 80.21 kHz hsync
  741. Modeline "1024x768"   115.5  1024 1056 1248 1440  768  771  781  802 -HSync -VSync
  742. # 1280x1024 @ 76 Hz, 81.13 kHz hsync
  743. Modeline "1280x1024"  135    1280 1312 1416 1664  1024 1027 1030 1064
  744.  
  745. # 1600x1200 @ 70 Hz, 87.50 kHz hsync
  746. Modeline "1600x1200"  189    1600 1664 1856 2160  1200 1201 1204 1250 -HSync -VSync
  747. # 1152x864 @ 100 Hz, 89.62 kHz hsync
  748. Modeline "1152x864"   137.65 1152 1184 1312 1536   864  866  885  902 -HSync -VSync
  749. # 1280x1024 @ 85 Hz, 91.15 kHz hsync
  750. Modeline "1280x1024"  157.5  1280 1344 1504 1728  1024 1025 1028 1072 +HSync +VSync
  751. # 1600x1200 @ 75 Hz, 93.75 kHz hsync
  752. Modeline "1600x1200"  202.5  1600 1664 1856 2160  1200 1201 1204 1250 +HSync +VSync
  753. # 1600x1200 @ 85 Hz, 105.77 kHz hsync
  754. Modeline "1600x1200"  220    1600 1616 1808 2080  1200 1204 1207 1244 +HSync +VSync
  755. # 1280x1024 @ 100 Hz, 107.16 kHz hsync
  756. Modeline "1280x1024"  181.75 1280 1312 1440 1696  1024 1031 1046 1072 -HSync -VSync
  757.  
  758. # 1800x1440 @ 64Hz, 96.15 kHz hsync
  759. ModeLine "1800X1440"  230    1800 1896 2088 2392 1440 1441 1444 1490 +HSync +VSync
  760. # 1800x1440 @ 70Hz, 104.52 kHz hsync
  761. ModeLine "1800X1440"  250    1800 1896 2088 2392 1440 1441 1444 1490 +HSync +VSync
  762.  
  763. # 512x384 @ 78 Hz, 31.50 kHz hsync
  764. Modeline "512x384"    20.160 512  528  592  640   384  385  388  404 -HSync -VSync
  765. # 512x384 @ 85 Hz, 34.38 kHz hsync
  766. Modeline "512x384"    22     512  528  592  640   384  385  388  404 -HSync -VSync
  767.  
  768. # Low-res Doublescan modes
  769. # If your chipset does not support doublescan, you get a \'squashed\'
  770. # resolution like 320x400.
  771.  
  772. # 320x200 @ 70 Hz, 31.5 kHz hsync, 8:5 aspect ratio
  773. Modeline "320x200"     12.588 320  336  384  400   200  204  205  225 Doublescan
  774. # 320x240 @ 60 Hz, 31.5 kHz hsync, 4:3 aspect ratio
  775. Modeline "320x240"     12.588 320  336  384  400   240  245  246  262 Doublescan
  776. # 320x240 @ 72 Hz, 36.5 kHz hsync
  777. Modeline "320x240"     15.750 320  336  384  400   240  244  246  262 Doublescan
  778. # 400x300 @ 56 Hz, 35.2 kHz hsync, 4:3 aspect ratio
  779. ModeLine "400x300"     18     400  416  448  512   300  301  302  312 Doublescan
  780. # 400x300 @ 60 Hz, 37.8 kHz hsync
  781. Modeline "400x300"     20     400  416  480  528   300  301  303  314 Doublescan
  782. # 400x300 @ 72 Hz, 48.0 kHz hsync
  783. Modeline "400x300"     25     400  424  488  520   300  319  322  333 Doublescan
  784. # 480x300 @ 56 Hz, 35.2 kHz hsync, 8:5 aspect ratio
  785. ModeLine "480x300"     21.656 480  496  536  616   300  301  302  312 Doublescan
  786. # 480x300 @ 60 Hz, 37.8 kHz hsync
  787. Modeline "480x300"     23.890 480  496  576  632   300  301  303  314 Doublescan
  788. # 480x300 @ 63 Hz, 39.6 kHz hsync
  789. Modeline "480x300"     25     480  496  576  632   300  301  303  314 Doublescan
  790. # 480x300 @ 72 Hz, 48.0 kHz hsync
  791. Modeline "480x300"     29.952 480  504  584  624   300  319  322  333 Doublescan
  792.  
  793. ';
  794.  
  795. $devicesection_text = '
  796. # **********************************************************************
  797. # Graphics device section
  798. # **********************************************************************
  799.  
  800. # Any number of graphics device sections may be present
  801.  
  802. Section "Device"
  803.     Identifier        "Generic VGA"
  804.     VendorName        "Unknown"
  805.     BoardName "Unknown"
  806.     Chipset   "generic"
  807.  
  808. #    VideoRam 256
  809.  
  810. #    Clocks   25.2 28.3
  811.  
  812. EndSection
  813.  
  814. # Device auto configured:
  815. ';
  816.  
  817. $screensection_text1 = '
  818. # **********************************************************************
  819. # Screen sections
  820. # **********************************************************************
  821. ';
  822.  
  823.