LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-27-2003, 10:50 PM   #1
jd121
Member
 
Registered: Jul 2003
Distribution: FreeBSD 5.1, Debian 3.0, Damn Small 0.4.2
Posts: 46

Rep: Reputation: 15
Mozilla display issue....


I just compiled mozilla on my BSD machine here. It compiled just fine and it does work. But, there is a problem with it. As soon as it is opened up, the colors of my screen change completely. Not just the area occupied by mozilla, but the entire screen includung the kde menu, icons, etc. This really has me stumped. Any ideas?
 
Old 07-27-2003, 11:28 PM   #2
yowwww
Member
 
Registered: Apr 2003
Location: Ontario, Canada
Distribution: Arch Linux
Posts: 533

Rep: Reputation: 30
perhaps somehow everything has adopted the mozilla fonts?

hard to say exactly.

if you change the fonts in mozilla, i wonder if the kde fonts will change
 
Old 07-28-2003, 12:56 PM   #3
Corin
Member
 
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446

Rep: Reputation: 31
What is the color depth in which you are running your X server?

It sounds to me as if you have the old "too few colors available for the colormap" problem.
 
Old 07-29-2003, 10:25 AM   #4
jd121
Member
 
Registered: Jul 2003
Distribution: FreeBSD 5.1, Debian 3.0, Damn Small 0.4.2
Posts: 46

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Corin
What is the color depth in which you are running your X server?

It sounds to me as if you have the old "too few colors available for the colormap" problem.
It is running at the default color depth. The screen resolution is 1024 x 768.

It could quite possibly be a color depth issue. Problem is, I dont know how to change it. Even in the advanced more of xf86cfg, there is no option to change the color depth.
 
Old 07-29-2003, 09:39 PM   #5
Corin
Member
 
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446

Rep: Reputation: 31
BUT what is the default colour depth?


In your X terminal emulation window (xterm, rxvt, konsole, whatever)
type the command

xwininfo

and click the mouse anywhere.

In the output of the command, look for the lines


Depth: [what numeric value lies here?]
Visual Class: TrueColor


In your /etc/X11/XF86Config or /etc/X11/XF86Config-4 file
look for the section

Section "Screen"

and the entry

DefaultColorDepth [what numeric value lies here]


The way to change your DefaultColorDepth is to change the value in
the file above. Usual color depth values in /etc/X11/XF86Config
are 8, 16, and 24. Whether or not the values of 16 and 24 work,
depend on the color depths supported by both your video card and monitor.

In other words, check the documentation for your video card and monitor
to see if you can use the preferrable value of 24. Improper setting of
this value will result in X not starting at all. Furthermore the modelines
will not necessarily work at higher refresh frequencies at higher color depths,
depending on the capabilities of your monitor and video card.

For Debian

xf86cfg - Graphical configuration tool for XFree86 4.0
xf86config - generate an XF86Config file

and do not forget xvidtune for fine tuning afterwards.


P.S. In xf86cfg EXPERT MODE under SCREEN, there is indeed a
text entry area to change the DEFAULT COLOR DEPTH.


Last edited by Corin; 07-29-2003 at 09:48 PM.
 
Old 07-29-2003, 10:24 PM   #6
jd121
Member
 
Registered: Jul 2003
Distribution: FreeBSD 5.1, Debian 3.0, Damn Small 0.4.2
Posts: 46

Original Poster
Rep: Reputation: 15
Running xwininfo tells me the color depth is set at 8. I want to edit the x11 config file, but I can't seem to find it. There are no files in the etc/X11 folder and it is not in /usr/x11r6/etc either. I'm wondering where it could be. lol

This is on my BSD machine btw.
 
Old 07-29-2003, 10:34 PM   #7
jd121
Member
 
Registered: Jul 2003
Distribution: FreeBSD 5.1, Debian 3.0, Damn Small 0.4.2
Posts: 46

Original Poster
Rep: Reputation: 15
Ok....I found the config file is written to /usr/x11r6/lib/x11. Upon editing it, the screeen section looks like this:

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Depth 1
EndSubSection
SubSection "Display"
Depth 4
EndSubSection
SubSection "Display"
Depth 8
EndSubSection
SubSection "Display"
Depth 15
EndSubSection
SubSection "Display"
Depth 16
EndSubSection
SubSection "Display"
Depth 24
EndSubSection
EndSection

Now, I'm unsure how to edit this to force it to a higher color depth.
 
Old 07-29-2003, 11:34 PM   #8
Corin
Member
 
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446

Rep: Reputation: 31
So as we suspected your color depth was only set to 8 which mean you could only see 256 different colors on your screen at any one time.

The line to insert is

DefaultColorDepth 24

after the Monitor line and before the first Subsection "Display" line

And you did check your manual for video card and monitor
that they support a color depth better than 8, viz 24?

How come your XF86Config file is not in /etc/X11/?

Under which OS are you doing this change?
 
Old 07-30-2003, 11:14 AM   #9
jd121
Member
 
Registered: Jul 2003
Distribution: FreeBSD 5.1, Debian 3.0, Damn Small 0.4.2
Posts: 46

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Corin
The line to insert is

DefaultColorDepth 24

after the Monitor line and before the first Subsection "Display" line

And you did check your manual for video card and monitor
that they support a color depth better than 8, viz 24?

How come your XF86Config file is not in /etc/X11/?

Under which OS are you doing this change?
SO I should just delete all the other colordepth entries leaving that one?

I'm sure my monitor and video card will support it.

I have no idea why it is not in that folder. The xf86cfg utilty wrote the configuration to /usr/x11r6/lib/x11 by default.

This machine is running freebsd 5.1 (unstable).
 
Old 07-30-2003, 03:41 PM   #10
Corin
Member
 
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446

Rep: Reputation: 31
No leave the other ColorDepth entries alone -- you will need them if you need to switch ColorDepths in future.

You add a single line

DefaultColorDepth 24

immediately after the Monitor line, as I stated previously.

You will also need to have a section for this ColorDepth with an appropriate mode line.

And it is no good saying I think my monitor will support it.
You must always check.

The most critical section of the XF86Config file is the horizontal and vertical frequency ranges. Specifying too high a maximum value for either of these and then using a modeline at too high a frequency will result in the worst case scenario of your monitor overloading, burning out, and going up in flames!

That is why it is essential to use the values provided for your monitor model (either from the documentation supplied with your monitor) or
from an exact corresponding model supplied value in the xf86config program.

Incidentally, have you operated this monitor and video card under
Windoze, since under the Display section, you get information
about number of colors (corresponding to color depth) and under
the advanced button information about refresh frequencies.

Hope this helps, but please exercise caution when modifying your XF86Config file.

Have you had a look under /usr/share/doc (or wherever BSD keeps its
document files) for the HOWTO folder and the XF86 config HOWTO?
 
Old 07-30-2003, 08:29 PM   #11
jd121
Member
 
Registered: Jul 2003
Distribution: FreeBSD 5.1, Debian 3.0, Damn Small 0.4.2
Posts: 46

Original Poster
Rep: Reputation: 15
I added that line to the config file and restarted x. Everything is working fine now. Thanks for the help
 
Old 07-30-2003, 09:25 PM   #12
Corin
Member
 
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446

Rep: Reputation: 31
Hey, excellent another BSD success story!

Don't forget to try xvidtune to tweak your modelines for getting the best fit of
your display on your monitor.
 
Old 07-30-2003, 10:09 PM   #13
jd121
Member
 
Registered: Jul 2003
Distribution: FreeBSD 5.1, Debian 3.0, Damn Small 0.4.2
Posts: 46

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Corin
Hey, excellent another BSD success story!

Don't forget to try xvidtune to tweak your modelines for getting the best fit of
your display on your monitor.
I spent hours tweaking it with the configuration utility when I first set up x. I ran xvidtune and it seems I already had it set at the best settings. I'm such a perfectionist
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Another Widescreen Display Issue disclog Linux - Newbie 1 07-17-2005 10:02 PM
Display adapter issue nived Linux - Laptop and Netbook 3 01-25-2005 05:22 AM
XFree86 Display Issue zizdodrian Debian 16 07-24-2004 07:15 PM
Having Issue w/ Truetype fonts - Mozilla Issue clove Linux - Software 4 02-18-2004 09:26 AM
Need help: Issue when exporting the display alexesp Linux - General 0 09-17-2001 05:48 AM


All times are GMT -5. The time now is 08:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration