This section covers tips and tricks which affect the system in general.
When OS/2 is started, it automatically opens applications which were open during the last OS/2 session. To keep applications from restarting on boot, you can use either the manual or automatic method.
Related subject(s):
To prevent applications from restarting during boot, hold down the Ctrl, left Shift, and F1 keys at the same time, beginning when the mouse pointer appears until the icons begin appearing on the desktop. If you find that disk activity stops, you may have to release the keys and then quickly hold them down again.
Related subject(s):
Placing the line
SET RESTARTOBJECTS=STARTUPFOLDERSONLY,REBOOTONLY
into your CONFIG.SYS file will prevent any applications which had been open in the last session from opening, but will allow programs in the Startup folder to open.
(this line may be order-dependent on some systems)
Related subject(s):
To shut OS/2 down without a mouse, press Ctrl-Esc to bring up the Window List, choose the Desktop, press the Spacebar to deselect any icons, press Shift-F10 to pop up the Desktop's menu, choose Shutdown.
To reboot OS/2 down from the command line, type
SETBOOT /B
Note: the above only works with Boot Manager installed.
or
SETBOOT /IBD:<drive>
where <drive> is the letter of the drive or partition to which you wish to boot
Related subject(s):
The settings for all of the objects which were created upon installation of your OS/2 system are contained in the INI.RC file, located in the \OS2 subdirectory. Those handy with REXX and the external REXXutils can use the information contained in the INI.RC file to rebuild the original OS/2 objects.
Related subject(s):
You can control the order in which objects in your Startup folder execute.
Screenshot: Startup folder in Flowed view with item being dragged into it.
Much of your system's customization is stored in two files, OS2.INI and OS2SYS.INI. To back up these important files, add the following line to the beginning of your CONFIG.SYS:
CALL=<drive1>:\OS2\XCOPY.EXE <drive2>:\OS2\OS*.INI <drive3>:\<path>
where
<drive1> is the letter of the drive in which XCOPY.EXE is found
<drive2> is the letter of the drive in which the *.ini files are found
<drive3> is the letter of the drive in which you would like to locate the backups of the *.ini files
<path> is the path in which you would like to locate the backups of the *.ini files
Note: The 2.11 CSD adds the System attribute to OS2.INI and OS2SYS.INI. In order for this tip to work, you should use XCOPY's /T /R /O switches at the end of the CALL command above.
Related subject(s):
contributed by Jack Tan
If you aren't using the DOS subsystem, you can improve performance by removing DOS-specific device drivers from loading in your CONFIG.SYS (they generally begin with the letter V). The same applies to Win-OS/2, HPFS, CD-ROM drivers as well.
Related subject(s):
contributed by Jack Tan
Try adding switches to the BASEDEV=IBM1S506.ADD line:
BASEDEV=IBM1S506.ADD /A:0 /U:0 /SMS
and use /V to see if the /SMS works (/V = verbose). This is supposed to speed up IDE drives that support this feature; otherwise, it will be ignored.
(note: the switches above affect the first drive on the first adapter in the system -- for more information on the switches, search for "basedev" in your online OS/2 Command Reference)
by Darius Vaskelis
To prevent users from using the floppy drives under OS/2, such as in a workstation situation:
Remove the following line from your CONFIG.SYS:
BASEDEV=IBMxFLPY.ADD
Where x is 1 for ISA and EISA, or 2 for Microchannel.
To get an Epson ActionLaser to work with OS/2 2.1:
from the OS/2 2.1 Technical Reference
You can increase available resources by disabling unused caches. If you are running an HPFS-only system, remove (or REM) the DISKCACHE line in your CONFIG.SYS file. Similarly, if you are running a FAT-only system, remove (or REM) the IFS=<drive>:\OS2\HPFS.IFS line in your CONFIG.SYS.
Related subject(s):
contributed by Jack Tan
The error message:
OS/2 !! SYS01475
OS/2 !! SYS02027
means that the system files can't be found. Try removing any diskettes from the disk drives. If this message appears when trying to boot from a hard disk, use SYSINSTX to restore the OS/2 system files.
contributed by Jack Tan
To make the Alt-F1 trick restore your last desktop backup instead of the (ugly) default, replace the CONFIG.SYS, OS2.INI, and OS2SYS.INI in \OS2\INSTALL with the files from your last backup. Make sure to save the original files in \OS2\INSTALL before replacing them.
Related subject(s):
contributed by Jack Tan
Here are two tips to make viewing OS/2 *.inf files more convenient:
1. Put several INF files together using a plus sign. On the command line (or 'Parameters' field of the settings notebook), enter something such as:
e.g., <drive>:\BOOKS\FILE1.INF+<drive>:\BOOKS\FILE2.INF+ <drive>:\BOOKS\FILE3.INF.
The pathnames aren't necessary if the file is in a directory specified by the HELP environmental variable.
2. You can assign the book names to an environmental variable:
e.g., SET FILE=<drive>:\BOOKS\FILE1.INF+<drive>:\BOOKS\FILE2.INF+ <drive>:\BOOKS\FILE3.INF
and execute VIEW.EXE using the variable name (e.g., VIEW FILE).
When you load a DOS image file (Virtual Machine Boot, or VMB), the entire diskette image is loaded into memory. Since the files on the DOS image diskette don't take up much room themselves, much of the memory used for the diskette is wasted. Therefore, in order to regain memory when loading the specific DOS session, try using double-density diskettes to make your DOS images, instead of high-density diskettes.
You can boot OS/2 in full-screen mode, and still retain Presentation Manager support for multiple sessions:
SET RUNWORKPLACE=<drive>:\OS2\PMSHELL.EXE
in your CONFIG.SYS file to:
SET RUNWORKPLACE=<drive>:\OS2\CMD.EXE /FS
where <drive> is the drive on which OS/2 resides.
@ECHO OFF START /FS EXIT
Related subject(s):
If shutdown seems to "hang" at the first shutdown message box, this trick sometimes works:
If you have disk space to spare, you can adjust the default startup size of your swap file (SWAPPER.DAT) to improve system performance.
The default startup size of SWAPPER.DAT is set in your CONFIG.SYS file with the line:
SWAPPATH=<drive>:\<path> <minfree> <swapsize>
where <swapsize> is the default startup size of SWAPPER.DAT.
To adjust the startup size for better performance:
Caution:
You MUST have enough free drive space to use this tip. If the size of the <swapsize> parameter violates the amount needed for the <minfree> parameter, your system will not boot.
contributed by Jack Tan
Running SVGA.EXE in a VDM usually results in a file called SVGADATA.PMI, which contains information which lets OS/2 access SVGA graphics modes.
Sometimes, SVGA.EXE has trouble "seeing" the video chip, and extended graphics modes won't work correctly. If so, try running SVGA.EXE under real DOS or a VMB. This will create a file named SVGADATA.DOS. Rename SVGADATA.DOS to SVGADATA.PMI and copy it into your \OS2 subdirectory.
contributed by Xavier Caballe
In order to load a DOS device driver into high memory in a particular DOS Session:
SIZE=0 C:\OS2\MDOS\ANSI.SYS
In this example, the ANSI.SYS will be loaded in the high memory area (if available).
Screenshot: DOS Settings for loading a device driver high.
contributed by Jack Tan
If your INI files (OS2.INI and OS2SYS.INI) stop saving system changes, they may have been marked read-only. To reset the read-only attribute:
attrib -r os2*.ini
at an OS/2 command prompt.
Note: if using OS/2 2.0, you may have to boot OS/2 from your installation floppies in order to reset the attributes.
contributed by Xavier Caballe
The combination of REXX with MMPM/2 can be quite powerful, as demonstrated by CDPLAY.CMD, a "poor man's CD player."
Note: requires MMPM/2
Related subject(s):
contributed by Jack Tan
Note: MMPM/2 is required.
Related subject(s):
A buffered UART (such as the 16550AF chip) is often necessary for error-free serial communications in a multitasking environment.
To determine if your computer has a buffered UART:
MODE COMx
where x is the number of the serial port you wish to check.
BUFFER=N/A
appears, you do not have a buffered UART. If the BUFFER line contains anything other than N/A, you have a buffered UART.
If you have more than one printer that use the same printer driver, and each is attached to different parallel or serial ports, you can configure your printer object so that waiting print jobs will be sent to any free port.
"Pooling" multiple printers:
Screenshot: Choosing multiple ports for the printer object.
Note: this trick does not appear to work in OS/2 Warp
Ever wonder what the subdirectory called Nowhere on your OS/2 boot drive is? The Nowhere subdirectory is a place where transient objects are stored.
Since each directory represents a folder, you can view the Nowhere directory, and watch object appear and disappear in it:
<drive>:\
where <drive> is the letter of the drive on which OS/2 is installed.
Caution
Do not manipulate any of the objects in the Nowhere folder! Simply observe!
//
contributed by Jorge Omar
//
If you would like to backup your OS2.INI and OS2SYS.INI files in the
background during the boot process:
where <drive> is the drive on which OS/2 resides.
Note: the ATTRIB command is only needed for systems running OS/2 2.11 and
higher.
ATTRIB -S <drive>:\OS2\OS2*.INI
COPY <drive>:\OS2\*.BK1 <drive>:\OS2\*.BK2
COPY <drive>:\OS2\OS2*.INI <drive>:\OS2\*.BK1
ATTRIB +S <drive>:\OS2\OS2*.INI
A variation of the above BACKINI.CMD uses XCOPY switches rather than using ATTRIB to reset the System attribute:
BACKINI.CMD:
XCOPY <drive>:\OS2\*.BK1 <drive>:\OS2\*.BK1 /T /R /O XCOPY <drive>:\OS2\OS2*.INI <drive>:\OS2\*.BK1
Note: the files OS2.BK1, OS2.BK2, OS2SYS.BK1, OS2SYS.BK1 must exist in <drive>:\OS2\ before this will run!
//
Related subject(s):
// You can adjust the read cache for your cdrom drive. In your CONFIG.SYS, you can add a switch to the end of the cdrom IFS line:
IFS=<drive>:\OS2\CDFS.IFS /C:<number>
where <drive> is the drive on which CDFS.IFS is located
<number> is the number of 64K segments used for the cache. The default is 2, or 128K (2 x 64K = 128K).
//
contributed by Jack Tan
// Boot Manager can boot to the partition from which the system was last started, but once you select a default partition from which to boot in Boot Manager, you lose the ability. To reset Boot Manager so that it has no default value, issue the following command at an OS/2 prompt:
SETBOOT /0:
//
// You can create a Virtual Machine Boot to boot real DOS from the C:. partition, rather than the typical floppy boot if you are running a Boot Manager system with real DOS on the primary (C:) paritition. Point the Virtual Mahcine Boot at the C: partition by setting DOS_STARTUP_DRIVE to C:. OS/2 must be installed on a logical drive.
//
Related subjects:
contributed by Jack Tan
// If your boot record should become damaged, you can reset your boot record by typing the following at an OS/2 prompt:
FDISK /NEWMBR
//