C H A P T E R  3

Configuring Multiple Frame Buffers

This chapter describes procedures for setting up multiple frame buffers.

Configuring Multiple Frame Buffers Through the Xservers File

To run more than one frame buffer you must modify your Xservers file. The Sun XVR-300 graphics accelerator device name is nfb (for example, nfb0 and nfb1 for two Sun XVR-300 graphics accelerator devices).

procedure icon  To Modify the Xservers File

1. Become superuser and open the /etc/dt/config/Xservers file.

# cd /etc/dt/config
# vi + Xservers

If the /etc/dt/config/Xservers file does not exist, create the /etc/dt/config directory and copy the Xservers file from /usr/dt/config/Xservers to /etc/dt/config.

# mkdir -p /etc/dt/config
# cp /usr/dt/config/Xservers /etc/dt/config
# cd /etc/dt/config
# vi + Xservers

2. Modify the file by adding the device locations for the applicable frame buffers being used. See the following examples:

Enter the Xservers file content in one long line.

Note - Solaris 9 and Solaris 10 Operating Systems use different configuration file paths within the Xservers file:
For the Solaris 9 Operating System, use the /usr/openwin/bin/Xsun configuration file. For the Solaris 10 Operating System and later, use /usr/X11/bin/Xserver.

The following examples are on a Solaris 10 Operating System.

This example shows the Xservers configuration file modified for one
Sun XVR-2500 graphics accelerator (kfb0) and one Sun XVR-300 graphics accelerator (nfb0):

:0 Local local_uid@console root /usr/X11/bin/Xserver :0 -dev /dev/fbs/kfb0 -dev /dev/fbs/nfb0

This example shows how to remove two Sun XVR-2500 graphics accelerators and add one Sun XVR-300 graphics accelerator in the Xservers configuration file.

3. Log out, then log back in.


When the window system is started in Xinerama mode, all windows can be seamlessly moved across screen boundaries, thus creating one large, super high-resolution, virtual display. With Sun OpenGL 1.3 for Solaris, or subsequent compatible releases, this functionality is extended to OpenGL applications. No recompilation is necessary for a legacy application to work with Xinerama mode across multiple screens, even if the application was compiled with an older version of Sun OpenGL for Solaris.

Refer to the proper Xservers(1) man page and Xservers documentation for further information.

procedure icon  To Enable Xinerama

single-step bulletAdd +xinerama to the command line in the /etc/dt/config/Xservers file.

See the following example on a Solaris 10 Operating System.

Note - Ensure that you enter +xinerama after /usr/X11/bin/Xserver in the command line.

For example, as superuser, type:

# cd /etc/dt/config
# vi + Xservers

Enter the Xservers file content in one long line.

:0  Local local_uid@console root /usr/X11/bin/Xserver :0 +xinerama -dev /dev/fbs/nfb0 -dev /dev/fbs/nfb1

To Set Up Two Video Outputs Over One Large Frame Buffer, in Chapter 4, describes an alternative to Xinerama, useful in some cases, where performance might be better.

Restrictions When Using Xinerama