Bug 28494 - Gamma values are messed up in 16 bit mode
Summary: Gamma values are messed up in 16 bit mode
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: 7.4 (2008.09)
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
: 28901 29701 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-06-10 15:30 UTC by Sebastian
Modified: 2010-08-20 08:02 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Sebastian 2010-06-10 15:30:09 UTC
If i specify "DefaultColorDepth 16" in the "Screen" section in xorg.conf, The Image is all greenish and rather dark.

My graphics card is a "Radeon Mobility 9200 (AGP)" with only 32MB of video memory. So I can not use the full 1920x1200 resolution of my Monitor with 24 bit. 16 bit used to work but after an update (I run gentoo linux and have now installed the package xf86-video-ati-6.12.6 and x11-base/xorg-x11-7.4-r1)

After patching "xf86-video-ati-6.12.6/src/radeon_crtc.c" as described in a similar bug report here:
https://bugzilla.redhat.com/show_bug.cgi?id=554967
the problem is solved. 

But maybe somebody wrote this code that now is no longer executed for a purpose?
Comment 1 Alex Deucher 2010-06-10 22:40:55 UTC
The gamma behaviour seems to have changed in the xserver as this code has not been touched in ages and used to work fine with older xservers.
Comment 2 Alex Deucher 2010-06-16 09:32:44 UTC
I've just gone ahead and committed a fix to the ddx:
4651d77211b508cb6b76931807780e317f232220
I'm not sure what changed in the xserver.
Comment 3 t03.anders0n 2010-06-20 01:21:46 UTC
Hi, 

updating from 6.12.5 to 6.12.6 I have the same problem with my graphic card, ATI Technologies Inc Radeon RV100 QY [Radeon 7000/VE].
I changed radeon_crtc.c as proposed but solved only partially the problem.

I have seriuos problem after hibernate and after switching back to X from terminal (es. CTRL+ALT+F1), all is redish end the image has very low quality, I must restart X.
I don't know if relevant, the system is not in KMS.

Bye,
pingoo
Comment 4 Sebastian 2010-06-20 05:33:42 UTC
(In reply to comment #3)
> Hi, 
> 
> updating from 6.12.5 to 6.12.6 I have the same problem with my graphic card,
> ATI Technologies Inc Radeon RV100 QY [Radeon 7000/VE].
> I changed radeon_crtc.c as proposed but solved only partially the problem.
> 
> I have seriuos problem after hibernate and after switching back to X from
> terminal (es. CTRL+ALT+F1), all is redish end the image has very low quality, I
> must restart X.
> I don't know if relevant, the system is not in KMS.
> 
> Bye,
> pingoo

Strange, I use the patched radeon_crtc.c for over week now. Everything works as expected, I do not have any problems swiching to terminal (CTRL+ALT+F1) and back. I never used hibernate, but suspend to ram without problem.

My system:
Radeon Mobility 9200 (AGP)
xorg-server-1.7.6
xf86-video-ati-6.12.6 (patched)

Cheers, 
  Sebastian.
Comment 5 t03.anders0n 2010-06-21 12:48:11 UTC
(In reply to comment #4)
> (In reply to comment #3)
> Strange, I use the patched radeon_crtc.c for over week now. Everything works as
> expected, I do not have any problems swiching to terminal (CTRL+ALT+F1) and
> back. I never used hibernate, but suspend to ram without problem.
> 
> My system:
> Radeon Mobility 9200 (AGP)
> xorg-server-1.7.6
> xf86-video-ati-6.12.6 (patched)
> 
> Cheers, 
>   Sebastian.

You're right, I modified and recompiled the xf86-video-ati and, after, three other packages related and everything is working. Thank you and sorry for posting.

Bye,
pingoo
Comment 6 Alex Deucher 2010-07-05 21:16:46 UTC
*** Bug 28901 has been marked as a duplicate of this bug. ***
Comment 7 Alex Deucher 2010-08-20 07:31:33 UTC
*** Bug 29701 has been marked as a duplicate of this bug. ***
Comment 8 Boyan 2010-08-20 08:02:52 UTC
There is one remaining problem, as I wrote in Bug 29701 which is duplicate of this:

The other problem which it seems for me is related to the gamma is that opengl
programs for example glxgears are with wrong colors too on my HD4200 card and
is not fixed with the commited fix 4651d77211b508cb6b76931807780e317f232220.
The gears are blue/purple and not green/red as it should be.

KDE opengl screensavers have problems too - some of them show:

*** glibc detected *** /usr/bin/keuphoria.kss: malloc(): memory corruption: 0x087f5d90 ***

There must be something different for 16 bit depts, because with 24 bit there is no problem.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.