Bug 799605 - pm-powersave stops working randomly
Summary: pm-powersave stops working randomly
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: pm-utils
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jaroslav Škarvada
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-03 12:28 UTC by Pedro Francisco
Modified: 2012-03-13 18:51 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-13 18:51:08 UTC
Type: ---


Attachments (Terms of Use)
pm-powersave not working (3.52 KB, application/octet-stream)
2012-03-03 12:28 UTC, Pedro Francisco
no flags Details
pm-powersave working (4.85 KB, application/octet-stream)
2012-03-03 12:28 UTC, Pedro Francisco
no flags Details

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!


Note You need to log in before you can comment on or make changes to this bug.