LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 07-22-2005, 07:07 PM   #1
Lord Estraven
Member
 
Registered: Aug 2004
Distribution: Pardus
Posts: 53

Rep: Reputation: 15
Angry 16-bit color turns gray into pink!


Okay, here's a bizarre problem for you: 16-bit color causes certain shades of gray to become pink, and certain shades of blue to go purple.

Yeah, I know... 16-bit mode has fewer colors than 24-bit, so it's normal for some to be off, right?

Wrong. All colors display fine in 15-bit mode, and even with 8-bit color, gray is gray and blue is blue. But with 16-bit color, dark blue parts of phpBB forums become purple, and gray ones go lavender. Certain shades of gray in my GTK theme (Clearlooks-Bright) are also tinted red, and buttons on websites (normally off-white) become pale pink.

I've already confirmed that this is not a monitor problem.

Here's my xorg.conf:

Code:
# Auto-generated by Archie mkxcfg
# Auto-generated by Archie mkxcfg

Section "ServerLayout"

# Serial Mouse not detected
# USB Mouse not detected
	Identifier     "XFree86 Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Keyboard0" "CoreKeyboard"
	InputDevice    "PS/2 Mouse" "CorePointer"
EndSection

Section "Files"

# Additional fonts: Locale, Gimp, TTF...
#	FontPath     "/usr/X11R6/lib/X11/fonts/latin2/75dpi"
#	FontPath     "/usr/X11R6/lib/X11/fonts/latin2/100dpi"
# True type and type1 fonts are also handled via xftlib, see /etc/X11/XftConfig!
	RgbPath      "/usr/X11R6/lib/X11/rgb"
	ModulePath   "/usr/X11R6/lib/modules"
	FontPath     "/usr/X11R6/lib/X11/fonts/misc:unscaled"
	FontPath     "/usr/X11R6/lib/X11/fonts/misc"
	FontPath     "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
	FontPath     "/usr/X11R6/lib/X11/fonts/75dpi"
	FontPath     "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
	FontPath     "/usr/X11R6/lib/X11/fonts/100dpi"
	FontPath     "/usr/X11R6/lib/X11/fonts/PEX"
	FontPath     "/usr/X11R6/lib/X11/fonts/cyrillic"
	FontPath     "/usr/X11R6/lib/X11/fonts/Type1"
	FontPath     "/usr/share/fonts/ttf/western"
	FontPath     "/usr/share/fonts/ttf/decoratives"
	FontPath     "/usr/share/fonts/truetype"
	FontPath     "/usr/share/fonts/truetype/openoffice"
	FontPath     "/usr/share/fonts/truetype/ttf-bitstream-vera"
	FontPath     "/usr/share/fonts/latex-ttf-fonts"
	FontPath     "/usr/X11R6/lib/X11/fonts/defoma/CID"
	FontPath     "/usr/X11R6/lib/X11/fonts/defoma/TrueType"
	FontPath     "/usr/X11R6/lib/X11/fonts/artwiz-fonts"
EndSection

Section "Module"
        Load  "ddc"  # ddc probing of monitor
        Load  "GLcore"
        Load  "dbe"
        Load  "dri"
        Load  "extmod"
        Load  "glx"
        Load  "bitmap" # bitmap-fonts
        Load  "type1"
        Load  "freetype"
        Load  "record"
EndSection

Section "ServerFlags"
	Option	    "AllowMouseOpenFail" "true"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "keyboard"
	Option	    "CoreKeyboard"
	Option	    "XkbRules" "xfree86"
	Option	    "XkbModel" "pc101"
	Option	    "XkbLayout" "us"
	Option	    "XkbVariant" "nodeadkeys"
EndSection

Section "InputDevice"
	Identifier  "PS/2 Mouse"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "ZAxisMapping" "4 5"
	Option	    "Device" "/dev/psaux"
	Option	    "Emulate3Buttons" "true"
	Option	    "Emulate3Timeout" "70"
	Option	    "SendCoreEvents" "true"
EndSection

Section "Monitor"

 # Warning: This may fry old Monitors
 # Very conservative. May flicker.
#	VertRefresh  50.0 - 62.0 # Extreme conservative. Will flicker. TFT default.
	#  Default modes distilled from
	#      "VESA and Industry Standards and Guide for Computer Display Monitor
	#       Timing", version 1.0, revision 0.8, adopted September 17, 1998.
	#  $XFree86: xc/programs/Xserver/hw/xfree86/etc/vesamodes,v 1.4 1999/11/18 16:52:17 tsi Exp $
	# 640x350 @ 85Hz (VESA) hsync: 37.9kHz
 ### Uncomment if you don't want to default to DDC:
	Identifier   "Monitor0"
 ### Uncomment if you don't want to default to DDC:
	HorizSync    31.5 - 90.0
	VertRefresh  50.0 - 100.0
	Option	    "DPMS" "true"
        Modeline "1280x1024"  138.54  1280 1368 1504 1728  1024 1025 1028 1069 -HSync +Vsync
#	HorizSync    28.0 - 78.0 # Warning: This may fry very old Monitors
EndSection

Section "Device"
	Identifier  "Card0"
	Driver      "savage"
	BoardName   "ProSavage"
        Option      "HWCursor" "True"
	Option	    "UseBIOS" "0"
        Option      "BCIforXv" "True"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	DefaultDepth     24
	SubSection "Display"
                Option "IgnoreEDID" "false"
		Depth     24
		Modes    "1280x1024"
	EndSubSection
EndSection

Section "DRI"
	Mode         0666
EndSection

Section "Extensions"
	Option	    "Composite" "Enable"
EndSection
As you can see, I have a ProSavage video chip - specifically, P4M266 - and DRI installed and enabled with no problems. When I change DefaultDepth and Depth to 16 (since that gives me better performace with OpenGL stuff), colors are affected as I described.

Is there any way to solve this, or will I just have to live with it?
 
Old 07-23-2005, 04:45 PM   #2
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
It is normal that grey becomes pink or some grey pixels becomes pink while dark blue becomes purple. It is trying to match the color code that is close to resolution color code.

If you use the 40 web colors, you will be fine from 8-bit (256 color) to 24-bit (16.7 million color).

It happens on my 12 year old computer and my latest computer.
 
Old 07-25-2005, 02:42 PM   #3
Lord Estraven
Member
 
Registered: Aug 2004
Distribution: Pardus
Posts: 53

Original Poster
Rep: Reputation: 15
40 web colors? What?
 
Old 07-25-2005, 05:06 PM   #4
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Go to http://www.allfreebackgrounds.com/color_3.html

You can also use kcolorchooser to pick from 40 web colors.
 
Old 08-04-2005, 11:07 AM   #5
clemare
LQ Newbie
 
Registered: Aug 2005
Location: Santiago de Chile
Posts: 1

Rep: Reputation: 0
do you fix the problem?

Hi!

I have the same problem than you, but using YDL 3.x on my old PowerMac 4400. The video card is an ATI (Don't know the model) with 2MB RAM. I am using X in 1024*768 with 256 colors, but I would like to use 16 bit colors. In my case 15 bits don't work either.

Do you found the way to fix the problem with the colors? How?

Thanks.

clemare
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
32 Bit Color den15 Linux - Hardware 2 10-19-2005 10:06 PM
GIMP - 16 bit/color (48 bit/pixel) Maxxum9 Linux - Software 1 01-03-2005 08:43 PM
change color of XOrg gray screen toffi22 Linux - Software 2 12-04-2004 05:20 AM
How do i change from 8-bit color to 24-bit DropSig Linux - Newbie 2 04-24-2004 05:36 AM
3d with 15 bit color gonus Linux - Hardware 0 02-28-2003 04:15 PM


All times are GMT -5. The time now is 03:48 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration