Date: Mon, 13 Sep 1999 21:14:39 +0200 (CEST) From: Adam Szilveszter <sziszi@petra.hos.u-szeged.hu> To: Brett Taylor <brett@peloton.runet.edu> Cc: Scott Cotton <scott@chronis.pobox.com>, freebsd-questions@FreeBSD.ORG Subject: Re: allocating colors for a color terminal in X Message-ID: <Pine.LNX.3.96.990913210616.11965A-100000@petra.hos.u-szeged.hu> In-Reply-To: <Pine.BSF.4.10.9909121919200.10047-100000@peloton.runet.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.3.96.990913210616.11965A-100000>