*BSD News Article 77758


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!lynx.aba.net.au!munnari.OZ.AU!news.mel.connect.com.au!news.mel.aone.net.au!imci4!newsfeed.internetmci.com!howland.erols.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!lerc.nasa.gov!purdue!mozo.cc.purdue.edu!news
From: Benjamin Lewis <blewis@vet.purdue.edu>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: bpp - Setting bit depth from 8 to 16 or higher
Date: 07 Sep 1996 01:32:42 -0500
Organization: Purdue University
Lines: 47
Sender: blewis@ylana.vet.purdue.edu
Message-ID: <8720gej0mt.fsf@ylana.vet.purdue.edu>
References: <323063D1.41C67EA6@killerbee.jsc.nasa.gov>
	<50qbun$s3@bofh.noc.best.net>
NNTP-Posting-Host: vet.vet.purdue.edu
X-Newsreader: Red Gnus v0.27/XEmacs 19.14

>>>>> "Ron" == Ron Echeverri <rone@bofh.noc.best.net> writes:

    Ron> In article <323063D1.41C67EA6@killerbee.jsc.nasa.gov>, John
    Ron> A. Morrison <morrison@killerbee.jsc.nasa.gov> wrote:
    >> Question: How do I change the default bit depth from 8 to 16
    >> (running a 1280 x 1024 display).

    Ron> The way i did it was to remove the SubSections for 8bpp and
    Ron> 32bpp from my /etc/XF86Config file.  I don't know if there's
    Ron> a better way, though.

You can just specify the bit depth on the command line.  Exactly how
to do this depends on how you start X, i.e.:

	X -bpp 16
	startx -- -bpp 16
	xinit -- -bpp 16

The double dashes tell startx and xinit to send the remaining options
to the X server.

If you use xdm, you can alter /usr/X11R6/lib/X11/xdm/Xservers to start
the server the way you like.  Here's a copy of mine:

# $XConsortium: Xserv.ws.cpp,v 1.3 93/09/28 14:30:30 gildea Exp $
#
# Xservers file, workstation prototype
#
# This file should contain an entry to start the server on the
# local display; if you have more than one display (not screen),
# you can add entries to the list (one per line).  If you also
# have some X terminals connected which do not support XDMCP,
# you can add them here as well.  Each X terminal line should
# look like:
#	XTerminalName:0 foreign
#
:0 local /usr/X11R6/bin/X -bpp 16


By changing the command line arguments instead of just removing
sections of the XF86config file, you can easily start the server with
different numbers of bit planes when desired.

-Ben

-- 
Benjamin Lewis - blewis@vet.purdue.edu