Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z - Internet FAQ Archives

SGI graphics Frequently Asked Questions (FAQ)
Section - -71- How can I make my X Server use a 12-bit PseudoColor, 12- bit TrueColor or 24-bit TrueColor visual by default?

( Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Cities ]

Top Document: SGI graphics Frequently Asked Questions (FAQ)
Previous Document: -70- After running a few programs, the colors change as the cursor moves. The colors are usually all wrong in other
Next Document: -72- When I try to run UIM/X uxserverd, I get an error message saying, "license file has been modified, cannot
See reader questions & answers on this topic! - Help others by sharing your knowledge
Date: 07 May 1993 00:00:01 EST

  By default, the SGI X Server is configured to use an 8-bit
  PseudoColor visual.  X-based applications can request other visuals
  directly if they are available.  Alternatively, you can change the
  default visual by performing the following steps:

  a) Run "/usr/bin/X11/xdpyinfo" and check that your server is
     capable of using a 12-bit or 24-bit visual.  If it is,
     you will see lines similar to the following:

     visual id, max buffers, depth:    0x28, 0, 12
     visual id, max buffers, depth:    0x29, 0, 12
     visual id, max buffers, depth:    0x2a, 0, 24

     The last number on each line represents the number of bits
     available for that visual.

  b) Log in as root

  c) Edit the file /usr/lib/X11/xdm/Xservers.  By default it
     will contain the string:
       :0 secure /usr/bin/X11/X -bs -c -pseudomap 4sight
     for a 24-bit TrueColor visual change it to:
       :0 secure /usr/bin/X11/X -bs -c -class TrueColor -depth 24
     for a 12-bit PseudoColor visual change it to:
       :0 secure /usr/bin/X11/X -bs -c -class PseudoColor -depth 12

  d) Restart your X server as above.

  Note:  X Server visuals are an advanced topic; before making the
  above changes you should be aware that some 3rd-party and freeware
  applications might not gracefully adapt to an X Server which supplies
  anything but an 8-bit PseudoColor visual by default.

User Contributions:

Comment about this article, ask questions, or add new information about this topic: