Bug 909867

Summary: hooks not called with systemd suspend
Product: [Fedora] Fedora Reporter: Miroslav Lichvar <mlichvar>
Component: pm-utilsAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: jskarvad, pknirsch, rhughes
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-11 13:23:45 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:

Description Miroslav Lichvar 2013-02-11 10:51:45 UTC
Description of problem:
It seems some ways of suspending laptop in F18 (suspend button or closing lid) no longer call pm-suspend, but a new systemctl suspend command. This may depend on the used desktop or the power manager. I assume systemd will eventually take over everything and calling pm-suspend will be considered obsolete.

The problem is it doesn't seem to run the pm-utils hooks. I think it would be useful to include systemd services in pm-utils which would run all pm-utils hooks except the one which does the actual suspend or hibernation.

Version-Release number of selected component (if applicable):
pm-utils-1.4.1-22.fc18.x86_64
systemd-197-1.fc18.1.x86_64

How reproducible:
Always.

Steps to Reproduce:
1. add a hook to /etc/pm/sleep.d/
2. systemctl suspend
  
Actual results:
the hook was not run

Expected results:
the hook was run

Additional info:

Comment 1 Jaroslav Škarvada 2013-02-11 13:23:45 UTC

*** This bug has been marked as a duplicate of bug 904221 ***