Bug 906978

Summary: Suspend occurs immediately on resume, must hit power button to resume again
Product: [Fedora] Fedora Reporter: Paul DeStefano <prd-fedora>
Component: xfce4-power-managerAssignee: Christoph Wickert <christoph.wickert>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 18CC: admiller, christoph.wickert, jskarvad, pknirsch, rhughes
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-11 10:21:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
dmesg output after experiencing problem
none
journalctl output none

Description Paul DeStefano 2013-02-02 08:19:30 UTC
Description of problem:

When system is suspended/asleep, resume occurs as expected when opening lid.  However, the desktop flashes briefly and then system suspend initiates immediately and cannot be avoided.  Closing lid and reopening has no effect; the power button must be pushed, which occasionally results in unintended power off.

Version-Release number of selected component (if applicable):
F18

How reproducible:
Has occurred every time since upgrade to F18


Steps to Reproduce:
1. Suspend system
2. Try to resume
3.
  
Actual results:
System must be manually resumed a second time.

Expected results:
System should resume and allow login to existing desktop session.

Additional info:
I see quite a few reports of this against F17, but I never experienced this behavior with F17.

Comment 1 Paul DeStefano 2013-02-02 16:00:14 UTC
*** Bug 906980 has been marked as a duplicate of this bug. ***

Comment 2 Paul DeStefano 2013-02-05 04:41:51 UTC
What was I thinking setting the severity to low!?  This is incredibly aggravating and frustrating!  Please help soon.

Comment 3 Jaroslav Škarvada 2013-02-05 08:28:34 UTC
Please boot the system, reproduce the problem and provide output of dmesg (as attachment). This may be kernel or systemd problem.

Comment 4 Paul DeStefano 2013-02-05 08:56:15 UTC
Created attachment 693283 [details]
dmesg output after experiencing problem

Comment 5 Paul DeStefano 2013-02-05 09:00:27 UTC
Thanks for the help, Jaroskav!  Much appreciated.  Just let me know what you need from me.

BTW, I also notice that when it is trying to resume the first time, I see the desktop flash, not the xscreensaver login screen.  When I hit the power button (twice), and it finally does resume, I don't see this effect; I see only the blank of the screensaver.  Not sure if that helps.

Comment 6 Jaroslav Škarvada 2013-02-05 09:42:17 UTC
The dmesg seems OK. Lids are tricky and sometimes needs workarounds due to bugs in machines firmware/ACPI. Sometimes BIOS upgrade may help. As the lid handling was switched from upower to systemd in f18 I suspect there aren't the previous workarounds implemented. Could you provide output of journalctl?

Comment 7 Paul DeStefano 2013-02-10 05:17:17 UTC
Created attachment 695665 [details]
journalctl output

Okay, thank you for your continued help.  I will pursue a BIOS upgrade, but, in the meantime, here is the log you requested.

Comment 8 Paul DeStefano 2013-02-11 03:12:52 UTC
Awesome.  This symptom only occurs in Xfce desktop, not GNOME or LXDE.

Comment 9 Jaroslav Škarvada 2013-02-11 08:54:06 UTC
(In reply to comment #8)
> Awesome.  This symptom only occurs in Xfce desktop, not GNOME or LXDE.
>
Thanks for info, the journalctl output seems OK. Reassigning to xfce4-power-manager for further investigation.

Comment 10 Christoph Wickert 2013-02-11 10:21:53 UTC
Both systemd and xfce4-power-manager are trying to handle the suspend event - which then results in suspending twice. To prevent that, please edit /etc/systemd/logind.conf, comment out the events you want to ignore and set them to 'ignore' e.g. "HandleLidSwitch=ignore" or "HandlePowerKey=ignore". Or don't use xfce4-power-manager at all.

I'm sorry for the incontinence. Please complain to the systemd developers/maintainers who decided to push this feature F18 without contacting the Xfce or LXDE maintainers (among many others).

Comment 11 Christoph Wickert 2013-02-11 13:34:19 UTC
(In reply to comment #10)
> comment out the events you want to ignore

Sorry, I mean "enable the commented out lines" be removing the # sign.

Comment 12 Paul DeStefano 2013-02-12 06:03:20 UTC
Actually, this is a duplicate of Bug 887459.  Sorry.  Although, that one is still open.