Comment 10 for bug 1374830

Revision history for this message
temporary-username (temporary-name) wrote : Re: [Bug 1374830] Re: Closing laptop lid before system can suspend causes black screen upon login after resume

I can consistently reproduce the bug with the latest xfce4-power-manager.
It is a bit of an edge case, though, and if all of the issues with
logind.conf's settings overriding the xfce power manager's settings are
taken care of, then this bug will no longer be an issue.

On Tue, Jan 20, 2015 at 1:22 PM, Thaddaeus Tintenfisch <<email address hidden>
> wrote:

> Sorry, I have linked the wrong bug report. I was referring to bug
> 1307545 instead.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1374830
>
> Title:
> Closing laptop lid before system can suspend causes black screen upon
> login after resume
>
> Status in xfce4-power-manager package in Ubuntu:
> New
>
> Bug description:
> On a fresh install of Xubuntu 14.04.1, with HandleLidSwitch=ignore set
> in /etc/systemd/logind.conf and the lid switch setting set to
> 'Nothing' in xfce4-power-manager-settings, using the suspend key on
> the keyboard to initiate suspend and then closing the laptop lid
> before the system can fully suspend results in a black screen upon
> logging in when the laptop is resumed. This bug still occurs using
> packages from the staging ppa.
>
> Edit for clarity:
> I believe this is different from bug #1303736 and bug #1259339 because
> it does not occur as a general problem with suspending and it does not
> involve suspension triggered by the closing of the laptop lid. I can
> suspend and resume successfully in every other case, using any other
> method, with no issues. This problem occurs only when the laptop lid switch
> is set to ignore or do "nothing", the whisker menu, a keyboard button, or
> some other method is used to initiate a suspension, and the user closes the
> laptop before the laptop can fully suspend. I do not believe this to be an
> issue with light-locker or another package as the problem is solved by
> simply killing (or uninstalling) xfce4-power-manager and using systemd's
> logind.conf to handle power switches. I believe this problem will become
> more widespread when the fix for bug #1307545 is imeplemented. This may be
> related to the patch which was implemented in order to fix the similar bug
> #1303736 as noted in
> https://bugs.launchpad.net/ubuntu/+source/xubuntu-default-settings/+bug/1303736/comments/178.
> None of the fixes or workarounds mentioned in any of the above bug reports
> work for this bug.
>
> Expected behavior:
> Logging in after resuming from suspend should work exactly as it does
> from a cold boot.
>
> Bug behavior:
> After resuming from suspend mode, logging in results in a black screen.
> This occurs exclusively when shutting the laptop lid, with the lid switch
> set to do nothing, before the system suspends.
>
> Steps to reproduce:
> 1) Set and uncomment HandleLidSwitch=ignore in /etc/systemd/logind.conf
> 2) ensure that lid switch suspension is diabled in
> xfce4-power-manager-settings
> 3) ensure that "lock screen upon suspend" is enabled in light locker
> settings
> 4) Press suspend hotkey on laptop, and quickly close the lid before the
> laptop is able to suspend
> 5) After laptop suspends, open lid to resume
> 6) Move mouse to wake up display, then log in
> 7) Screen goes black and lightdm must be restarted in order to wake it
> up (other workarounds such as 'xset dpms force on -d :0' do not work)
>
> Workaround or "solution":
> Kill or uninstall the xfce4-power-manager package, and use
> /etc/systemd/logind.conf to control lid and power switches. Problem does
> not occur when xfce4-power-manager is not running.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 14.04
> Package: xfce4-power-manager 1.2.0-3ubuntu4.1
> ProcVersionSignature: Ubuntu 3.13.0-36.63-generic 3.13.11.6
> Uname: Linux 3.13.0-36-generic x86_64
> ApportVersion: 2.14.1-0ubuntu3.4
> Architecture: amd64
> CurrentDesktop: XFCE
> Date: Sat Sep 27 14:31:33 2014
> InstallationDate: Installed on 2014-09-19 (7 days ago)
> InstallationMedia: Xubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64
> (20140723)
> SourcePackage: xfce4-power-manager
> UpgradeStatus: No upgrade log present (probably fresh install)
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/xfce4-power-manager/+bug/1374830/+subscriptions
>