home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / D / SVGALIB / _SVGALIB.TAR / usr / doc / svgalib / README.config < prev    next >
Encoding:
Text File  |  1995-01-18  |  16.7 KB  |  449 lines

  1. # You can actually use this file as a config file for svgalib by copying
  2. # it to /usr/local/lib/libvga.config. However this is not recommended
  3. # because of the size of this file. So better remove any unneeded lines
  4. # from this file before using it as config file.
  5.  
  6. # As you have probably guessed already, everything between '#' and the
  7. # end of the line is ignored. Empty lines are also ignored. Since
  8. # the driver you will use may not know all config options here, unknown
  9. # commands are silently ignored. Please think of that when something
  10. # does not work as you expect. Multiple commands are allowed in one line
  11.  
  12. # New style options are in general case insensitive whereas the old style
  13. # options are case sensitive. The old style options are included to
  14. # allow for old config files still being used.
  15.  
  16. # However there is one difference: The new style config expects a blank
  17. # between each command. That is m2M4 won't work anymore. It would be
  18. # parsed as a single config command. You have to specify m2 M4 in this
  19. # situation.
  20.  
  21. # The environment variable SVGALIB_CONFIG is parsed like a line in this
  22. # file after the real config file is parsed. Note that some config
  23. # commands are disabled in SVGALIB_CONFIG for safety by default.
  24. # Enable them with the command "overrideenable" in the config file.
  25. # WARNING! This allows every user to change the monitor and clocks (and
  26. # other configs) and thus damaging the hardware. I STRONGLY discourage
  27. # use of overrideenable except for debugging/testing purposes.
  28.  
  29. # Note that you will have to delete the # before the example config commands
  30. # to activate them.
  31.  
  32. # General options (handled by libvga):
  33.  
  34. # Mouse setting:
  35. # mouse mousetype where mousetype is one of:
  36. # Microsoft, MouseSystems, MMSeries, Logitech, Busmouse, PS2, or none.
  37.  
  38. # That is for example:
  39.  
  40. # mouse Microsoft
  41. # mouse MouseSystems
  42. # mouse MMSeries
  43. # mouse Logitech
  44. # mouse Busmouse
  45. # mouse PS2
  46. # mouse none
  47.  
  48. # You can also specify the type by numbers:
  49.  
  50. # mouse 0 # Microsoft
  51. # mouse 1 # MouseSystems
  52. # mouse 2 # MMSeries
  53. # mouse 3 # Logitech
  54. # mouse 4 # Busmouse
  55. # mouse 5 # PS2
  56. # mouse 9 # none
  57.  
  58. # Or in old style:
  59.  
  60. # m0 # Microsoft
  61. # m1 # MouseSystems
  62. # m2 # MMSeries
  63. # m3 # Logitech
  64. # m4 # Busmouse
  65. # m5 # PS2
  66. # m9 # none
  67.  
  68. # Whitespace between m and the digit is allowed.
  69.  
  70. # Some multiprotocol mice use the state of RTS and DTR to find out which
  71. # protocol.
  72.  
  73. # setRTS   # set the RTS wire.
  74. # clearRTS # clear the RTS wire.
  75. # leaveRTS # leave the RTS wire alone (default) (Wire is usually set)
  76. # setDTR   # set the DTR wire.
  77. # clearDTR # clear the DTR wire.
  78. # leaveDTR # leave the DTR wire alone (default) (Wire is usually set)
  79.  
  80. # For example my mouse can emulate Microsoft and MouseSystems.
  81. # It needs a low RTS to go into MouseSystems mode. Thus I use:
  82.  
  83. # mouse MouseSystems clearRTS
  84.  
  85. # Still I could just use mouse Microsoft and use the mouse with that
  86. # protocol.. But then only 2 buttons instead of 3 are supported (not
  87. # that I know any svgalib program that uses more than 2 buttons.)
  88.  
  89. # Other mice might need clearDTR as well or one set and clear.. Try yourself.
  90.  
  91. # Note: Having crtscts handshake enabled on the mouse tty may interfer with this
  92. # options. Do not do that.
  93.  
  94. # Monitor setting:
  95. # monitor monitor class where monitor class is a digit from 0 to 6 or the
  96. # horizontal frequency in kHz. Examples:
  97.  
  98. # monitor 0 # Max horizontal sync is 31.5 kHz
  99. # monitor 1 # Max horizontal sync is 35.1 kHz
  100. # monitor 2 # Max horizontal sync is 35.5 kHz
  101. # monitor 3 # Max horizontal sync is 37.9 kHz
  102. # monitor 4 # Max horizontal sync is 48.3 kHz
  103. # monitor 5 # Max horizontal sync is 56.0 kHz
  104. # monitor 6 # No restrictions.
  105.  
  106. # For your convenience you may specify the max horizontal sync explicitly. The
  107. # correct class will the be chosen. You may use floats consisting of digits
  108. # and a decimal point for this too:
  109.  
  110. # monitor 40.0 # equivalent to monitor 3
  111. # Everything above 59 is considered as monitor 6.
  112. # For compatibility the following are also supported:
  113.  
  114. # M0 # Max horizontal sync is 31.5 kHz
  115. # M1 # Max horizontal sync is 35.1 kHz
  116. # M2 # Max horizontal sync is 35.5 kHz
  117. # M3 # Max horizontal sync is 37.9 kHz
  118. # M4 # Max horizontal sync is 48.3 kHz
  119. # M5 # Max horizontal sync is 56.0 kHz
  120. # M6 # No restrictions.
  121.  
  122. # Whitespace between M and the digit is allowed.
  123. # This command is not allowed in SVGALIB_CONFIG by default.
  124.  
  125. # Chipset enforcement: If auto detection fails you may force detection of
  126. # your chipset with "chipset type" where type is (currently ;) ) one of
  127. # VGA, ET4000, Cirrus, TVGA, Oak, EGA, S3, ET3000, or Mach32
  128. # Examples:
  129.  
  130. # chipset VGA
  131. # chipset ET4000
  132. # chipset Cirrus
  133. # chipset TVGA
  134. # chipset Oak
  135. # chipset EGA
  136. # chipset S3
  137. # chipset ET3000
  138. # chipset Mach32
  139.  
  140. # There is also an old style way for this:
  141.  
  142. # C1 # chipset VGA
  143. # C2 # chipset ET4000
  144. # C3 # chipset Cirrus
  145. # C4 # chipset TVGA
  146. # C5 # chipset Oak
  147. # C6 # chipset EGA
  148. # C7 # chipset S3
  149. # C8 # chipset ET3000
  150. # C9 # chipset Mach32
  151.  
  152. # C0 # Auto-detect.
  153.  
  154. # Warning, incorrect settings may damage your hardware.
  155. # No whitespace is allowed between the C and the digit.
  156. # This command is not allowed in SVGALIB_CONFIG by default.
  157.  
  158. # If the size of memory or additional info is misdetected use this form:
  159.  
  160. # chipset Mach32 0 2048
  161.  
  162. # Note that always two integers have to be specified. Usually (mach32)
  163. # the second parameter is the memory amount. Look at the *_init function
  164. # of the specific device driver. Values you have to specify to force dac type
  165. # and type of memory-aperture for mach32 can be found in mach32.h
  166. # Note that there is a more convenient command (setuplinear) for enforcing
  167. # specific memory-aperture configurations.
  168.  
  169. # This form is also not allowed in SVGALIB_CONFIG by default.
  170.  
  171. # Specific options are required for the EGA-driver:
  172.  
  173. # monotext  # Card is in monochrome emulation mode
  174. # colortext # Card is in color emulation mode
  175.  
  176. # Old style form:
  177.  
  178. # c0 # Card is in monochrome emulation mode
  179. # c1 # Card is in color emulation mode
  180. # No whitespace is allowed between the c and the digit.
  181. # This command is not allowed in SVGALIB_CONFIG by default.
  182.  
  183. # Miscanellous options:
  184.  
  185. # verbose  # Mach32: show messages while processing all info to build up a
  186. # mode table.
  187. # quiet    # Turn verbose messages off (default)
  188.  
  189. # nolinear # Inhibit use of a linear mmaped frame buffer.
  190. # linear   # Allow (not enforce!) use of a linear mmaped frame buffer.
  191.  
  192. # overrideenable # Allow "dangerous" commands in SVGALIB_CONFIG.
  193.  
  194. # Options that may be useful for all drivers, but currently are only supported
  195. # by Mach32 (Please read README.mach32 if you use one):
  196.  
  197. # maxclock16 maxclk # The maximal pixel clock to use for 16bpp modes. This is
  198. # used by mach32 to find out which settings may be used for 16bpp modes.
  199. # the mach32 default for this is 2000, thus it is effectively switched off.
  200.  
  201. # maxclock16 2000
  202.  
  203. # maxclock24 maxclk # The maximal clock to use for 24bpp modes. (see above)
  204. # Experience showed that the mach32 default 49 is good for my 2MB VRAM card.
  205.  
  206. # maxclock24 49
  207.  
  208. # maxclock32 maxclk # The same for 32bpp modes (24bpp with one fill byte for
  209. # faster memory access (not fully implemented (esp. for Mach32) yet).
  210. # mach32 default (good for my VRAM card) is:
  211.  
  212. # maxclock32 39
  213.  
  214. # maxclock8 maxclk # Just for completeness the same for 8bpp modes.
  215. # default is:
  216.  
  217. # maxclock8 2000
  218.  
  219. # The maxclock commands are usually not allowed in the environment variable.
  220.  
  221. # Thus you can consider it switched off.
  222.  
  223. # clocks list of clocks # Sets the frequencies of the clocks the chips can
  224. # generate. Exactly 16 values have to be specified for mach32.
  225. # Use 0 to disable a specific clock.
  226. # Note that the mach32 can divide clocks by 2. Thus there are actually 32 clocks
  227. # And you can also use the divided clocks in a define command.
  228. # In difference to Xconfig only integers are allowed.
  229. # This line is mandatory for Mach32. If it is not there it will be auto detected
  230. # and added at the beginning of the config file.
  231.  
  232. # Values for Mach32:
  233.  
  234. # clock chip 18811-0:
  235. # clocks 43 49 92 36 50 56 0 45 30 32 110 80 40 45 75 65
  236.  
  237. # clock chip 18811-1:
  238. # due to Xfree86 info valid for: Ultra pro ISA, Ultra pro EISA,
  239. # Ultra pro VLB(68800-3)
  240. # clocks 100 126 92 36 50 56 0 45 135 32 110 80 40 45 75 65
  241.  
  242. # clock chip 1881 (ICS2494):
  243. # due to Xfree86 info valid for: Ultra pro VLB (6880006)
  244. # clocks 18 22 25 28 36 44 50 56 30 32 37 39 40 0 75 65
  245.  
  246. # In my own correspondence with ATI they say every Mach32 would have a
  247. # 18811-1, so it may be possible just to take the 18811-1 line.
  248. # However I have now reports of third party cards and motherboards with
  249. # on board Mach32 chips, so be careful.
  250. # Please have a look at README.mach32 for additional info on clocks.
  251.  
  252. # The clocks command is usually not allowed in the environment variable.
  253.  
  254. # Sometimes a mode cannot be realized with the logical linelength = pixels in
  255. # a row * bytes per pixel. (true for Mach32 800x600). The default behavior
  256. # of mach32 is to adjust xbytes in the info table appropriate, but you can
  257. # select:
  258.  
  259. # variablelinelength # Adjust xbytes appropriate, thus overriding the standard
  260. # svgalib mode. This may yield to problems with ..umm.. not well designed
  261. # applications. This is the mach32 default.
  262.  
  263. # duplicatelinelength # Don't touch the standard mode but create an exact
  264. # copy, a dynamic mode, with the adjusted xbytes value.  Expect noise at some
  265. # pixels in 800x600 for more than 256 colors on mach32 when not using the dynamic
  266. # mode.
  267.  
  268. # strictlinelength # Same as above but delete the standard mode thus creating
  269. # the non conforming xbytes modes only as dynamic modes.
  270.  
  271. # To enforce the standard linelength for non-conforming modes use setlinelength
  272. # below.
  273.  
  274. # All linelength commands are always allowed in the environment variable.
  275.  
  276. # In the following commands a mode is specified with horzXvertXcolors.
  277. # Valid settings for colors in the mach32 driver are: 256, 32K, 64K, 16M, 16M4.
  278. # 16M4 is for the 16M colors with 32bpp modes. These are expected to support
  279. # slightly faster drawing.
  280.  
  281. # Examples: 640x480x256, 1024x768x64K, etc..
  282.  
  283. # inhibit mode1 [mode2 mode3...] # Switch the specified SVGA-Modes of:
  284.  
  285. # inhibit 800x600x32K 800x600x64K 800x600x16M # Disallow the maybe toasted
  286. # mach32 800x600 modes.
  287.  
  288. # The inhibit command is always allowed in the environment variable.
  289.  
  290. # setlinelength length mode1 [mode2 mode3...] # Force the logical line length
  291. # (xbytes) in the given modes to length pixels (not bytes!)
  292. # see also variablelinelength, strictlinelength, duplicatelinelength above.
  293.  
  294. # setlinelength 800 800x600x32K 800x600x64K 800x600x16M
  295.  
  296. # The setlinelength command is always allowed in the environment variable.
  297.  
  298. # define mode1 [mode2 mode3 .... ] clock horz_timing vert_timing flags
  299. # where clock is a clock in MHz (in integer! Has to be known by the driver.
  300. # (one of the set clocks, or the exact half of them) only clocks in a clocks
  301. # before the define can be used.
  302. # You may use :n to specify the n-th clock (n=0..31 for mach32).
  303. # horz_timing are four ints: hdisp h_sync_strt h_sync_wid h_total.
  304. # vert_timing has the same format but for vertical. You may specify one or
  305. # more flags out of: Interlace, +vsync, -vsync, +hsync, -hsync, to select
  306. # interlace mode and polarity of sync signals. This format is almost the same
  307. # Xfree uses, s.t. you may use their mode table and the modegen spreadsheet
  308. # package for mode creation. Here is a 1024x768x256 mode as example:
  309.  
  310. #define 1024x768x256 80 1024 1024 1184 1312 768 768 772 791 +vsync -hsync
  311.  
  312. # or
  313.  
  314. #define 1024x768x256 1024x768x32K 1024x768x64K
  315. #        :11 1024 1024 1184 1312 768 768 772 791
  316.  
  317. # (yes any whitespace in a command is allowed, even \n !)
  318.  
  319. # The define command is usually not allowed in the environment variable.
  320.  
  321. # There is one really dangerous option (except faking clocks). Please
  322. # use it only if you are sure what you are doing. Wrong setup will
  323. # lead to multiple components accessing your bus at once and thus
  324. # to probable hardware damage.
  325.  
  326. # setuplinear address size
  327.  
  328. # Sets up a linear frame buffer at address of size size (both are given
  329. # in MB). If the values make sense (for example address <16MB for ISA cards)
  330. # the linear aperture is setup. Since the mach32-driver auto detects configured
  331. # address itself, I strongly discourage use of this command. However I was
  332. # asked for it as some PCI mach32-cards didn't setup the linear aperture correctly.
  333. # Please ensure that the address range from address to address+size is free
  334. # in your system. Obey that due to memory remapping for example 16MB Ram may
  335. # exceed the 16MB address limit.
  336.  
  337. # Valid mach32-values for size are 1 and 4 (only 4 in PCI configurations),
  338. # address + size have to be below 16MB for ISA, 4GB for multiplexed PCI,
  339. # and 128MB else. Example: (my setup)
  340.  
  341. # setuplinear 64 4 # 4MB linear frame buffer at 0x4000000
  342.  
  343. # It is also valid to specify:
  344. # setuplinear 0 0 # This will actually disable/de-configure any linear
  345. # frame buffer. Useful to disable mach32 aperture even if it is enabled
  346. # in the EEPROM.
  347.  
  348. # The setuplinear command is usually not allowed in the environment variable.
  349.  
  350. # There is one additional option that makes only sense for mach32:
  351.  
  352. # mach32eeprom filename
  353. # The filename has to begin with a "/" .
  354.  
  355. # The mach32 has an EEPROM that is filled with predefined modes that can be
  356. # set very convenient with a config utility from ATI. These settings will
  357. # be used by svgalib. Unfortunately reading the mach32eeprom causes noise
  358. # on the video signal. If the resulting flicker annoys you or screws your
  359. # monitor up, specify a filename from which to read the contents of the
  360. # EEPROM. If the file cannot be read, the EEPROM is read out and the file
  361. # is created. There is a very simple checksum put into this file. Although
  362. # it can easily fooled, don't change the file except you know very very
  363. # well what you are doing. Also as long as the file exists changes in the
  364. # mach32 EEPROM have no effect.. delete the file to recreate an updated
  365. # version on next use of svgalib. You should ensure that the permissions of
  366. # the file don't allow normal users to change it. (This may happen if umask
  367. # has a bad value when svgalib creates the file)
  368.  
  369. # Example:
  370.  
  371. # mach32eeprom /etc/mach32.eeprom
  372.  
  373. # Due to problems with some boards (See MACH32.readme) this command got
  374. # heavily expanded:
  375. #
  376. # mach32eeprom subcommand1 [subcommand2 ....] (at least one subcommand needed)
  377.  
  378. # Valid subcommands are:
  379. # ignore        - Don't complain about checksum and don't use any
  380. #              EEPROM contents.
  381. # useaperture        - use the configuration for the memoryaperture
  382. #              given in the EEPROM.
  383. # usetimings        - use videomodes found in the EEPROM of the board.
  384. # nofile        - Forget about any filename that maybe was already
  385. #            - configured. Don't read a file, don't create one.
  386. # file filename        - Newstyle to specify the filename; this one can
  387. #            - can be mixed with any eeprom subcommands.
  388. # updatefile        - Don't read the file, always read the EEPROM
  389. #              (except when ignore is given) and create an
  390. #              uptodate image of the eeprom.
  391. # keepfile        - disable all previous updatefile commands.
  392. # compatible        - fall back to default behavior:
  393. #              If checksum is ok, use nothing. If it is ok,
  394. #              everything configure in the EEPROM.
  395.  
  396. # The subcommands are intended to be used together. For example:
  397. # mach32eeprom ignore useaperture usetimings
  398.  
  399. # will ignore the checksum of your EEPROM, but use its contents.
  400.  
  401. # Order is vital! So:
  402.  
  403. # mach32eeprom useaperture usetimings ignore
  404.  
  405. # won't use any configuration from your EEPROM. Be careful with the useaperture
  406. # subcommand. Please see "EEPROM woes in README.mach32. Note that any non
  407. # understood subcommand will terminate the mach32eeprom command silently!
  408. # Use only one subcommand per mach32eeprom command to avoid this.
  409.  
  410. # The mach32eeprom command is usually not allowed in the environment variable.
  411.  
  412. # There is a command to control Mach32 accelerated features:
  413.  
  414. # blit subcommand1 subcommand2 ...
  415. #
  416. # Valid subcommands are bit, fill, image, hlinelist. They enable support for the
  417. # corresponding blit functions. Preceed them with no to turn the off (no space
  418. # after no). Use "memimage" to emulate "image" blit using a linearframebuffer,
  419. # which is usually much faster. Use "nomemimage" to never use this emulation.
  420. # The emulation can be used in more resolutions than "image".
  421. # Again order is vital! (esp. for the image commands)
  422. # Use:
  423.  
  424. # blit image nomemimage # to use IO-style imageblt where possible. Don't
  425. #              emulate it in any resolution.
  426. # blit image memimage   # to use emulated imageblt where possible.
  427. # blit memimage image    # to use IO-style imageblt where possible, and
  428. #              the emulation where possible in the remaining modes.
  429. # blit noimage        # Disable support for imageblt.
  430.  
  431. # Default is:
  432. # blit bit fill image hlinelist memimage.
  433.  
  434. # The blit command is always allowed in the environment variable.
  435.  
  436. # The mach32 has also a few intermediate options for low level timing adjust.
  437. # These are:
  438.  
  439. # vfifo8 number
  440. # vfifo16 number
  441. # vfifo24 number
  442. # vfifo32 number
  443. # blank number
  444. # latch number
  445.  
  446. # They are usually not allowed in the environment variable.
  447.  
  448. # See README.mach32 for details
  449.