Bug 21642

Summary: Display is whitened after screensaver fades in
Product: xorg Reporter: Bob Ham <rah>
Component: Server/DDX/XorgAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: peter.saaf
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Normal screen
none
Whitened screen
none
Xorg log
none
Xorg configuration file
none
xserver fixes
none
Blackened screen none

Description Bob Ham 2009-05-09 07:07:08 UTC
Created attachment 25662 [details]
Normal screen

Before the screensaver kicks in, gnome tries to fade the screen to black.  This causes the screen to whiten with particular bits of text and other on-screen elements having appearing bold in comparison.

Software screenshots of the whitened display show no difference to a normal display, however I've attached photos of the monitor that do show the difference.
Comment 1 Bob Ham 2009-05-09 07:08:20 UTC
Created attachment 25663 [details]
Whitened screen
Comment 2 Alex Deucher 2009-05-09 07:23:35 UTC
please attach your xorg log and config.
Comment 3 Bob Ham 2009-05-09 08:27:15 UTC
Created attachment 25668 [details]
Xorg log
Comment 4 Bob Ham 2009-05-09 08:30:37 UTC
Created attachment 25669 [details]
Xorg configuration file
Comment 5 Michel Dänzer 2009-05-09 08:45:26 UTC
This is not a bug in the driver but a combination of several bugs in xserver Git (the 1.6 releases aren't affected) and in gnome-screensaver (http://bugzilla.gnome.org/show_bug.cgi?id=581995).
Comment 6 Michel Dänzer 2009-05-09 08:48:38 UTC
Created attachment 25671 [details] [review]
xserver fixes

This patch fixes the worst problems in xserver Git with an RandR 1.2 capable driver:

* Properly maintains and returns to clients the VidMode extension gamma value.
* Fixes the calculation of CRTC colour LUT values from this gamma value.
Comment 7 Bob Ham 2009-05-15 15:33:57 UTC
It looks like the patch has been applied to master with commit 2c1190f.  With current master (commit 8609a4e) the problem still exists, but the colours are reversed.  Whereas the screen appeared whitened, it now appears blackened.  I'll attach another photo.
Comment 8 Bob Ham 2009-05-15 15:36:41 UTC
Created attachment 25895 [details]
Blackened screen
Comment 9 Michel Dänzer 2009-05-18 02:16:44 UTC
(In reply to comment #7)
> It looks like the patch has been applied to master with commit 2c1190f.

Indeed, but I forgot to resolve this bug... doing so now.

> With current master (commit 8609a4e) the problem still exists, but the colours
> are reversed.

This is due to the referenced gnome-screensaver bug, which causes it to set the gamma to 0.1. You can restore it with something like

xgamma -gamma 1.0

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.