This chapter describes how to change the ZX Graphics Accelerator screen resolution to work properly with different monitors.
You can change the ZX screen resolution through the use of the leoconfig program. See the leoconfig(8) man page for more information on this program than is described here.
There are two elements to leoconfig: the leoconfig program and the leoconfig script. The leoconfig program initializes the ZX Graphics Accelerator and downloads microcode from the host CPU. The leoconfig program is normally run as a part of the /etc/init.d/leoconfig script to download the ZX microcode file and to complete ZX installation.
The leoconfig program is also useful to change the default screen
configuration to some other resolution, including stereo. The default screen
resolution for the ZX Graphics Accelerator is defined by the monitor ID code,
read from the monitor. If the monitor returns an unknown ID code, the ZX
Graphics Accelerator defaults to a screen resolution of 1152
There are two ways to implement the change in screen resolution:
Table 4-1 lists the monitors supported by the ZX Graphics Accelerator.
Table 4-1 Monitors Supported by ZX
-------------------------------------------------------------------------------------------------------------------------------------------------------
Model Sun Part Type and Size Monitor ID Supported Resolution and Number Sense Code Refresh Rate -------------------------------------------------------------------------------------------------------------------------------------------------------
X248A 365-1068-01 Color 21" 2 1280 \xb4 1024 at 76 Hz GDM-20D10 365-1167-01 Color 20" 4 1280 \xb4 1024 at 67 Hz 1280 \xb4 1024 at 76 Hz 1152 \xb4 900 at 76 Hz 1152 \xb4 900 at 66 Hz 960 \xb4 680 at 112 Hz (stereo) GDM-1955A15 365-1081-01 Color 19" 3 1152 \xb4 900 at 66 Hz GDM-1962 365-1095-01 Color 19" 4 1280 \xb4 1024 at 67 Hz 1152 \xb4 900 at 76 Hz 1152 \xb4 900 at 66 Hz GDM-1962B 365-1160-01 Color 19" 4 1280 \xb4 1024 at 67 Hz 1152 \xb4 900 at 76 Hz 1152 \xb4 900 at 66 Hz GDM-1604A15 365-1079-01 Color 16" 3 1152 \xb4 900 at 66 Hz GDM-1662B 365-1159-01 Color 16" 6 1152 \xb4 900 at 76 Hz 1152 \xb4 900 at 66 Hz 1280 \xb4 1024 at 67 Hz CPD-1790 365-1151-01 Color 16" 3 1152 \xb4 900 at 66 Hz 1024 \xb4 768 at 76 Hz X449A 365-1286-01 Color 15" 0 1024 \xb4 768 at 76 Hz GDM-20S5 365-1168-01 Grayscale 20" 2 or 1280 \xb4 1024 at 76 Hz or 4* 1280 \xb4 1024 at 67 Hz 1152 \xb4 900 at 76 Hz 17SMM4 A 365-1100-01 Grayscale 17" 6 1152 \xb4 900 at 76 Hz Non-Sun -- Unknown 7 1152 \xb4 900 at 66 Hz Resolutions in bold type are the default resolution at power-on initialization. * Monitor ID sense code is user-selectable by switch on rear. Monitors not supported: M20P110 365-1099-01 Grayscale 19" 4 N/A -------------------------------------------------------------------------------------------------------------------------------------------------------
Table 4-2 lists the default screen resolutions by monitor ID sense code.
Table 4-2 ZX Frame Buffer Monitor Sense Codes
----------------------------
Code Screen Resolution ----------------------------
7 1152 \xb4 900 at 66 Hz 6 1152 \xb4 900 at 76 Hz 5 1152 \xb4 900 at 66 Hz 4 1280 \xb4 1024 at 67 Hz 3 1152 \xb4 900 at 66 Hz 2 1280 \xb4 1024 at 76 Hz 1 1152 \xb4 900 at 66 Hz 0 1024 \xb4 768 at 76 Hz ----------------------------
Table 4-3 lists the screen resolutions the ZX Graphics Accelerator supports.
Table 4-3 ZX Supported Screen Resolutions
----------------------------------------------------------------------------
Screen Vertical Description Resolution Refresh Rate ----------------------------------------------------------------------------
1280 \xb4 1024 67 Hz Non-interlaced 1280 \xb4 1024 76 Hz Non-interlaced 1152 \xb4 900 76 Hz Non-interlaced 1152 \xb4 900 66 Hz Non-interlaced 1024 \xb4 768 76 Hz Non-interlaced 1024 \xb4 768 60 Hz Non-interlaced 960 \xb4 680 108 Hz Stereo, non-interlaced, 54 Hz field rate per eye 960 \xb4 680 112 Hz Stereo, non-interlaced, 56 Hz field rate per eye 770 \xb4 575 50 Hz Interlaced - PAL 640 \xb4 480 59.94 Hz Interlaced - NTSC ----------------------------------------------------------------------------
To change the screen resolution temporarily:
If you are in a windowing environment, exit from it and wait for the system prompt to appear.
where monitor_type is one of the values listed in Table 4-4. See also Table 4-3 on page 18.
Table 4-4 Monitor Types
------------------------------------------------------------------------------------
monitor_type Screen Resolution ------------------------------------------------------------------------------------
1280_76 1280 \xb4 1024 at 76 Hz, non-interlaced 1280_67 1280 \xb4 1024 at 67 Hz, non-interlaced 1152_76 1152 \xb4 900 at 76 Hz, non-interlaced 1152_66 1152 \xb4 900 at 66 Hz, non-interlaced 1024_76 1024 \xb4 768 at 76 Hz, non-interlaced 1024_60 1024 \xb4 768 at 60 Hz, non-interlaced stereo_108 960 \xb4 680 at 108 Hz non-interlaced stereo, 54 Hz field rate per eye stereo_114 960 \xb4 680 at 112 Hz, non-interlaced stereo, 56 Hz field rate per eye pal 770 \xb4 575 at 50 Hz, interlaced (PAL) ntsc 640 \xb4 480 at 60 Hz, interlaced (NTSC) default The default resolution, defined by the monitor sense pins ------------------------------------------------------------------------------------
For example, to change screen resolution to stereo at a 108 Hz vertical refresh rate, enter the following:
Before performing the following steps, read "Restrictions to Changing the Default Screen Resolution" on page 22. To change the leoconfig script so that the system boots up in the new screen resolution, edit the leoconfig script in the /etc/init.d/leoconfig file, as follows:
This string is usually one of the first lines in the file. You should see the lines shown below.
There is one MONTYPE= line for each available screen configuration. By default, all but one of the lines are commented out (with the # character).
The supported monitor types are listed in Table 4-3 on page 18. See also Table 4-1 on page 16.
For example, to change the screen resolution from the default to the higher
resolution of 1280
In vi, press Esc and type the following:
Refer to Chapter 6, "Working with Documents," in the Sun System User's Guide for more information about ending a work session and saving your files. If you do not save your work, you could lose it when you reboot the system.
If you are in a windowing environment, exit from it and wait for the system prompt to appear.
The system should now be in the new screen resolution.
The ZX Graphics Accelerator has some limitations on its ability to support alternate screen resolutions. If you are using a Sun monitor and not changing the default screen resolution by way of the leoconfig program, you may disregard the following restrictions.
If you use a non-Sun monitor as the workstation console, the monitor you use must meet both of the following requirements:
There are restrictions to changing the default screen resolution with the leoconfig program.
When you modify the leoconfig initialization program to change from the
default screen resolution to a resolution of 1024
1024_76
1024_60
pal
ntsc
For those applications that require the lower resolutions, such as pal and ntsc, use a two-headed system. With a two-headed system where the ZX monitor is not used as the boot console, you may operate the ZX monitor in any of the supported screen resolutions. For more information, see Chapter 6, "Multiple Monitors on a System."