*BSD News Article 70932


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!news.ecn.uoknor.edu!solace!nntp.uio.no!news.cais.net!news1.erols.com!newsmaster@erols.com
From: Ken Bigelow <kbigelow@www.play-hookey.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: X Resolution
Date: Thu, 13 Jun 1996 14:53:04 -0700
Organization: Erols Internet Services
Lines: 44
Message-ID: <31C08DC0.2EED@www.play-hookey.com>
References: <4pde43$3tb@nntp1.best.com> <31BAE32A.74ED@www.play-hookey.com> <4pk0m9$btn@hops.entertain.com>
NNTP-Posting-Host: kenjb05.play-hookey.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.02 (Win16; I)
To: Darryl Watson <dwatson@abwam.com>

Darryl Watson wrote:
> 
> In article <31BAE32A.74ED@www.play-hookey.com>, Ken Bigelow <kbigelow@www.play-hookey.com> says:
> >
> >Obi-Wan wrote:
> >>
> >> How can you change the resolution and color depth of X?
> >> I would like it to start up 800x600x32K (or at least 256) instead of
> >> the default 640x480x256. I'm using the accelerated S3 server
> >> (Trio64) is there some simple lines I can put in the xinit or in starx
> >> or even the XF86Config?
> >>
> >First, when you run xf86config, you get a chance to set resolution
> >priorities (near the end of the procedure) for each available color
> >depth. X will always try to start with the one you list first.
> >
> >Second, look through XF86Config for the line that sets your initial color
> >depth if 256 is not acceptable. Remember it is set by bit count, not by
> >color count, so -bpp 8 is 256 colors and -bpp 16 is 64k colors.
> >
> >Ken
> 
> Which line sets color depth if 256 is not used?

Oops! Wrong file on my part (I guess I was looking at too many printouts at once 
and got lost -- happens sometimes).

Anyway, there are a couple of ways you can automate a higher color depth if you 
always want it, or you can add the parameter to your startx line if it is to be a 
sometime thing:

	startx -- -bpp 16

However, startx is a shell script, so you can edit it directly to include this 
parameter if you like. Also, startx first checks the user's home directory for the 
files .xinitrc and .xserverrc before looking anywhere else. If you write 
.xserverrc or the default system file /usr/X11R6/lib/X11/xinit/xserverrc to 
include the -bpp 16 option, that will work as well.

I suggest you check the man pages on startx and xinit, and also look at the 
default files generated in the main installation. They're mostly shell scripts, so 
you can follow what they're doing and make your own arrangements.

Ken