C H A P T E R  8

Genlocking Sun XVR-4000
Graphics Accelerators

This chapter describes genlocking multiple Sun XVR-4000 graphics accelerators.


Sun XVR-4000 Graphics Accelerator Genlock

Genlock and framelock are different methods of accomplishing synchronization of video timing between two computer graphics systems. Framelock synchronizes two video streams by asynchronously resetting the slave device is vertical timing, and does not guarantee that pixels are aligned in the two streams. This situation could result in dropped video lines.

Genlock, on the other hand, generates its pixel clock from the master video timing signals, using phase locked loop (PLL) techniques, so they each produce pixels at precisely the same rate, even if the master timing changes over time. Genlock currently requires the video formats to be identical in resolution and frame rate.

When using genlock with framelock (Chapter 7), the vertical reset is always received on the same video line. The slave cannot gain or drop a line of video with respect to the master display device when genlocked.

Sun XVR-4000 graphics accelerators in different systems may be genlocked. Be sure to issue the appropriate commands, video formats, and so on, to each system graphics accelerator to be genlocked.

You may obtain a standard 13W3-BNC cable, BNC-BNC cables, BNC-T connectors, and 76-ohm terminators at your local computer or video supply store.


Connecting the Genlock Cable

Cable the Sun XVR-4000 graphics accelerators to be genlocked before configuring your system for genlock (described in Enabling Genlocking for Graphics Accelerators). It is best to have the Sun XVR-4000 graphics accelerators cabled for both framelock (Chapter 7) and genlock for circumstances where both may be required. If framelock is not in use, it does no harm to keep the framelock cables installed.

To genlock your master Sun XVR-4000 graphics accelerator to a slave graphics accelerator, you need a 13W3-BNC cable, BNC-T connector, BNC-BNC cables (for genlocking more than one slave device), and a BNC 75-ohm terminator. The 75-ohm terminator is required even when genlocking a single slave device.

1. Locate the Sun XVR-4000 graphics accelerator I/O back panel on the rear of your Sun Fire V880z server and the 13W3 connector you will use as genlock master (FIGURE 8-1).

You may use either the 13W3A or 13W3B connector for genlocking slave graphics boards. Use one for the master display device (for example, projector or monitor) and the other for genlocking slave display devices.

 FIGURE 8-1 Sun XVR-4000 Graphics Accelerator 13W3 and Genlock Connectors

Figure showing the Sun XVR-4000 graphics accelerator back panel I/O ports and genlock LED location.[ D ]

2. Connect the 13W3 connector end of the genlock cable to the Sun XVR-4000 graphics accelerator 13W3 monitor connector selected for genlocking (FIGURE 8-2).

3. Attach a BNC-T connector to the slave back panel genlock/BNC connector of the Sun XVR-4000 graphics accelerator (FIGURE 8-2).

Repeat for each additional slave device to be genlocked.

4. Connect the proper BNC connector end of the genlock cable to one end of the BNC-T connector (FIGURE 8-2).

The composite (or horizontal) synchronization signal is normally used for genlock and is typically the BNC connector on the black wire. If the synchronization signal of the master video format uses the sync on green option, use the BNC connector on the green wire. (The genlock 13W3-BNC cable also has red, green, blue or white BNC wires.) See TABLE 8-1.

5. For multiple slave devices, connect a BNC-BNC cable from the open end of the
BNC-T connector on one graphics accelerator to the BNC-T connector of the next slave device.

6. Attach the 75-ohm terminator to the open BNC-T connector of the last slave device.

FIGURE 8-2 shows the master Sun XVR-4000 graphics accelerator in Slot B of the Sun Fire V880z server. The first slave Sun XVR-4000 graphics accelerator is in Slot C. The second and third slaves are on two additional Sun Fire V880z servers.

 FIGURE 8-2 Sun XVR-4000 Graphics Accelerator Genlock Cabling

Figure showing genlocking between a master and two slave Sun XVR-4000 graphics accelerators.[ D ]


Enabling Genlocking for Graphics Accelerators

This example uses the Sun XVR-4000 graphics accelerator and the device names zulu0 and zulu1. When genlocking with other graphics accelerators, use the appropriated device names.

1. Designate a Sun XVR-4000 graphics accelerator as the master.

You may use the Sun XVR-4000 graphics accelerator that serves as the boot/console head for that system.

You may select any device (that is, zulu0, zulu1, ... and so on) to be the master Sun XVR-4000 graphics accelerator device. If both framelock and genlock are enabled, you must cable the same device to be master for both.

2. Make sure that each Sun XVR-4000 graphics accelerator installed is running a video format with frame refresh rate identical to the video format running on the Sun XVR-4000 accelerator in master mode.

a. Check the resolution of a Sun XVR-4000 graphics accelerator by using the fbconfig command.

host% fbconfig -dev zulu0 -prconf

You must repeat this command for each Sun XVR-4000 graphics accelerator in the system or systems to be genlocked.

b. Change the resolution of a Sun XVR-4000 graphics accelerator using the fbconfig command.

If the resolution on each Sun XVR-4000 graphics accelerator is not the same, you must change it to match the Sun XVR-4000 graphics accelerator in master mode. You must configure each board separately (that is, for zulu0, zulu1, and so on). The resolution shown below is an example only, you can use different video formats such as SUNW_STD_1600x1000x66 (TABLE 8-1):

host% fbconfig -dev zulu0 -res SUNW_STD_1280x1024x76
host% fbconfig -dev zulu1 -res SUNW_STD_1280x1024x76

Log out of the X Window system, and then log back in for the resolutions to take effect. If you do not wish the genlock or bothlock synchronization to be repeated when the X Window system restarts, simply exit the window/desktop session instead of logging out or disable genlock (see Disabling Genlock).

3. Set the master and slave graphics boards.

You can enable genlock while the X Window system is running, however, you should first verify that the master device is initialized. (see Step 4).

In this example, zulu0 is the genlock master device, and zulu1 is the slave device.

host% fbconfig -dev zulu0 -master a -stream a -slave disable -outputs streamA
host% fbconfig -dev zulu1 -stream a -slave enable genlock

The -outputs streamA option directs the same video stream through both 13W3 device ports, sending the same stream simultaneously to a display device and to a slave graphics accelerator for genlocking. See Chapter 6, -outputs Port Mapping for more information.

4. Verify that the master device is initialized before the slave device is initialized.

If both devices are in the same system, the master device should appear before the slave device in the Xservers file. Where zulu0 is the master device in this example, you can verify that zulu0 is the first entry in the Xservers file Xsun command-line entry.

:0  Local local_uid@console root /usr/openwin/bin/Xsun -dev /dev/fbs/zulu0 -dev /dev/fbs/zulu1

If the master device is not initialized prior to the slave device in the Xservers file, then when the X Window system restarts on the slave device, the slave device genlock input connector will not recognize the master device. Therefore, the slave device attempt to genlock with the master device will fail.

If the slave device is initialized first, the slave device will start up but without enabling genlock. You can then enable genlock for the slave device through the fbconfig command:

host% fbconfig -dev zulu1 -stream a -slave enable genlock

Genlock Options

fbconfig -genlock hphase and vphase suboptions enable relative or absolute setting of horizontal and vertical phase, respectively. The horizontal phase allows a pixel offset between the external video format and the stream output. The vertical phase allows a scanline offset between the external video format and the stream output.

Refer to Man Pages to access detailed descriptions of the -genlock suboptions through the SUNWzulu_config man page. This section also describes how to invoke fbconfig -dev zulu0 -help. You can use other -genlock suboptions to adapt genlocking to special (non Sun) video formats whose timing exactly matches that of a Sun video format.

Genlock Limitations

Using only genlock (rather than bothlock) enables vertical synchronization with the genlock master source only for composite synchronization video formats, with serrations, for pixel clocks less than 150 Mhz. (All Sun video formats with composite synchronization include serrations.) For other video formats, genlock alone synchronizes the pixel frequency and horizontal phase, but not the vertical phase. Using bothlock instead of genlock achieves both horizontal and vertical types of alignment.

Bothlock

Use bothlock to enable both genlock and framelock. Bothlock uses both genlock and framelock techniques and requires cabling for both (see Chapter 7 for framelocking).

Bothlock Advantages

Bothlock is the only way to achieve both vertical and horizontal synchronization for a high-speed video format (pixel clock at or above 150 Mhz), or for a video format with separate synchronization (see TABLE 8-1). Bothlock is also recommended for other video formats whenever a framelock signal is available (that is, when the source is a Sun graphics accelerator with a Sun framelock/stereo connector).

Setting Up Bothlock

single-step bulletTo use bothlock, type:

host% fbconfig -dev zulu0 -master a -stream a -slave disable -outputs streamA
host% fbconfig -dev zulu1 -stream a -slave enable external bothlock

On the Sun XVR-4000 graphics accelerator system, you do not need to run these last two commands, that is, setting each master and slave graphics board, each time you log into your X Window system.

Screen Resolution Synchronization Attributes

TABLE 8-1 lists the proper synchronization attribute for each screen resolution. The table also lists the speed of the pixel clock for each resolution. For pixel clocks under 150 Mhz (indicated by "Slow" in the Pixel Clock Speed column of TABLE 8-1), genlock is sufficient for composite synchronization. For pixel clocks over 150 Mhz (indicated by "Fast" in TABLE 8-1), bothlock is recommended (see Bothlock). All Sun video formats with composite synchronization include serrations.

 

TABLE 8-1 Screen Resolution Synchronization Attributes

Display resolution

Refresh rate (Hz)

Pixel Clock
Speed

Synchronization Attribute

Acceptable for Genlock Alone

Video Format

1920 × 1200

60d

Fast

Separate

No

SUNW_DIG_1920x1200x60

1920 × 1200

70, 75

Fast

Composite

No

SUNW_STD_1920x1200x70
SUNW_STD_1920x1200x75

1920 × 1080

60d

Slow

Separate

No

SUNW_DIG_1920x1080x60

1920 × 1080

72

Fast

Composite

No

SUNW_STD_1920x1080x72

1792 × 1344

60

Fast

Separate

No

VESA_STD_1792x1344x60

1600 × 1280

76

Fast

Composite

No

SUNW_STD_1600x1280x76

1600 × 1200

60d

Slow

Separate

No

SUNW_DIG_1600x1200x60

1600 × 1200

60, 75

Fast

Separate

No

VESA_STD_1600x1200x60
VESA_STD_1600x1200x75

1600 × 1024

60

Slow

Separate

No

SUNW_DIG_1600x1024x60
SUNW_DIG_1600x1024x60

1600 × 1000

76

Fast

Composite

No

SUNW_STD_1600x1000x76

1600 × 1000

66

Slow

Composite

Yes

SUNW_STD_1600x1000x66f

1440 × 900

76

Slow

Composite

Yes

SUNW_STD_1440x900x76

1280 × 1024

96, 108d, 112

Fast

Separate

No

SUNW_STEREO_1280x1024x96
SUNW_STEREO-DIG_1280x1024x108
SUNW_STEREO_1280x1024x112

1280 × 1024

85

Fast

Separate

No

VESA_STD_1280x1024x85

1280 × 1024

60, 75

Slow

Separate

No

VESA_STD_1280x1024x60
VESA_STD_1280x1024x75

1280 × 1024

67, 76

Slow

Composite

Yes

SUNW_STD_1280x1024x67
SUNW_STD_1280x1024x76

1280 × 800

112

Fast

Separate

No

SUNW_STEREO_1280x800x112

1280 × 800

76

Slow

Composite

Yes

SUNW_STD_1280x800x76

1280 × 768

56

Slow

Separate

No

SUNW_STD_1280x768x56

1152 × 900

120

Fast

Separate

No

SUNW_STEREO_1152x900x120

1152 × 900

66, 76

Slow

Composite

Yes

SUNW_STD_1152x900x66
SUNW_STD_1152x900x76

1024 × 692

100

Slow

Separate

No

SUNW_STEREO_1024x692x100

1024 × 800

84

Slow

Composite

Yes

SUNW_STD_1024x800x84

1024 × 768

96

Slow

Separate

No

SUNW_STEREO_1024x768x96

1024 × 768

77

Slow

Composite

Yes

SUNW_STD_1024x768x77

1024 × 768

60, 70, 75

Slow

Separate

No

VESA_STD_1024x768x60
VESA_STD_1024x768x70
VESA_STD_1024x768x75

960 × 680

108, 112

 

Slow

Composite

No |

SUNW_STEREO_960x680x108
SUNW_STEREO_960x680x112

800 × 600

75

Slow

Separate

No

VESA_STD_800x600x75

768 × 575

50i

Slow

Composite

Yes

SUNW_INT_768x575x50

640 × 480

60fsc

Slow

Composite

No

SUNW_FSC_640x480x60

640 × 480

60, 72, 75

Slow

Separate

No

VESA_STD_640x480x60
VESA_STD_640x480x72
VESA_STD_640x480x75

640 × 480

60i

Slow

Composite

Yes

SUNW_INT_640x480x60

640 × 480

50i

Slow

Separate

No

SUNW_PAL_640x480x50


| Master and slave devices may not display to the same eye simultaneously using genlock alone because the 960 × 680 video formats do not use a feature called "vertical sync elongation" to enable the fields to be distinguished. Using framelock as well as genlock solves this limitation.

Genlock LED Indicator

The genlock LED indicator is located between the 13W3A and stereo connectors. The LED illuminates when the genlock input is present and matches the expected horizontal rate.

 FIGURE 8-3 Sun XVR-4000 Graphics Accelerator Genlock LED

Figure showing Sun XVR-4000 graphics accelerator genlock LED indicator.


Disabling Genlock



Note - You must disable genlock on all slave devices before doing any of the following:
Removing the genlock cables
Ceasing video on the master device (for example, rebooting or halting the master device system if the master device is in a different system than the slave device)
Changing the video format for either the master or slave devices



single-step bulletTo disable genlock (and framelock, if using bothlock) from a device, type:

host% fbconfig -dev zulu1 -stream a -slave disable