Bug 50293 - pm-powersave script not working properly
Summary: pm-powersave script not working properly
Status: RESOLVED WONTFIX
Alias: None
Product: pm-utils
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high major
Assignee: Richard Hughes
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-23 13:57 UTC by nierro92
Modified: 2018-06-29 19:57 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description nierro92 2012-05-23 13:57:21 UTC
Description: Pm-utils powersave functions seem to not understand properly what is the state of my machine, after suspend / hibernation: it randomly thinks i'm on ac even if i'm on battery.
I'm using xfce 4.10 (but i set power manager up not to touch my config, so i do not use the two options in xfce-power-manager -> battery -> "slow down hard disks" and "prefer energy saving instead of performance".
I only use a pm-powersave script that i created and put in /etc/pm/power.d/.
I noticed that there's an hook in /usr/lib/pm-utils/sleep.d/00powersave, that put my netbook in ac state before suspend/hibernation and then run pm-powersave again, during wake up. But, as i said, it seems to randomly run pm-powersave twice after suspend/hibernation, may be at the same time, and so it understands my state wrong.
Anyway, i tried to do a pm-suspend after moving /usr/lib/pm-utils/00powersave, so it didn't run, and i found out in my pm-powersave.log that something after resume calls pm-powersave false, but obviously as i said before, no other hooks provide something like this.
Tried without xfce4-power-manager too, but it happened anyway.
I wrote "randomly" because i can't debug it better...it seems really random: may be 4 times i have my power management set perfectly after suspend (with only one call to pm-powersave before and one after in pm-powersave.log) but the 5th time something goes wrong.

Additional info:
* package version(s): pm-utils 1.4.1-4, xfce4-power-manager 1.2.0-2 and upower 0.9.16-1

pm-powersave.log and pm-suspend.log after a "wrong" suspend :
http://pastebin.com/s4Md0qqF 
http://pastebin.com/vHZ3wjkj

Steps to reproduce:
Hibernate / suspend some times in a row and then in my pm-powersave.log i'll see 3 calls to pm-powersave, the last call is "false" state, even if i'm on battery.
Comment 1 Adam Jackson 2018-06-29 19:57:18 UTC
pm-utils hasn't been touched in eight years, none of this is likely to get addressed. Closing bugs and disabling the bz product.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.