home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 36 Tips / 36-Tips.zip / dehint.zip / de_hints.txt
Text File  |  1994-10-08  |  22KB  |  478 lines

  1.      What follows are some hints and tips that I have collected
  2. from CIS and my own experience that may help OS2 users
  3. (particularly new users).  I offer them with NO WARRANTY OF
  4. FITNESS, PURPOSE OR OTHERWISE, but I hope they might help you.
  5.  
  6.  
  7.                             CONTENTS
  8.      
  9. 1.  DOS_SETTINGS (SETTINGS NOTEBOOK FOR DOS/WIN-OS2)
  10.  
  11.      a.  BE CAREFUL ABOUT CHANGING DEFAULT SETTINGS. . . . . .  1
  12.      
  13.      b.  DOS_AUTOEXEC. . . . . . . . . . . . . . . . . . . . .  1
  14.      
  15.      c.  DOS_BACKGROUND_EXECUTION. . . . . . . . . . . . . . .  1
  16.      
  17.      d.  IDLE_SENSITIVITY AND IDLE_SECONDS . . . . . . . . . .  1
  18.      
  19.      e.  MEMORY -- EMS VS. XMS . . . . . . . . . . . . . . . .  2
  20.      
  21. 2.  CONFIG.SYS
  22.  
  23.      a.  DELDIR: "REM" IT IF YOU CAN . . . . . . . . . . . . .  2
  24.      
  25.      b.  IOPL=NO (CONFIG.SYS). . . . . . . . . . . . . . . . .  2
  26.      
  27. 3.  USING BOOT MANAGER . . . . . . . . . . . . . . . . . . . .  3
  28.      
  29. 4.  HOT-KEYS (QWIKSWITCH) AND DOS MACROS . . . . . . . . . . .  3
  30.      
  31. 5.  FORCING DOS APPS TO RELEASE COM PORT WHILE STAYING OPEN. .  3
  32.      
  33. 6.  ADDING MEMORY (HELP SOLVING TRAP0002 ERROR MESSAGES) . . .  4
  34.      
  35. 7.  SYSTEM WON'T WARM BOOT WITH CTRL-ALT-DEL . . . . . . . . .  4
  36.      
  37. 8.  LOSING VIDEO SYNCRONIZATION BETWEEN OS2 AND DOS SESSION. .  4
  38.      
  39. 9.  FAST CPU -- SLUGGISH PERFORMANCE . . . . . . . . . . . . .  5
  40.      
  41. 10.  PRO AUDIO 16 BASIC. . . . . . . . . . . . . . . . . . . .  5
  42.  
  43. 1.  DOS_SETTINGS (SETTINGS NOTEBOOK FOR DOS/WIN-OS2)
  44.  
  45.      a.  BE CAREFUL ABOUT CHANGING DEFAULT SETTINGS
  46.  
  47.      I lost the beep from OzCIS (DOS version of CIS navigation
  48. program) and other DOS apps by setting HW_TIMER=ON in just one
  49. application.  When I opened that app, sound was lost in all my DOS
  50. apps.  SysOp Mike Bessy (75300,1215) diagnosed the problem and
  51. pointed out that it's better to stay with the following default
  52. settings unless there is a strong reason to change (and I heartily
  53. concur):
  54.  
  55.      HW_NOSOUND=OFF
  56.      HW_TIMER=OFF
  57.      INT_DURING_IO=OFF
  58.  
  59. Mike added: "Note that if _any_ active session has "HW_TIMER=ON",
  60. then all bets are off and other sessions may very well lose their
  61. ability to generate simple "^G" beep."  Well, mine sure did.
  62.  
  63.  
  64.      b.  DOS_AUTOEXEC
  65.  
  66.      OS2 lets you create multiple autoexec-type files and name them
  67. anything you want, so long as .bat is the extension and the full
  68. path is specified.  I have at least 4 that I use for different
  69. apps.  All load the anti-virus software, but the path differs some,
  70. along with TSRs I might want to use.  This is a handy way of
  71. controlling some of the operation of your DOS sessions and lets you
  72. customize them even more than the settings notebook does.  To keep
  73. track of them, I put "auto" in front of each:  for example, my
  74. Windows .bat file is autowin.bat.
  75.  
  76.  
  77.      c.  DOS_BACKGROUND_EXECUTION
  78.  
  79.      If your DOS/Windows apps don't need to operate in the
  80. background, set this to OFF.  Realize with Win-OS2 sessions,
  81. though, that if the first session opened allows background
  82. operation, all others opened into that session will do likewise. 
  83. For them, either specify that they will be opened as separate
  84. sessions, or change the settings on the first session you open so
  85. that it does not call for background execution.
  86.  
  87.  
  88.      d.  IDLE_SENSITIVITY AND IDLE_SECONDS
  89.  
  90.      Setting IDLE_SENSITIVITY higher gives it greater access and
  91. use of the CPU.  If you want an app to be more responsive in the
  92. foreground, one possibility is to increase this number.  If you
  93. reach 100, no idle detection will occur (which I understand means
  94. that it will get CPU time and attention even when nothing is
  95. happening: adversely affecting background apps).  I have a PIM
  96. (Instant Recall for DOS) that beeps me when a reminder time is
  97. reached.  It's setting is 10.  WordPerfect 5.1+ has a setting of
  98. 25.  Both respond quite adequately in the foreground and handle
  99. background tasks well, and with only those two open, the CPU drops
  100. to 1-2% use when I am at the OS2 desktop.  That 1-2% is probably
  101. the PIM polling for its timer.
  102.  
  103.  
  104.      e.  MEMORY -- EMS VS. XMS
  105.  
  106.      I found that specifying EMS (expanded memory) for one of my
  107. DOS app's session impaired that session's foreground operation
  108. whenever a Win-OS2 session was open.  By specifying XMS (extended
  109. memory), I found that I avoided some significant performance
  110. degradation caused by Quattro Pro for Windows (an excellent
  111. spreadsheet, but a terrible CPU and memory hog).
  112.  
  113.  
  114. 2.  CONFIG.SYS
  115.  
  116.      a.  DELDIR: "REM" IT IF YOU CAN
  117.  
  118.      If you find that certain DOS apps take much longer to open and
  119. close, to save certain files or open others, than the apps did in
  120. native DOS or even Windows, and IF you have DELDIR operating in
  121. OS2's CONFIG.SYS and in the DOS_AUTOEXEC file you have specified,
  122. rem or delete that line unless you have no other way to get at
  123. deleted files.  Here's why:
  124.  
  125.      Many apps create temporary files that are deleted when a file
  126. is saved, an app is opened or closed, or certain files are opened. 
  127. DOS would normally only change the first character in the FAT, but
  128. when DELDIR is operating, the file is actually moved to the DELETE
  129. directory on the drive where the temp file was.  If several files
  130. are to be deleted, that will add noticably to the time your file
  131. operations take.  If you're still using FAT, try your DOS undelete
  132. utility.  Otherwise get GammaTech Utilities or one like it with an
  133. undelete utility.
  134.  
  135.  
  136.      b.  IOPL=NO (CONFIG.SYS)
  137.  
  138.      The August 1994 OS2 Magazine carried an article on tuning OS2,
  139. in which the author points out that OS2 defaults to IOPL=YES
  140. because certain older devices like LaserJet printers needed direct
  141. access to the IO priority level.  But the author suggests changing
  142. that to NO except for programs that need the IOPL set to yes.  For
  143. them, this line might read IOPL=FAX,FAXWORKD (as mine does for
  144. FaxWorks for OS2).  A "No" setting increases system stability and
  145. makes the system more crashproof.  Hey, that's what I wanted in OS2
  146. in the first place, so I went for it.  It works.
  147.  
  148.  
  149.  
  150. 3.  USING BOOT MANAGER
  151.  
  152.      When I first installed OS2, I was told I'd have to reformat my
  153. hard disk to create the 1Mb partition needed by Boot Manager.  When
  154. I got into FDISK, however, I found that my hard disk already had a
  155. 1Mb partition at the end of it.  So I used that, and have had no
  156. problems at all.  I have 2 SCSI disks, both operating under an
  157. Adaptec 2742T adapter, each partitioned by MS-DOS's FDISK and
  158. formatted by MS-DOS's FORMAT.  Bottom line:  Run OS2's FDISK before
  159. you do anything to your hard disk.  You may already have the 1Mb
  160. partition needed for boot manager.
  161.  
  162.  
  163. 4.  HOT-KEYS (QWIKSWITCH) AND DOS MACROS
  164.  
  165.      I use QwikSwitch (by Bitware Consulting) to allow me hot-key
  166. access between my full screen DOS apps (it works with OS/2 and Win
  167. apps as well but I don't use it for them).  I also use Borland's
  168. Superkey macro program (it dates from 1986 but is still very
  169. useful) to add much needed macro power to a couple of my most used
  170. DOS apps.  To solve conflicts that were causing crashes and weird
  171. behavior, I placed the command that loads QwikSwitch's TSR
  172. (QWIKTSR.EXE) in the *.bat file that loads those apps following the
  173. command that loads SuperKey:  No more conflicts, crashes or weird
  174. behavior.  But be aware that QWIKTSR controls over the macro
  175. program, so if you use this device, it may be necessary to change
  176. some of your key combinations.
  177.  
  178.  
  179. 5.  FORCING DOS APPS TO RELEASE COM PORT WHILE STAYING OPEN
  180.  
  181.      One of my big disappointments with OS/2 when I first began
  182. using it was that my DOS PIM (Instant Recall) would take control of
  183. the COM1 port where my modem is and would not release it for use by
  184. other DOS communications apps.  So I was forced to close it in
  185. order to use those other apps.  Many other DOS apps did the same,
  186. but I did not mind closing them.  Then I discovered that Ray Gwinn
  187. includes a program called SU.EXE in his SIO package (an excellent
  188. bundle that includes communication drivers to replace COM.SYS and
  189. VCOM.SYS).  SU stands for SIO Utilities and contains a number of
  190. useful functions.  The command "SU 1 close" forces my DOS apps to
  191. release the COM1 port.  If you use it, replace the 1 with the
  192. number of the COM port your modem uses.
  193.  
  194.      I have included that line in my autoexec files that I use to
  195. load my DOS comm apps, so the COM port is automatically released
  196. when those apps are opened.  I also created an OS/2 desktop object
  197. to invoke a *.cmd file I wrote to send that command at the OS/2
  198. prompt.  If I get the message that the COM port is being used by a
  199. DOS application that has to be closed, I just double-click on that
  200. object, and the port is released for the app that wants to use it.
  201.  
  202.  
  203.  
  204. 6.  ADDING MEMORY (HELP SOLVING TRAP0002 ERROR MESSAGES)
  205.  
  206.      This is a very tricky subject in OS2.  Because of the
  207. tremendous demands made on memory by OS2, memory chips that have
  208. operated just fine in DOS and Windows (and that might even test out
  209. as fully functioning on chip testing equipment) can still produce
  210. intermittent trap0002, trap000e and other trap error messages.  The
  211. safest (and easiest) course is (in order of decreasing importance):
  212.  
  213.      (a)  Get chips that are recommended by the motherboard
  214.           manufacturer.  Get that info from the motherboard or
  215.           system handbook or from the manufacturer.
  216.  
  217.      (b)  Be sure that the chips were all manufactured at the same
  218.           speed:  check that all have identical markings/numbers --
  219.           I have been told that even very slight speed variations
  220.           can produce intermittent errors
  221.  
  222.      (c)  Do not mix chip speeds within a bank (and preferably no
  223.           anywhere): use all 60ns, 70ns or 80ns, or whatever.  
  224.  
  225. If you have done these and still get those trap errors, try
  226. swapping banks of memory (move the chips in bank 1 to bank 0 and
  227. vice versa).  If you have one bank of slower chips than another
  228. bank, swapping banks may help:  Some folks have found that moving
  229. slow RAM to bank 0 helps while others have found the opposite is
  230. true.
  231.  
  232.  
  233. 7.  SYSTEM WON'T WARM BOOT WITH CTRL-ALT-DEL
  234.  
  235.      Something about my system and OS/2 (IBM tech support says it's
  236. my keyboard BIOS, AMI H-level) does not allow my system to warm
  237. boot when I hit ctrl-alt-del.  I found the following solution that
  238. works very well:  Before hitting ctrl-alt-del, I hit ctrl-alt-
  239. numlock twice.  When I get the message telling me to insert the
  240. diskette created by CREATEDD, I hit ctrl-alt-del.  My system
  241. reboots as it's supposed to.
  242.  
  243.  
  244. 8.  LOSING VIDEO SYNCRONIZATION BETWEEN OS2 AND DOS SESSION
  245.  
  246.      This is a combination of video board, driver and monitor
  247. problem.  I found that after making configuration changes in my
  248. system, I sometimes lost sync when shifting to a DOS session.  My
  249. solution was to reinstall the video drivers.  It worked for a
  250. little while, but would then break down.
  251.  
  252.      Another suggestion from Sue Manning [IBM] (72420,1005)
  253.  
  254.      "Sometimes these corrupted displays are solved by going to a
  255.      real DOS session and using SVGA ON DOS at the command line,
  256.      then renaming SVGADATA.DOS to SVGADATA.PMI, then rebooting to
  257.      OS/2.  If you're still having problems, use the DOS/WIN video
  258.      settings in the sessions notebook and test each one of those
  259.      out."
  260.  
  261.      This did help some, but not on a regular basis.  I have now
  262. replaced my monitor, so this is no longer a problem.
  263.  
  264.  
  265. 9.  FAST CPU -- SLUGGISH PERFORMANCE
  266.  
  267.      If you have a fast CPU (486 DX2/66 or DX/50 and up), you use
  268. OS2 2.1, and you haven't installed the Service Pak for OS2 2.1, you
  269. may experience a problem that several OS2USERS ran into:  You are
  270. typing or moving around in your DOS apps, the cursor stops or moves
  271. as if it were a slug, and the keyboard buffer fills regularly and
  272. causes lots of beeping.  The solution for me was in a file named
  273. PENTIUM.DSK that I downloaded from the IBM BBS.  The fixes in that
  274. file are in the Service Pak, so it's not needed if the SP is
  275. installed.  If you don't have the HPFS installed, you will have to
  276. copy HPFS.IFS manually to your [d:]\OS2 directory to complete that
  277. installation, since the installation file assumes HPFS.IFS is on
  278. your disk.
  279.  
  280.  
  281. 10.  PRO AUDIO 16 BASIC
  282.  
  283.      This card will allow you to have sound in Win-OS2 and in OS2
  284. apps when a Win-OS2 session is open, provided you use the Sound
  285. Blaster side of the card for Win-OS2 and the PAS side for OS2.
  286.  
  287.      Here's some "sound" advice from Ron Higgin 76516,2115:
  288.  
  289.      ------------------------------------------------------------
  290.      As you may or may not be aware, the PAS 16 has two independent
  291.      sets of circuitry on a single card. In effect it is two cards
  292.      in one: a PAS and a Soundblaster. Each side of the card is
  293.      independently configured as to the I/O port address, IRQ
  294.      number, and DMA channel it uses. The PAS side of the card is
  295.      ALWAYS enabled by the "MVPRODD.SYS" driver when it is loaded
  296.      during the OS/2 boot-up process. The Soundblaster side of the
  297.      card is enabled through the "/S:1" switch on the "MVPRODD.SYS"
  298.      driver parms ("/S:0", the default, disables the SB side of the
  299.      card).
  300.  
  301.      You have two choices when configuring the PAS 16 for use in an
  302.      OS/2 environment:
  303.  
  304.           1.   Disable the SB side of the card and share the PAS
  305.                side between all active OS/2, DOS, and WinOS2
  306.                sessions.
  307.  
  308.           2.   Enable the SB side of the card and use the PAS side
  309.                of the card for OS/2 sessions, and the SB side for
  310.                all DOS and WinOS2 sessions.
  311.  
  312.      Option "1" is OK as long as:
  313.  
  314.           o    All sound-enabled DOS apps you want to run support
  315.                the PAS 16 in native (non-Soundblaster) mode.
  316.  
  317.           o    You install the Mediavision supplied "Windows"
  318.                sound drivers for the PAS 16 card.
  319.  
  320.           o    You can live with the fact that some apps may
  321.                programmatically change sound mix/volume controls
  322.                and that such changes will affect all sessions
  323.                running under OS/2, including the OS/2 Desktop.
  324.  
  325.      Option "2" is OK as long as:
  326.  
  327.           o    You install the WinOS2 or Creative Labs supplied
  328.                "Windows" sound drivers (for the Soundblaster card,
  329.                which is emulated by the PAS 16 hardware).
  330.  
  331.           o    You are willing to individually configure DOS and
  332.                WinOS2 apps to get the sound quality you're looking
  333.                for.
  334.  
  335.      Generally speaking it is recommended (by MV) that you select
  336.      option "2". To do this with minimum discomfort you must assign
  337.      the SB side of the card one of the defacto Soundblaster
  338.      configurations: I/O port 220, DMA channel 1, and IRQ 5 or 7.
  339.      This can present a bit of a problem since most machines have
  340.      printer port LPT1 assigned to IRQ 7, and many bus mice use IRQ
  341.      5.  Some DOS applications are smart enough to either find the
  342.      SB "card" no matter how it's configured, or via a "standard"
  343.      Soundblaster DOS environment variable (I believe it is called
  344.      "BLASTER"). Unfortunately, in my experience, most DOS apps
  345.      (especially older ones) only check for one of the two defacto
  346.      configurations. Windows (and WinOS2) is a little more forgiv-
  347.      ing since the sound driver is explicitly configured within
  348.      Windows itself and apps simply access the "sound" hardware via
  349.      Windows defined programming interfaces.
  350.  
  351.      To use option "2" you must:
  352.  
  353.           1.   Add the following to the "MVPRODD.SYS" driver in
  354.                "CONFIG.SYS":
  355.  
  356.                    /S:1,220,1,x
  357.  
  358.                where "x" is the IRQ number you want to assign to
  359.                the SB side of the card (normally "5").
  360.  
  361.           2.   Reboot your system to enable the SB side of the
  362.                card.
  363.  
  364.           3.   Start a full screen WinOS2 session and use the
  365.                WinOS2 "Control Panel" to install the Soundblaster
  366.                (NOT the MV) driver.
  367.  
  368.           4.   Restart the WinOS2 session.
  369.  
  370.      Please keep the following in mind when selecting the I/O port
  371.      address, DMA channel, and IRQ for each side of the PAS 16
  372.      card:
  373.  
  374.           o    EACH selected I/O address, DMA channel, and IRQ
  375.                number MUST be unique within the SYSTEM. The values
  376.                must be unique for each side of the card AND MUST
  377.                NOT be in use by any other card in your system, or
  378.                in-board (on the motherboard) I/O ports.
  379.  
  380.           o    The PAS side of the card uses a 16 bit DMA channel
  381.                interface. In some cases it MAY operate correctly
  382.                (with reduced performance and/or sound quality) on
  383.                an 8 bit DMA channel, but if at all possible it
  384.                should be assigned to one of the 16 bit DMA chan-
  385.                nels (5, 6, or 7). The "/Dx" option on the
  386.                "MVPRODD.SYS" assigns the DMA channel to be used by
  387.                the PAS side of the card.
  388.  
  389.           o    The SB side of the card uses an 8 bit DMA channel
  390.                interface. The initial driver provide by Media-
  391.                vision actually REQUIRED the SB side to be assigned
  392.                DMA channel one.  Later versions removed the re-
  393.                striction but there's no point in wasting a 16 bit
  394.                DMA channel on the SB side so it's best to pick one
  395.                of the 8 bit DMA channels (1, 2, or 3). Remember,
  396.                the selected DMA channel must NOT be used by any
  397.                other card/device in your system.
  398.  
  399.           o    Some video cards have been known to use I/O port
  400.                220. If this is true for your video card (check
  401.                your video card manual to determine if this is
  402.                true) you'll have to pick an alternate I/O port for
  403.                the SB side of the card and live with the resulting
  404.                compatability problems.
  405.  
  406.      Finally, most DOS apps do NOT require any special driver to be
  407.      loaded in the DOS session in order to use the sound card.
  408.      However some stubborn DOS apps do.  If you get sound with some
  409.      DOS apps and not others you'll probably have to configure a
  410.      special program reference object (icon) for it specifying (via
  411.      the "DOS Settings") that the "MVSOUND.SYS" driver needs to be
  412.      loaded when the application is launched.  WinOS2 sessions do
  413.      NOT require you to load the "MVSOUND" driver since, as
  414.      previously stated, the Windows environment is customized for,
  415.      and controls sound card access."
  416.      ------------------------------------------------------------
  417.  
  418.      Here are some additional considerations that I have gleaned
  419. from other threads or learned from experience:
  420.  
  421.      (a)  IRQ, DMA, and IO address conflicts are notorious prob-
  422.           lems.  If you get repeating sounds or system hangs, look
  423.           for these first.  For example, don't be deceived by
  424.           success in using IRQ7 in DOS for both LPT1 and one side
  425.           of the card:  OS2 shows little or no tolerance for use of
  426.           the same IRQ by multiple devices.
  427.  
  428.      (b)  There are at least 2 versions of the PA16 Basic:  The one
  429.           with pins at J14 and J15 is called the LSI-version (It
  430.           was developed for some kind of future development that
  431.           Media Vision has abandoned).  To use it, remove the
  432.           jumpers from those pins (hang them to the side from one
  433.           pin or remove them entirely).  Then you will probably
  434.           want to get the beta MVPRODD.SYS driver that (on the date
  435.           I wrote this) was contained in a file on the Media Vision
  436.           BBS (510-770-0968) called PROD508B.EXE (password 508B):
  437.           rename PROD508B.SYS to MVPRODD.SYS and copy it to the
  438.           MMOS2 directory.
  439.  
  440.      (c)  Even though these boards are being sold currently, the
  441.           drivers included with them are old.  There are newer
  442.           drivers and utilities available in these files, and you
  443.           will probably want to download them from the Media Vision
  444.           BBS or CIS:  WIN145.EXE, OS2.EXE, MV324.EXE, and
  445.           SETPAS.ZIP, along with information files: PASSET.ZIP and
  446.           PASLIST.ZIP.  Please note, however, that most of the
  447.           drivers are dated 1993 and even 1992.  There are few
  448.           dated in 1994.
  449.  
  450.      (d)  You may still experience difficulties getting sound from
  451.           OS2 when you have a WinOS2 session open.  I think this is
  452.           because (on some systems) that session is accessing the
  453.           MV side of the card, despite the loading only of SB
  454.           drivers (no explanation offered).  The answer for me has
  455.           been to open a DOS session that has the MVSOUND.SYS
  456.           driver loaded to access the PAS side of the card, then to
  457.           open the WinOS2 session (which has only SB drivers
  458.           loaded), then close the DOS session.  Voila!  Sound in
  459.           both WinOS2 and OS2.  Convoluted, maybe, but it works. 
  460.           With a .cmd file called as a desktop object, this is a
  461.           simple step.
  462.  
  463.      (e)  If you download the updated drivers referred to above,
  464.           forget any instruction to patch a VDMA.SYS driver to
  465.           allow using the card in "enhanced" mode operation of Win-
  466.           OS2.  The patches have been made in the updated drivers.
  467.  
  468.      (f)  Expect sound from Windows to be quite loud and to
  469.           increase the volume of your OS2 sounds.  I have compro-
  470.           mised by boosting the sound volumes for my OS2 sounds and
  471.           simply lowering the speaker volume level.  Ron Higgin
  472.           suggested downloading a SB "mixer" driver that would
  473.           allow controlling SB sounds in Win-OS2 sessions.  I
  474.           haven't tried that yet.
  475.  
  476. J:> David Eckman (Houston) 75430,1525
  477. October 8, 1994
  478.