Platform Notes: SMCC Frame Buffers
  Buscar sólo este libro
Descargar este libro en PDF
CHAPTER 3

ZX and TurboZX Graphics Accelerator


This chapter describes how to change the ZX and TurboZX Graphics Accelerator screen resolution to work properly with different monitors. Since the following discussions are identical for the ZX and the TurboZX, the product name in this chapter is shortened to ZX to simplify the discussion.
You can change the ZX screen resolution through the leoconfig program. See the leoconfig(8) man page for more information.

Note - leo is the UNIX device name for the ZX and TurboZX Graphics Accelerators.

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, which is read from the monitor. If the monitor returns an unknown ID code, the ZX Graphics Accelerator defaults to a screen resolution of 1152 . 900 at 66 Hz. While this resolution works with all available monitors for the workstations supplied by Sun, some monitors can take advantage of other resolutions available on the ZX Graphics Accelerator.
You can change in screen resolution in two ways:
  • Temporarily, by running the leoconfig program
  • So that it always boots up in the new resolution by modifying the leoconfig script file

ZX-supported Monitors

TABLE 3-1 lists the monitors supported by the ZX Graphics Accelerator.
TABLE 3-1
Model.....Sun Part Number Type and SizeMonitor ID Sense CodeSupported Resolution and Refresh Rate
X248A.....365-1068-01..Color 21"21280 . 1024 at 76 Hz
GDM-20D10..365-1167-01..Color 20"41280 . 1024 at 67 Hz
1280 . 1024 at 76 Hz
1152 . 900 at 76 Hz
1152 . 900 at 66 Hz
960 . 680 at 112 Hz (stereo)
GDM-1955A15 365-1081-01..Color 19"31152 . 900 at 66 Hz
GDM-1962...365-1095-01..Color 19"41280 . 1024 at 67 Hz
1152 . 900 at 76 Hz
1152 . 900 at 66 Hz
GDM-1962B..365-1160-01..Color 19"41280 . 1024 at 67 Hz
1152 . 900 at 76 Hz
1152 . 900 at 66 Hz
GDM-1604A15 365-1079-01..Color 16"31152 . 900 at 66 Hz
GDM-1662B..365-1159-01..Color 16"61152 . 900 at 76 Hz
1152 . 900 at 66 Hz
1280 . 1024 at 67 Hz
CPD-1790...365-1151-01..Color 16"31152 . 900 at 66 Hz
1024 . 768 at 76 Hz
X449A.....365-1286-01..Color 15"01024 . 768 at 76 Hz
GDM-20S5...365-1168-01..Grayscale 20"2 or
4*
1280 . 1024 at 76 Hz or
1280 . 1024 at 67 Hz
1152 . 900 at 76 Hz
17SMM4 A...365-1100-01..Grayscale 17"61152 . 900 at 76 Hz
Non-Sun....--......Unknown71152 . 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"4N/A

Default Screen Resolutions

TABLE 3-2 lists the default screen resolutions by monitor ID sense code.
TABLE 3-2
CodeScreen Resolution
71152 . 900 at 66 Hz
61152 . 900 at 76 Hz
51152 . 900 at 66 Hz
41280 . 1024 at 67 Hz
31152 . 900 at 66 Hz
21280 . 1024 at 76 Hz
11152 . 900 at 66 Hz
01024 . 768 at 76 Hz

Supported Screen Resolutions

TABLE 3-3 lists the screen resolutions the ZX Graphics Accelerator supports.
TABLE 3-3
Screen ResolutionVertical Refresh RateDescription
1280 . 102467 HzNon-interlaced
1280 . 102476 HzNon-interlaced
1152 . 90076 HzNon-interlaced
1152 . 90066 HzNon-interlaced
1024 . 76876 HzNon-interlaced
1024 . 76860 HzNon-interlaced
960 . 680108 HzStereo, non-interlaced, 54 Hz field rate per eye
TABLE 3-3 (Continued)
Screen ResolutionVertical Refresh RateDescription
960 . 680112 HzStereo, non-interlaced, 56 Hz field rate per eye
770 . 57550 HzInterlaced - PAL
640 . 48059.94 HzInterlaced - NTSC

Changing the Screen Resolution

· To Change the Screen Resolution Temporarily

  1. Exit from the window system.

  2. As superuser (root), type the following command:

Imported image(369x51)

where monitor_type is one of the values listed in TABLE 3-4. (See also TABLE 3-3.)
TABLE 3-4
monitor_typeScreen Resolution
1280_761280 . 1024 at 76 Hz, non-interlaced
1280_671280 . 1024 at 67 Hz, non-interlaced
1152_761152 . 900 at 76 Hz, non-interlaced
1152_661152 . 900 at 66 Hz, non-interlaced
1024_761024 . 768 at 76 Hz, non-interlaced
1024_601024 . 768 at 60 Hz, non-interlaced
stereo_108960 . 680 at 108 Hz non-interlaced stereo, 54 Hz field rate per eye
stereo_114960 . 680 at 112 Hz, non-interlaced stereo, 56 Hz field rate per eye
TABLE 3-4 (Continued)
monitor_typeScreen Resolution
pal770 . 575 at 50 Hz, interlaced (PAL)
ntsc640 . 480 at 60 Hz, interlaced (NTSC)
defaultThe default resolution, defined by the monitor sense pins
For example, to change screen resolution to stereo at a 108 Hz vertical refresh rate, enter:

Imported image(369x46)

  1. Restart the window system.


Modifying the leoconfig Initialization File

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:

· To Modify the leoconfig File

  1. As superuser (root), open the leoconfig file with a text editor.

    For example, to use the vi editor:

Imported image(369x47)

  1. Search for the "MONTYPE=" string.

This string is usually one of the first lines in the file. The lines below are displayed. There is one MONTYPE= line for each available screen configuration. By default, all but one of the lines are commented out (with the # character).

Imported image(360x168)

  1. Comment out the line that specifies the current screen configuration.

    In the above example, comment out the "-m default" line, as follows:

Imported image(369x56)

  1. Delete the comment out character (#) from the line that supports your monitor.

    The supported monitor types are listed in TABLE 3-3. (See also TABLE 3-1.)

    For example, to change the screen resolution from the default to the higher resolution of 1280 . 1024 at 76 Hz, delete the comment (the # character) from the MONTYPE="-m 1280_76" line. The file should now look like this:

Imported image(360x145)

  1. Save the file and exit the editor.

    In vi, press Esc and type wq.

  2. Save all your work.

    If you do not save your work, it will be lost when you reboot the system.

  3. Exit from the window system.

    If you are in a windowing environment, wait for the system prompt to appear after you exit.

  4. As superuser (root), execute the leoconfig program:

Imported image(369x54)

  1. Exit superuser and restart the window system.

    The system should now be in the new screen resolution.


ZX Graphics Accelerator Restrictions

The ZX Graphics Accelerator has some alternate screen resolution support limitations. If you are using a Sun monitor and not changing the default screen resolution by way of the leoconfig program, you can disregard the following restrictions.

Using a Non-Sun Monitor as Console

If you use a non-Sun monitor as the workstation console, the monitor you use must meet both of the following requirements:
  • The monitor must support a screen resolution of 1152 . 900 at 66 Hz (the default screen resolution for a non-Sun monitor, as shown in TABLE 3-1).
  • The monitor must not drive the monitor ID sense lines, or must conform to the sense codes and resolutions listed in TABLE 3-1.

Restrictions to Changing the Default Screen Resolution

Some restrictions exist when 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 . 900 or less, excluding stereo, you will not be able to see the bottom portion of the display area during boot up before the window system starts. This means that you may not be able to see all of the start-up messages or to see what you are typing when you log in. To avoid this problem you must not set the monitor type to any one of the following:
· 1024_76
· 1024_60

  • pal
· ntsc

For applications that require 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 9, "Multiple Monitors on a System."

Stereo Connector

The stereo connector allows connection of stereo goggles to the ZX Graphics Accelerator. The stereo connector is a female, three-conductor, mini-phone connector. The male stereo connector that mates with the ZX Graphics Accelerator stereo connector must be wired as shown in FIGURE 3-1.

Gráfico

FIGURE 3-1

The stereo signal is a TTL-level, 50 percent duty cycle signal that switches between left and right stereo shutters, as shown in FIGURE 3-2. The figure shows the default polarity of the signal. The polarity may be reversed by software control.

Gráfico

FIGURE 3-2

A stereo cable and goggles for use with the ZX Graphics Accelerator are available from the following source:
StereoGraphics Corporation 2171-H East Francisco Blvd. San Rafael, CA 94901 (415) 459-4500
FAX: 415-459-3020

Stereo Cable on the Ultra 1 System

To be FCC Class B compliant, the use of the StereoGraphics cable with the ZX on an Ultra 1 system requires the addition of a ferrite core to the stereo cable. The ferrite core is provided with the ZX Ultra 1 kit.
The ferrite core is designed to clamp around the cable, as shown in FIGURE 3-3.

Gráfico

FIGURE 3-3