A P P E N D I X  C

Color Depth Options

This appendix provides color depth option information.


Default Color Depth

Use the -depth option to set the default depth (bits per pixel) on the device on the Solaris 9 Operating System. Possible values are 8 or 24.

-depth

For example:


host% fbconfig -dev nfb0a -depth 24

Log out of the current window system session and log back in for the change to take effect. Any depth setting in the Xserver command line takes precedence over what is set using fbconfig. The default is 24.

For the Solaris 10 Operating System, do the following to set or reset the default color depth. To set 8 or 24 as the default color depth, use /usr/sbin/svccfg to reconfigure your Xservers file.


/usr/sbin/svccfg -s x11-server setprop option/default_depth=8
/usr/sbin/svccfg -s x11-server setprop option/default_depth=24

Log out, then log back in.


Setting Color Depth Options

When multiple windows are used in an 8-bit window system, the colors can change as the cursor is moved from window to window. There are two methods for avoiding colormap flash:

The default is 24-bit.

When the Sun XVR-300 x8 graphics accelerator is set to -depth 24, it can only run OpenGL applications with RGBA visual.

When it is set to -depth 8, it can only run OpenGL applications with INDEX visual.


procedure icon  To Use the -depth 24 Option

1. Using the fbconfig command, type:


% fbconfig -dev nfb0 -depth 24

2. Log out, then log back in.



Note - 24-bit depth performance can be slower than 8-bit depth mode.



procedure icon  To Use the -fake8 Option

1. Using the fbconfig command, type:


% fbconfig -dev nfb0 -fake8 enable



Note - 8-bit depth performance is slower in 8+24 (-fake8) mode.


2. Log out, then log back in.