From owner-freebsd-questions Mon Sep 13 12:13:15 1999 Delivered-To: freebsd-questions@freebsd.org Received: from sol.cc.u-szeged.hu (sol.cc.u-szeged.hu [160.114.8.24]) by hub.freebsd.org (Postfix) with ESMTP id BB9B715535 for ; Mon, 13 Sep 1999 12:13:06 -0700 (PDT) (envelope-from sziszi@petra.hos.u-szeged.hu) Received: from petra.hos.u-szeged.hu by sol.cc.u-szeged.hu (8.9.1b+Sun/SMI-SVR4) id VAA21482; Mon, 13 Sep 1999 21:13:00 +0200 (MET DST) Received: from sziszi by petra.hos.u-szeged.hu with local-smtp (Exim 2.05 #1 (Debian)) id 11QbYl-00039Y-00; Mon, 13 Sep 1999 21:14:39 +0200 Date: Mon, 13 Sep 1999 21:14:39 +0200 (CEST) From: Adam Szilveszter To: Brett Taylor Cc: Scott Cotton , freebsd-questions@FreeBSD.ORG Subject: Re: allocating colors for a color terminal in X In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 12 Sep 1999, Brett Taylor wrote: > Hi > > On Sun, 12 Sep 1999, Scott Cotton wrote: > > > I've got XFree86 v 3.3.3.1 running on 3.3RC, with GNUstep 0.6 and > > gnome stuff, and I'd like it to always be able to allocate the colors > > necessary for color terminals like color-xterm and what not. I should > > have plenty of resources for it, as my graphics card has 8megs of ram, > > but color terminals which start after doing much of anything with > > color in an xsession report errors allocating colors, and the session > > defaults those colors that it can't allocate to be the background > > color of the terminal, rendering lots of stuff invisible. > > How are you starting X - are you telling it to use 16, 24 or 32 bpp? If > you're not you're getting 8 bpp which is why you're running out of colors. > > It sounds like you're running xdm - either start xdm w/ one of the above > or make sure that DefaultColorDepth is defined in your XF86Config. To > start xdm up w/ more than 8 bpp, modify your Xservers file > (/usr/X11R6/lib/X11/xdm/Xservers) script to look like: > > :0 local /usr/X11R6/bin/X -bpp 32 Hi! I had the same problems and fixed it differently. I edited my /etc/XF86Config file and in 'Section "Screen"' I looked for my particular server (which was SVGA, for that matter.) Then I found the statement 'DefaultColorDepth' which was set to 8 so I quickly set to 24. (My monitor will not tolerate 32 at this resolution...:-( It was this easy. This solution is perhaps better because it is more flexible. Can be different per server, for example. The other way just makes this the default invocation of X for any session. Use whichever you like. The good thing about UNIX is exactly that there is more than one way to do it...:-)) Good luck! Szilveszter Adam JATE University Szeged Hungary To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message