Re: colormap in X server

1997-12-03 Thread Daniel Martin
On Tue, 2 Dec 1997, Cheng Tang wrote:

 Is there a way to increase colormap in X server? Everytime
 I start netscape, all other program (asclock, gimp, etc) can
 no longer use color. I don't know whether this is
 due to constraints in my setting in X or the hardware.  
 How can I find this out and fix this problem?  Thanks a lot!!
 

I assume you mean how to increase the number of bits per pixel, which
would in fact result in a larger colormap and stop the sudden color-switch
when netscape loads itself up.

X defaults to eight bits per pixel (bpp) - you can change that default,
but first pick a value for bpp that you're comfortable with.  To test
values, switch out of X to a text console and do:
startx -- :1 -bpp n
Where n is one of 8, 15, 16, 24, or 32.  Note that the higher you go in
terms of bpp, the worse your resolution gets.  Test out this X screen
(this screen, by the way, will open on virtual console 8, so you can use
Ctrl-Alt-F8 to switch to it; Ctrl-Alt-F7 gives you your regular X session)

Once you find a value for bpp that you like (I use 16 bpp at 1152x864
quite happily with a mere 2 MB of video memory) add the following line to
/etc/X11/XF86Config, in the Screen section, right after the Driver line
that mentions which X server you're using: 
   DefaultColorDepth   n
where n is the value you picked.  For example, since I use the SVGA
server, a piece of my /etc/X11/XF86Config looks like this:
Section Screen
   Driver  SVGA
   DefaultColorDepth 16
   Device  Primary Card
   Monitor Primary Monitor

Then just restart the X server (If you're using xdm, logging out of your X
session and doing a Ctrl-Alt-BackSpace should do the trick) 



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: colormap in X server

1997-12-03 Thread Raja R Harinath
Cheng Tang [EMAIL PROTECTED] writes:
 Is there a way to increase colormap in X server? Everytime
 I start netscape, all other program (asclock, gimp, etc) can
 no longer use color. I don't know whether this is
 due to constraints in my setting in X or the hardware.  
 How can I find this out and fix this problem?  Thanks a lot!!

Try running X with `-bpp 16' or `-bpp 24'.  (bpp == bits per pixel)
Default bpp is 8.

If you use startx, you should say

startx -bpp 16

(or was it `startx -- -bpp 16')

If you use xdm, change the line in /etc/X11/xdm/Xservers

:0 local /path/to/X
to 
:0 local /path/to/X -bpp 16

- Hari
-- 
Raja R Harinath -- [EMAIL PROTECTED]
When all else fails, read the instructions.  -- Cahn's Axiom
Our policy is, when in doubt, do the right thing.   -- Roy L Ash


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: colormap in X server

1997-12-03 Thread Carey Evans
Cheng Tang [EMAIL PROTECTED] writes:

 Is there a way to increase colormap in X server? Everytime
 I start netscape, all other program (asclock, gimp, etc) can
 no longer use color.

You can change to 16bpp or 24bpp colour in X, *or* if your video card
isn't fast enough, you can run netscape -install so that Netscape
uses its own colours.  This can be a bit ugly at times, though.

-- 
Carey Evans  *  http://home.clear.net.nz/pages/c.evans/  gc

 Trust Ivanova.  Trust yourself.  Anybody else - shoot 'em.


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


colormap in X server

1997-12-02 Thread Cheng Tang
Is there a way to increase colormap in X server? Everytime
I start netscape, all other program (asclock, gimp, etc) can
no longer use color. I don't know whether this is
due to constraints in my setting in X or the hardware.  
How can I find this out and fix this problem?  Thanks a lot!!


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .