Closing laptop lid before system can suspend causes black screen upon login after resume

Bug #1374830 reported by temporary-username
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xfce4-power-manager (Ubuntu)
Expired
Undecided
Unassigned

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)

Revision history for this message
temporary-username (temporary-name) wrote :
description: updated
description: updated
description: updated
description: updated
description: updated
description: updated
description: updated
description: updated
description: updated
description: updated
description: updated
Revision history for this message
Simon Steinbeiß (ochosi) wrote :

Hey, thanks for the bugreport and the detailed information, but don't set HandleLidSwitch=ignore in logind.conf, because the black screen bug's fix works with leaving things to logind.

So basically you've reproduced here that xfce4-power-manager's method of suspending plus locking the session doesn't work well with light-locker (or more concretely: VT switching), which we also established before patching 14.04.1.

Revision history for this message
temporary-username (temporary-name) wrote :

What do you mean when you say that the bugfix works with leaving things to logind? My experience is the exact opposite; If I don't set HandleLidSwitch=ignore, then the settings in xfce4-power-manager-settings are simply ignored, and the computer always suspends when closing the lid--which is not what I want it to do. Moreover, there is a very large delay to the suspension process when xfce4-power-manager is running and my fn+f4 (suspend) key is used to put the system to sleep. Locking the session using light-locker with xfce4-power-manager disabled works as expected, with no issues whatsoever. The only way I can get the system to behave as expected--and as it does in every other distro, including other flavors of Ubuntu--is to disable xfce4-power-manager and set HandleLidSwitch=ignore in logind.conf.

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

Are you able to trigger this bug if you disable light-locker or replace it with another screen locker?

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
Download full text (4.2 KiB)

The bug doesn't seem to have anything to do with the screen
locker--this is a problem with xfce4-power-manager.

On Tue, Jan 13, 2015 at 5:47 AM, Thaddaeus Tintenfisch
<email address hidden> wrote:
> Are you able to trigger this bug if you disable light-locker or
> replace
> it with another screen locker?
>
> --
> 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 blac...

Read more...

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

Did you test it without screen locking? It is possible that light-locker interferes in some way and triggers the bug.

Revision history for this message
temporary-username (temporary-name) wrote :
Download full text (4.5 KiB)

I did test the scenario with and without a variety of lockers and I
concluded that the bug is with xfce4-power-manager and not light-locker
or any other locking program. The issue only happens in the very
specific scenario with xfce4-power-manager, regardless of any other
configuration as far as I can tell (and I did test a lot), and simply
disabling xfce4-power-manager fixes it.

On Wed, Jan 14, 2015 at 5:45 PM, Thaddaeus Tintenfisch
<email address hidden> wrote:
> Did you test it without screen locking? It is possible that
> light-locker
> interferes in some way and triggers the bug.
>
> --
> 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 s...

Read more...

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

Would it be possible for you to test a newer Xubuntu release (ideally the current development release)? Boot into live mode and see if you can reproduce the problem.

You should also take a look at bug 1303736. There has been some recent activity which may help to resolve the underlying issues.

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

Sorry, I have linked the wrong bug report. I was referring to bug 1307545 instead.

Revision history for this message
temporary-username (temporary-name) wrote :
Download full text (4.3 KiB)

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...

Read more...

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

Bug 1307545 should be fixed in Xubuntu 15.04 now. I think that we can mark this report as duplicate and see if the fix can be backported to previous releases.

Revision history for this message
temporary-username (temporary-name) wrote :

This is not a duplicate bug report. The bug described in #1374830 occurs regardless of any of the elements discussed in #1307545. This bug remains unfixed.

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

Just to make sure. Did you test Xubuntu 15.04? Is the problem still not fixed?

Changed in xfce4-power-manager (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for xfce4-power-manager (Ubuntu) because there has been no activity for 60 days.]

Changed in xfce4-power-manager (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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