Screen partially darkened after suspend and resume in Xubuntu

Bug #1015297 reported by joehill
62
This bug affects 10 people
Affects Status Importance Assigned to Milestone
Xfce4 Power Manager
Invalid
Undecided
Unassigned
xscreensaver
Confirmed
Undecided
Unassigned
xscreensaver (Ubuntu)
Triaged
Undecided
Unassigned

Bug Description

3 days ago after the most recent kernel update, my computer wouldn't start and got stuck on the screen reporting that it couldn't detect the hardware and start X. I reinstalled Ubuntu and the Xubuntu desktop, and somehow I am no longer getting that error, but now whenever I suspend and resume Xubuntu, the whole desktop is darkened as if there's a layer of semi-transparent black over everything. The mouse cursor is still completely white, so I know it's not a monitor brightness issue. If I suspend and resume again, it's twice as dark, as if there are now two semi-transparent black layers over the screen. When I restart or log out and back in again, it's back to normal until I suspend again. It doesn't happen every time I suspend--just most of the time.

I have no idea what package this is actually a problem with. It may have something to do with XFCE. I tried killing and restarting metacity and that didn't help, and neither did killing the screensaver.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: xorg 1:7.6+12ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-25.40-generic-pae 3.2.18
Uname: Linux 3.2.0-25-generic-pae i686
NonfreeKernelModules: fglrx
.tmp.unity.support.test.0:

ApportVersion: 2.0.1-0ubuntu8
Architecture: i386
CompizPlugins: [core,bailer,detection,composite,opengl,compiztoolbox,decor,vpswitch,move,dbus,screenshot,gnomecompat,resize,mousepoll,place,imgpng,grid,session,regex,animation,wall,wobbly,workarounds,expo,ezoom,staticswitcher,fade,scale,unityshell]
CompositorRunning: None
Date: Tue Jun 19 22:06:33 2012
DistUpgraded: Fresh install
DistroCodename: precise
DistroVariant: ubuntu
DkmsStatus:
 fglrx-updates, 8.960, 3.2.0-20-generic-pae, i686: installed
 fglrx-updates, 8.960, 3.2.0-25-generic, i686: installed
 fglrx-updates, 8.960, 3.2.0-25-generic-pae, i686: installed
EcryptfsInUse: Yes
ExtraDebuggingInterest: Yes, if not too technical
GraphicsCard:
 Advanced Micro Devices [AMD] nee ATI RS880M [Mobility Radeon HD 4200 Series] [1002:9712] (prog-if 00 [VGA controller])
   Subsystem: ASUSTeK Computer Inc. Device [1043:1b62]
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta i386 (20120328)
JockeyStatus:
 xorg:fglrx_updates - ATI/AMD proprietary FGLRX graphics driver (post-release updates) (Proprietary, Disabled, Not in use)
 xorg:fglrx - ATI/AMD proprietary FGLRX graphics driver (Proprietary, Disabled, Not in use)
MachineType: ASUSTeK Computer INC. 1215T
ProcEnviron:
 LANGUAGE=en_US:en
 TERM=xterm
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-25-generic-pae root=UUID=e8e8d0e7-09c3-4713-8ca3-476b0fa5e03b ro quiet splash vt.handoff=7
SourcePackage: xorg
Symptom: display
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/27/2010
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 0303
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: 1215T
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: x.xx
dmi.chassis.asset.tag: 0x00000000
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK Computer INC.
dmi.chassis.version: x.x
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr0303:bd08/27/2010:svnASUSTeKComputerINC.:pn1215T:pvrx.x:rvnASUSTeKComputerINC.:rn1215T:rvrx.xx:cvnASUSTeKComputerINC.:ct10:cvrx.x:
dmi.product.name: 1215T
dmi.product.version: x.x
dmi.sys.vendor: ASUSTeK Computer INC.
version.compiz: compiz 1:0.9.7.8-0ubuntu1
version.fglrx-installer: fglrx-installer N/A
version.libdrm2: libdrm2 2.4.32-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 8.0.2-0ubuntu3.1
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 8.0.2-0ubuntu3.1
version.xserver-xorg-core: xserver-xorg-core 2:1.11.4-0ubuntu10.2
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.7.0-0ubuntu1
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.99~git20111219.aacbd629-0ubuntu2
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.17.0-1ubuntu4
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20111201+b5534a1-1build2

Revision history for this message
joehill (joseph-hill) wrote :
Timo Aaltonen (tjaalton)
affects: xorg (Ubuntu) → fglrx-installer (Ubuntu)
bugbot (bugbot)
tags: added: xubuntu
Revision history for this message
joehill (joseph-hill) wrote :

Strangely, I had not enabled the fglrx proprietary driver when this happened (even though for some reason the reported system information says it was installed). I ran jockey after the fact, finding both fglrx and fglrx-updates grayed out and not activated, and I installed the non-updated version (when I try to install the fglrx-updates I get error messages) and continued to have the same problem. Either the fglrx driver was installed when I installed Ubuntu and wasn't reported as installed, or I'm experiencing this bug with both the free and proprietary driver. Only now that I've installed fgrlx, the dark layer over the screen is more like 95% dark, almost completely invisible, rather than 40% or so, even though the mouse cursor is still 100% white.

Revision history for this message
joehill (joseph-hill) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in fglrx-installer (Ubuntu):
status: New → Confirmed
Revision history for this message
Bucky Ball (buckyball) wrote :

Toshiba Satellite Pro L510. ATI Radeon HD 4500/5100 Series. FGLRX enabled (not updates; I also get errors).

I can also confirm this bug, kinda! The description of what happens is exactly the same; a sheet of black across the screen when I come out of suspend (lift laptop lid). The difference for me is that it is totally random, or seems that way. There is no way I can replicate it intentionally.

When this happens I can see enough to close all apps and logout. This gives a bit of a flash as if the screen is kicking into gear again and when I get to the login screen all is back to normal. I login and all is fine. Until the random anomoly eventually occurs again, as it does/will, in a day, a few, a week.

It happens maybe one in ten times when I open the lid. But the problem is the same. Adjusting brightness does nothing to remedy the issue.

Revision history for this message
Joshua (jgh.emc) wrote :

Confirmed on Xubuntu, after latest kernel update.

Resume from suspend leaves the brigthness reduced.
Mouse cursor remains bright.
Log-out/in restores brightness.

Revision history for this message
Joshua (jgh.emc) wrote :

Forgot to mention:

Lenovo T420s, nvidia, 3.2.0-32-generic

Revision history for this message
AG Restringere (ag-restringere-deactivatedaccount) wrote :

Confirming that this affects me also and I'll do some investigating to get to the bottom of it. At first I thought my Dell Vostro 1500 had a faulty monitor and I would just have to deal with it but now I suspect it's the power manager because that controls screen dimming.

Revision history for this message
northrup (northrupthebandgeek) wrote :

Here comes another "me too" message.

I'm experiencing the same bug. Dell Studio 1558 (AMD Radeon HD standalone graphics adapter) with (K/X/L)ubuntu 12.04. I'm currently using proprietary drivers.

This bug had occurred on this machine before (I think in 11.04 or 11.10), but I figured it was a one-time bug. Now it's happening again for no discernible reason. Like others, it's happening when opening the laptop's lid (in my case to resume, though it sounds like it's not limited to resuming). Mouse is still at full brightness. I haven't tried logging off yet (my screen's still dimmed right now); I'm putting that off so I can save all my work.

I don't think the card specifically is the issue (since it's affecting AMD and Nvidia chipsets alike), but I'm going to test things like compositing and what not to see if I can force some kind of workaround.

Revision history for this message
northrup (northrupthebandgeek) wrote :

And amazingly I do have a workaround! Well, for AMD/ATI users at least.

If you have the proprietary AMD drivers installed, open up the Catalyst Control Center and switch over to the "Color" screen. Tweak the "Gamma" setting (make sure "All(locked)" is selected under "Select Color Channel:") and the screen should pop back into full brightness. Hit the reset button for that slider (off to the right-end of it) and it should stick.

I'm not sure if this is applicable to Nvidia users, or users without proprietary drivers. Nvidia users should definitely try this if they have their proprietary drivers and have access to their equivalent of AMD's CCC (don't remember what it's called for Nvidia cards). Non-proprietary driver users should look into installing Redshift (run "sudo apt-get install gtk-redshift") to graphically tweak the gamma settings.

Revision history for this message
northrup (northrupthebandgeek) wrote :

I have a bit more information. Same symptoms, different desktop managers.

I've noticed that this is *not* happening in Unity or KDE. However, it *does* occur with both Xfce (known) and LXDE. Not sure if that helps, but it might help find a common factor.

Revision history for this message
Martin Pitt (pitti) wrote :

> I've noticed that this is *not* happening in Unity or KDE. However, it *does* occur with both Xfce (known) and LXDE.

That indeed sounds related to 2D vs. 3D, but all of these desktops use a different window manager. So the bug could be anywhere between the Mesa and Linux layer.

Alex mentioned that this could be a pm-utils bug. At least the original bug reporter is using fglrx, that should disable all pm-utils quirks. However, to make double sure that it's not that, can you please try the following:

 - Reboot your computer so that we are starting from a clean slate.
 - Open a terminal window.
 - Type "sync" and Enter
 - Type "echo mem | sudo tee /sys/power/state" and Enter; this should trigger a suspend
 - Wake the computer up again.

Do you see the problem now? If so, please do the following:

 - Reboot your computer again.
 - Trigger a suspend by closing the lid or from the menu, etc.
 - Resume
 - Verify that you see the screen corruption now.
 - Attach /var/log/pm-utils.log

Thanks!

Changed in pm-utils:
status: New → Incomplete
Revision history for this message
Nuno Sucena Almeida (slug-debian) wrote :

Running xubuntu 12.10 (xfce 4.10) with nvidia binary driver (304.51). I noticed something similar to this when using the redshift utility. After a suspend, my screen in the morning would retain the gamma correction from the previous night.

Using xrandr manually:

~$ xrandr --query
(...)
DVI-I-1 connected 1680x1050+1680+0 (normal left inverted right x axis y axis) 474mm x 296mm
(...)
DVI-D-0 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 433mm x 271mm
(...)

~$ xrandr --output DVI-I-1 --gamma 1.0:1.0:1.0

doesn't produce any visible results immediatly, but WILL after you switch to another VT and back to X (say alt-F1 then alt-F7).

Using the nvidia-settings utility to set the gamma values shows the same behavior, the settings are only applied after a VT switching.

Revision history for this message
AG Restringere (ag-restringere-deactivatedaccount) wrote :

Very strange bug. I don't get this at all using Unity and it's always bright on that DM. I followed Martins instructions and was unable to reproduce the effect in XFCE 4.10. However when I let the computer go idle by itself and allowed the xfce4-power-manager turn the screen off I noticed slight dimming. I'm attaching the logs from pm-suspend.log and pm-powersave.log because I couldn't find pm-utils.log in the logs folder.

I've also scouted launchpad.net for similar bug reports and am finding some that - on the surface - seem related but I will need to send a list to Martin to confirm if these are in fact related. Some of these relate to the screen losing it's original user defined brightness level and jumping to another while others include the back-light being non-functional and the brightness controls not working...

Revision history for this message
AG Restringere (ag-restringere-deactivatedaccount) wrote :
Revision history for this message
Martin Pitt (pitti) wrote :

The attached pm-suspend.log shows that quirks were not applied because it detected the NVidia binary driver. Can you double-check with /sys/power/state (see comment 12) to double-check?

But anyway, this was reported with the FGLRX and nvidia driver on several systems, so this doesn't seem very hardware specific, and most likely not a bug in pm-utils.

Revision history for this message
AG Restringere (ag-restringere-deactivatedaccount) wrote :

There was a slight gamma shift downwards and I'm attaching the log, it tends to be more severe when the suspend is left to be triggered by inactivity and the system is suspended for an extended period...

Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 1015297] Re: Screen partially darkened after suspend and resume in Xubuntu

AG Restringere [2013-01-02 23:36 -0000]:
> Martin, in your opinion do you think that this bug #921321 is a
> duplicate?

I don't think so. Bug 921321 is a specific bug against the Nouveau
driver, and there is no evidence of it being XFCE specific. This
bug seems XFCE specific and happens with both the proprietary NVidia
and FGLRX drivers (and possibly others).

Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)

Revision history for this message
Thaddaeus Tintenfisch (thad-fisch-deactivatedaccount) wrote :

According to http://ubuntuforums.org/showthread.php?t=2038250 xscreensaver's fading effect might be the cause of the darkened screen.

Revision history for this message
AG Restringere (ag-restringere-deactivatedaccount) wrote :

Just added Xscreensaver to the list of "possible candidates" as per comment #22. Seems interesting because XFCE does indeed use Xscreensaver and possibly the bugs on the duplicates list for older Ubuntu versions prior to 12.04 are due to Xscreensaver being used by default on Ubuntu systems then. This would also possibly explain why the bug affects so many different video drivers and card types.

Changed in pm-utils:
status: Incomplete → Opinion
Changed in xscreensaver:
status: New → Incomplete
Revision history for this message
AG Restringere (ag-restringere-deactivatedaccount) wrote :

According to Xscreensaver documentation if you can reproduce the bug type the following into the Terminal and try to retest the problem...post your log file here...

http://www.jwz.org/xscreensaver/bugs.html

$ xscreensaver-command -exit
$ xscreensaver -verbose -log log.txt

Revision history for this message
Tormod Volden (tormodvolden) wrote :

I believe you can disable the fading out in xscreensaver, please see its settings (run xscreensaver-demo) or the man page and try it out.

Revision history for this message
Karel Lenc (lenckarel) wrote :

Yes, I can confirm this bug (XFCE, Ubuntu 12.04, ATI 4200HD, fglrx non-updates). And it seems that it is a bug in XScreenSaver as according to http://ubuntuforums.org/showthread.php?t=2038250 when dim effect turned off ("Navigate to Settings Manager > Screensaver > Adavnced > Fading and Colormaps and untick Fade to Black when Blanking"), the problem does not seem to occure anymore... I will try to post this bug to XScreenSaver guys with details...

Changed in xfce4-power-manager:
status: New → Invalid
Changed in xubuntu-desktop:
status: New → Confirmed
Changed in xscreensaver:
status: Incomplete → Confirmed
Changed in fglrx-installer (Ubuntu):
status: Confirmed → Opinion
Martin Pitt (pitti)
Changed in fglrx-installer (Ubuntu):
status: Opinion → Invalid
no longer affects: pm-utils
no longer affects: xubuntu-desktop
affects: fglrx-installer (Ubuntu) → xscreensaver (Ubuntu)
Changed in xscreensaver (Ubuntu):
status: Invalid → Triaged
Revision history for this message
dol.dev (doldev) wrote :

This bug started with the update to Xubuntu 18.04. I regularly get a screen where only the password prompt is shown, but the black part of the screensaver is missing, which discloses the full content of the application currently running.
I had also the problem that the screen was black but the password prompt was missing.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.