Platform Notes: SMCC Frame Buffers
只搜寻这本书
以 PDF 格式下载本书
CHAPTER 4

SX Frame Buffer


This chapter describes how to change the display resolution on the SX Frame Buffer (cgfourteen). If you want to run OpenWindows on a SPARCstation 10SX system or a SPARCstation 20 system, you may need to perform additional configuration tasks after the initial installation.
You can use the /usr/platforms/sun4m/sbin/cg14config utility to:
  • Specify a different screen resolution.
  • Change the values in the gamma lookup table.

Note - cg14 is the UNIX device name for the SX Frame buffer.

For more information, see the cg14config man page.

SX-supported Monitors

TABLE 4-1 lists the monitors supported by the SX Frame Buffer and the alternate screen resolutions, if any, that each monitor supports.
TABLE 4-1

Model.....Sun Part Number Type and Size
Monitor ID
Sense Code
Supported Resolution and
Refresh Rate
GDM-20D10..365-1167-01..Color 20"41152 . 900 at 76 Hz
1280 . 1024 at 67 Hz
1280 . 1024 at 76 Hz
1152 . 900 at 66 Hz
GDM-1955A15 365-1081-01..Color 19"31152 . 900 at 66 Hz
GDM-1962...365-1095-01..Color 19"41152 . 900 at 76 Hz
1280 . 1024 at 67 Hz
1152 . 900 at 66 Hz
GDM-1962B..365-1160-01..Color 19"41152 . 900 at 76 Hz
1280 . 1024 at 67 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
GDM-20S5...365-1168-01..Grayscale 20"2 or
4*
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.

Default Screen Resolutions

TABLE 4-2 lists the default screen resolutions by monitor ID sense code.
TABLE 4-2 SX Frame Buffer Monitor Sense Codes

 Code    Screen Resolution  


7 1152 . 900 at 66 Hz 6 1152 . 900 at 76 Hz 5 1024 . 768 at 60 Hz 4 1152 . 900 at 76 Hz 3 1152 . 900 at 66 Hz 2 1280 . 1024 at 76 Hz* 1 1600 . 1280 at 76 Hz* 0 1024 . 768 at 60 Hz
* The 4-Mbyte VSIMM drops to 8 bits per pixel at these resolutions.

Changing the Screen Resolution

· To change the screen resolution, use the cg14config command as follows:

Imported image(369x52)

where
  • device is the cgfourteen device to configure. The default is /dev/fb.
  • resolution is one of the values listed in TABLE 4-3.
TABLE 4-3
resolutionScreen Resolution
1600x1280@661600 . 1280 at 66 Hz
1280x1024@661280 . 1024 at 66 Hz
1152x900@661152 . 900 at 66 Hz
1152x900@761152 . 900 at 76 Hz
1024x800@841024 . 800 at 84 Hz
1024x768@701024 . 768 at 70 Hz
1024x768@661024 . 768 at 66 Hz
1024x768@601024 . 768 at 60 Hz
For example, to change the screen resolution to 1280 . 1024 at 66 Hz, enter:

Imported image(369x60)


Changing the Pixel Depth

After starting OpenWindows, the window server configures the SX Frame Buffer to support the maximum pixel depth for the screen resolution and frame buffer memory size that you selected. Typically, 32 bits are allocated to each display pixel. But, on the 4-megabyte SX frame buffer, you can increase the screen resolution by choosing a depth of 16 bits per pixel, with some loss of features.
Any frame buffer memory not visible on the monitor display is available to the window server for storing pixmaps. If you want to maximize the amount of off-screen pixmap storage available for your applications, you may need to add the following line to the cg14 frame buffer entry in the /usr/openwin/server/etc/ OWconfig file:

Imported image(369x60)

This forces the window server to initialize the SX Frame Buffer at 16 bits per pixel, regardless of the frame buffer memory size. TABLE 4-4 summarizes the available features at the 16-bit and 32-bit pixel depths.
TABLE 4-4
Underlay Visuals32-bit16-bit
24-bit TrueColorYesNo
8-bit PseudoColorYesYes
8-bit StaticColorYesYes
8-bit GreyscaleYesYes
8-bit StaticGreyYesYes
8-bit TrueColorYesYes
8-bit DirectColorYesYes
Overlay Visuals

8-bit PseudoColorYesYes
Double Buffering

TABLE 4-4 (Continued)
Underlay Visuals32-bit16-bit
24-bit pixmapsSoftwareNo
8-bit pixmapsHardwareSoftware
Note: Overlay visuals are limited to 230 colors.
To support the addition of overlay visuals in Solaris 2.4, the minimum SX Frame Buffer depth has been increased from 8 bits to 16 bits per pixel. If you are using pixelmode="8" and also upgrading from the Solaris 2.3 to the Solaris 2.4 software environment, some performance degradation may occur in some of the OpenWindows Xlib functions.

XIL Acceleration on the SX Frame Buffer

The following XIL 1.3 functions are accelerated on the SX Frame Buffer:
  • The I/O driver (accelerates all copies to frame buffers)
  • xil_copy() + display molecule
  • xil_set_value() + display molecule
All other XIL 1.3 functions will, of course, work on an the SX Frame Buffer; however, the CPU will be used for image processing.