Bug 712976

Summary: /usr/lib/pm-utils/bin/pm-pmu don't do anything
Product: [Fedora] Fedora Reporter: marian <bispartacus>
Component: pm-utilsAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: jskarvad, pknirsch, richard
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: 2012-01-26 13:59:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description marian 2011-06-13 19:23:37 UTC
Description of problem:


Version-Release number of selected component (if applicable):
Name        : pm-utils
Arch        : i686
Version     : 1.4.1
Release     : 6.fc15
Size        : 355 k
Repo        : installed
From repo   : koji-override-0
Summary     : Power management utilities and scripts for Fedora
URL         : http://pm-utils.freedesktop.org
License     : GPLv2
Description : The pm-utils package contains utilities and scripts useful for
            : tasks related to power management.



How reproducible:
on terminal run cd /dev/pm directory not found
On terminal as root /usr/lib/pm-utils/bin/pm-pmu --suspend | echo $? have variabile result 0 and 1

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:

Allways 0 and 1 if exist and non exist /dev/pm.On this kernel allways 1
Additional info:

Comment 1 Jaroslav Škarvada 2011-07-07 14:50:36 UTC
What's wrong?

# /usr/lib64/pm-utils/bin/pm-pmu --suspend
# echo $?
1

Comment 2 Jaroslav Škarvada 2012-01-26 13:59:43 UTC
I think the current behaviour is OK. It checks for PMU sleep capability. It returns 0 if supported, 1 otherwise, thus the result of test in comment 1 is OK.

No matter the PMU is not supported by current stock Fedora kernel, the tool is ready for use with custom kernels. The binary is approx. 6 kB on my x86_64 test machine, thus probably not worth to remove it from the package (upstream installs it by default).