Bug 1293664

Summary: Request for pm-suspend-hybrid backport from RHEL 7 to RHEL 6.8
Product: Red Hat Enterprise Linux 6 Reporter: Lenny Szubowicz <lszubowi>
Component: pm-utilsAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED DUPLICATE QA Contact: Desktop QE <desktop-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.8   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-22 16:03:50 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 Lenny Szubowicz 2015-12-22 15:46:12 UTC
Description of problem:

RHEL 6.8 BZ 910715 against the kernel complains that pm-suspend-hybrid does not work in RHEL 6. 

In response to that BZ the kernel support via sysfs /sys/power/disk and /sys/power/state has been added.

However, even with the kernel support in place, the pm-suspend-hybrid command does not notice or utilize this support without a patch to the pm-functions shell script.

The relevant pm-utils patch from rhel-7.x is pm-utils-1.4.1-add-in-kernel-suspend-to-both.patch


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

pm-utils-1.2.5-11


How reproducible:


Steps to Reproduce:
1. pm-suspend-hybrid


Actual results:

Using a test kernel with support for suspend hybrid.

[root@uefi09 ~]# uname -a
Linux uefi09.desklab.eng.bos.redhat.com 2.6.32-593.el6.bz0910715.lss01.x86_64 #1 SMP Mon Dec 21 13:15:36 EST 2015 x86_64 x86_64 x86_64 GNU/Linux

[root@uefi09 ~]# cat /sys/power/disk
[platform] test testproc shutdown reboot suspend 

Attempt to invoke pm-suspend-hybrid does nothing except return an error

[root@uefi09 ~]# pm-suspend-hybrid
[root@uefi09 ~]# echo $?
1

Expected results:

echo "suspend" > /sys/power/disk
echo "disk" > /sys/power/state

Comment 2 Lenny Szubowicz 2015-12-22 16:03:50 UTC
Didn't notice that there was already a prior BZ for exactly this problem.

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