Bug 799605

Summary: pm-powersave stops working randomly
Product: [Fedora] Fedora Reporter: Pedro Francisco <pedrogfrancisco>
Component: pm-utilsAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: hughsient, jskarvad, pknirsch
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: 2012-03-13 18:51:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
pm-powersave not working
none
pm-powersave working none

Description Pedro Francisco 2012-03-03 12:28:13 UTC
Created attachment 567278 [details]
pm-powersave not working

Description of problem:
pm-powersave true (or false) stop working randomly (as in, no /etc/pm/power.d/my_powersave called)

Version-Release number of selected component (if applicable):
1.4.1-12.fc16

How reproducible:
Most of the times

Steps to Reproduce:
1. pm-powersave true
2. does nothing
  
Actual results:
doesn't call /etc/pm/power.d/my_powersave


Expected results:
should call /etc/pm/power.d/my_powersave


Additional info:
I've been editing pm-functions, pm-powersave and functions. After doing that, I got one time the script worked, followed by much more when it didn't.

I saved the output of PM_DEBUG=true pm-powersave true on text files and will attach them.

DO NOTE: lock_and_load is never called because I removed it; however it still didn't work most of the times.

Anyway, I hope the debug log of one working versus the not working is sufficient for someone more experienced than I am.

Comment 1 Pedro Francisco 2012-03-03 12:28:43 UTC
Created attachment 567279 [details]
pm-powersave working

Comment 2 Pedro Francisco 2012-03-13 18:51:08 UTC
Marking as closed, works for me now.

My scripts belonged to me (normal user) and not to root:root. I suppose pm-powersave not running them is an undocumented security feature (it makes sense, but no warning was given anywhere).

Sorry for the noise!