Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.3: X11 and Pseudocolor support UNIX
I went through quite some trouble with X11 on Panther because programs using Pseudocolor were not working as expected or not at all anymore. Now I found out why: Apple has removed the "always there" (Beta 3 release notes) Pseudocolor device from their Xquartz, but they do no mention it anywhere!

Therefore, if you use software that needs Pseudocolor support in parallel to software needing 16 bit color, you can switch and switch and switch and ... A previous hint on xnest may help avoid the switching, but then you will have two displays on your machine and you will have to know which program needs which one.

[robg adds: I'll admit ignorance on this subject, and would appreciate any further clarifications that you all may be able to provide...]
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[4,178 views]  

10.3: X11 and Pseudocolor support | 3 comments | Create New Account
Click here to return to the '10.3: X11 and Pseudocolor support' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: X11 and Pseudocolor support
Authored by: ckniker@txc.com on Feb 19, '04 12:01:59PM

I think I'm confused (but am admittedly not well educated in this area).

How does this get me closer to being able to start up an Xserver that has the ability to display X apps that require the PseudoColor visual class ?

I've looked through the hint you referenced (about Xnest) but it made no mention about PseudoColor. I was able to startup Xnext and display to it but when I do an "xdpyinfo", the PseudoColor visual class is not available.



[ Reply to This | # ]
10.3: X11 and Pseudocolor support
Authored by: The Lorax on Feb 23, '04 06:18:35AM
Well, Xnest won't be able to provide any visual not provided by the
"toplevel" or main server. Remember, Xnest is an X client just like any
other, and can only choose between visuals provided by the X server!

Excerpted from the Xnest manpage:

    -depth int
    This option specifies the default visual depth of the nested server. The
    depth of the default visual of the nested server need not be the same
    as the depth of the default visual of the real server; although, it has to
    be supported by the real server. See xdpyinfo(X1M) manual page for a
    of supported visual depths on the real server before starting Xnest.

But, I can't find any reason not to run two X servers side-by-side,
one of which provides an 8-bit server. So for example, the
following shell script invokes a second X server on display :1:


#!/bin/tcsh
#
# Choose your display number.  Default = 1 (i.e. start X server on display :1)
set displaynum = 1

# Edit path if necessary
if ("`which xinit`" == "") then
   set path = (/usr/X11R6/bin $path)
   rehash
endif

# Start the X server for 8-bit visual
xinit -- :$displaynum -depth 8 &

# Wait until server is up and running
while (! -e /tmp/.X11-unix/X$displaynum)
   sleep 1
end

# Start the Quartz display manager
setenv DISPLAY :$displaynum
sleep 5
quartz-wm &

It will probably need some cleaning up, but it runs an 8-bit X server on
display :1. From my fairly short tests, it doesn't see to interfere at all
with a 24-bit display server regardless of which is started first.
Hope this helps!

[ Reply to This | # ]

10.3: X11 and Pseudocolor support
Authored by: LC on Feb 20, '04 02:26:48PM

Can the built-in display be set to (8-plane) pseudo, and is X or Xquartz obeying the "-cc" option for 8-plane pseudo? Larry.



[ Reply to This | # ]