Bug 27382 - [RS480] black screen after a few user switches
Summary: [RS480] black screen after a few user switches
Status: RESOLVED WORKSFORME
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: 7.4 (2008.09)
Hardware: x86 (IA32) Linux (All)
: high major
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
: 27505 27821 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-30 16:23 UTC by Bryce Harrington
Modified: 2015-07-07 23:49 UTC (History)
5 users (show)

See Also:
i915 platform:
i915 features:


Attachments
XorgLogOld.txt (53.42 KB, text/plain)
2010-03-30 16:25 UTC, Bryce Harrington
no flags Details
XorgLog.txt (44.57 KB, text/plain)
2010-03-30 16:26 UTC, Bryce Harrington
no flags Details
CurrentDmesg.txt (687 bytes, text/plain)
2010-03-30 16:27 UTC, Bryce Harrington
no flags Details
BootDmesg.txt (37.94 KB, text/plain)
2010-03-30 16:28 UTC, Bryce Harrington
no flags Details
regdump_good.txt (18.90 KB, text/plain)
2010-03-30 16:48 UTC, Bryce Harrington
no flags Details
regdump_bad.txt (18.92 KB, text/plain)
2010-03-30 16:49 UTC, Bryce Harrington
no flags Details
regdump.diff (6.37 KB, text/plain)
2010-03-30 16:49 UTC, Bryce Harrington
no flags Details

Description Bryce Harrington 2010-03-30 16:23:52 UTC
Forwarding this bug from Ubuntu reporter Guillaume Giroux:
http://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-ati/+bug/546578

[Problem]
Screen goes black after switching from primary to secondary user and back several times.  Occurs regardless of whether KMS or compiz are enabled or disabled.

[Original Description]
Up-to-date Lucid with radeon driver. After switching user a few times (usually between 3 and 5 times), the screen goes black with only the mouse cursor visible after entering the user's password. VTs are also completely black. Restarting gdm fixes the issue, and nothing odd appears in XOrg.0.log when the black screen occurs. 

- It also happens with KMS disabled.
- It also happens with compiz disabled for all users.

Another user adds that they see the same issue on an Xpress 200m, and finds the black screen always happens on the return to the primary user, never in the primary->secondary user case.

Architecture: i386
Date: Wed Mar 24 21:43:21 2010
DistroRelease: Ubuntu 10.04
DkmsStatus: Error: [Errno 2] No such file or directory
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
Lsusb:
 Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: Hewlett-Packard HP dx5150 MT(PV753AA)
Package: xorg 1:7.5+3ubuntu1
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-17-generic root=UUID=2f620498-4095-49f2-8ea6-7355f3d696ec ro
ProcEnviron:
 LANG=en_US.utf8
 ProcVersionSignature: Ubuntu 2.6.32-17.26-generic 2.6.32.10+drm33.1
SourcePackage: xorg
Uname: Linux 2.6.32-17-generic i686
dmi.bios.date: 03/08/2007
dmi.bios.vendor: Phoenix Technologies, LTD
dmi.bios.version: 1.19
dmi.board.name: 09AC
dmi.board.vendor: MSI
dmi.chassis.type: 3
dmi.chassis.vendor: Hewlett-Packard
dmi.modalias: dmi:bvnPhoenixTechnologies,LTD:bvr1.19:bd03/08/2007:svnHewlett-Packard:pnHPdx5150MT(PV753AA):pvr:rvnMSI:rn09AC:rvr:cvnHewlett-Packard:ct3:cvr:
dmi.product.name: HP dx5150 MT(PV753AA)
dmi.sys.vendor: Hewlett-Packard
system:
  codename:           lucid
 architecture:       i686
 kernel:             2.6.32-17-generic
Comment 1 Bryce Harrington 2010-03-30 16:25:03 UTC
00:00.0 Host bridge [0600]: ATI Technologies Inc RS480 Host Bridge [1002:5950] (rev 01)
	Subsystem: Hewlett-Packard Company Device [103c:3009]
01:05.0 VGA compatible controller [0300]: ATI Technologies Inc RS480 [Radeon Xpress 200G Series] [1002:5954]
	Subsystem: Hewlett-Packard Company Device [103c:3009]
Comment 2 Bryce Harrington 2010-03-30 16:25:51 UTC
Created attachment 34561 [details]
XorgLogOld.txt
Comment 3 Bryce Harrington 2010-03-30 16:26:04 UTC
Created attachment 34562 [details]
XorgLog.txt
Comment 4 Bryce Harrington 2010-03-30 16:27:44 UTC
Created attachment 34563 [details]
CurrentDmesg.txt
Comment 5 Bryce Harrington 2010-03-30 16:28:02 UTC
Created attachment 34564 [details]
BootDmesg.txt
Comment 6 Bryce Harrington 2010-03-30 16:48:52 UTC
Created attachment 34565 [details]
regdump_good.txt
Comment 7 Bryce Harrington 2010-03-30 16:49:10 UTC
Created attachment 34566 [details]
regdump_bad.txt
Comment 8 Bryce Harrington 2010-03-30 16:49:27 UTC
Created attachment 34567 [details]
regdump.diff
Comment 9 Alex Deucher 2010-03-30 22:46:36 UTC
This kms drm patch may help for the kms case:
http://git.kernel.org/?p=linux/kernel/git/airlied/drm-2.6.git;a=commitdiff;h=d805f50aa1d9eef63fec356b2be557e2da3cd643
Comment 10 Michel Dänzer 2010-03-31 01:39:55 UTC
This might be related to other reports about the CLUT not getting properly restored after VT switching away from the X server while the screensaver is doing its fade-out effect. Does something like

xgamma -gamma 1.0

restore the proper display?
Comment 11 guillaume giroux 2010-03-31 05:04:18 UTC
(In reply to comment #10)
> Does something like
> 
> xgamma -gamma 1.0
> 
> restore the proper display?

Yes it does. 
Comment 12 Rafael Monica 2010-03-31 15:56:55 UTC
(In reply to comment #10)
> This might be related to other reports about the CLUT not getting properly
> restored after VT switching away from the X server while the screensaver is
> doing its fade-out effect. Does something like
> 
> xgamma -gamma 1.0
> 
> restore the proper display?
> 

The binary fglrx driver is also affected by this bug. And also here xgamma -gamma 1.0 saves the day. So does this mean that the problem lies with the X server? And is there anyway distro's can workaround this bug till it's get fixed? 
Comment 13 Michel Dänzer 2010-04-01 01:59:01 UTC
(In reply to comment #12)
> The binary fglrx driver is also affected by this bug. And also here xgamma
> -gamma 1.0 saves the day. So does this mean that the problem lies with the X
> server?

Yes, there have also been reports with the intel driver. Reassigning, this should probably also block the xserver 1.8 blocker bug, if there was one...
Comment 14 Bryce Harrington 2010-04-16 10:20:40 UTC
A workaround we could apply at the distro level would be very helpful.
Comment 15 Alwin Garside 2010-04-16 14:21:45 UTC
*** Bug 27505 has been marked as a duplicate of this bug. ***
Comment 16 Pauli 2010-04-16 21:49:12 UTC
Problem seems to be to be commented out option xf86HandleColormaps.

Bool drmmode_setup_colormap(ScreenPtr pScreen, ScrnInfoPtr pScrn)
{
    xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, RADEON_LOGLEVEL_DEBUG,
                  "Initializing kms color map\n");
    if (!miCreateDefColormap(pScreen))
        return FALSE;
    /* all radeons support 10 bit CLUTs */
    if (!xf86HandleColormaps(pScreen, 256, 10,
                             drmmode_load_palette, NULL,
                             CMAP_PALETTED_TRUECOLOR
#if 0 /* This option messes up text mode! (eich@suse.de) */
                             | CMAP_LOAD_EVEN_IF_OFFSCREEN
#endif
                             | CMAP_RELOAD_ON_MODE_SWITCH))
         return FALSE;
    return TRUE;
}


If I enable the disabled option lut is restored correctly when
switching back from VT.

But there is still problem that lut is not restored when switching
away from xserver. So this is not correct fix to the problem.
Comment 17 Michel Dänzer 2010-04-19 05:09:30 UTC
(In reply to comment #14)
> A workaround we could apply at the distro level would be very helpful.

I doubt finding a workaround in the server would be significantly easier than fixing the problem in the first place.
Comment 18 Michel Dänzer 2010-04-24 08:52:51 UTC
*** Bug 27821 has been marked as a duplicate of this bug. ***
Comment 19 Ernst Sjöstrand 2012-02-27 09:54:46 UTC
I'm pretty sure this is fixed now.
Comment 20 M. Vefa Bicakci 2012-03-04 04:32:29 UTC
Could you let us know whether this is fixed in the 1.12.x branch, or the 1.11.x branch of xserver? (A pointer to the relevant git commit would be nice as well.)

I am currently running Debian Sid with xserver 1.11.3, and the bug is still present. When I change to a virtual terminal from the X server while gnome-screensaver is fading out, the virtual terminal is also faded. (Please see my duplicate Bug 27821 for a detailed explanation of how to reproduce this bug.)
Comment 21 Martin 2012-09-16 08:31:21 UTC
I can confirm this is still a bug running gentoo with  1.12.2
Comment 22 Ernst Sjöstrand 2015-07-07 23:49:38 UTC
I don't think this old bug is an issue anymore.


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.