You are not logged in.

#1 2012-06-13 08:15:44

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Little help -again- on power-management in xfce

Hi!
Is there anyone who uses xfce-power-manager + pm-utils + upower to set his power-management through pm-powersave? (without acpid).
If yes, he exists, could he please help me to set mine?
This is a long story, in short, without acpid, i can't have my pm-powersave set my script (in /etc/pm/power.d/ ) in the right way, only after suspend/hibernation.
What happens: after suspend, there is a little script in /usr lib/pm-utils/sleep.d/00powersave that calls pm-powersave. But -i think- upowerd too tries to run its fu...ing powersave command, as defined in /etc/Upower/Upower.conf.
But in that moment (during resume/thaw) seems that upower can't understand what my state is, leaving it on ac (as defined in on_ac_power).
This does not happens everytime, but only sometimes (don't know why).
Anyway, upower -d recognise perfectly my state.
The only way to fix this is to set RunPowersaveCommand=false; but in this case, i must use acpid to handle connecting/disconnecting ac power.
So please, if anyone of you has any sort of ideas, i would appreciate it very much (because i do not want to have acpid and upower doing same thing. I want to use upower. And acpid is deprecated too).
Thanks!

Offline

#2 2012-06-13 18:43:55

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: Little help -again- on power-management in xfce

Ok, sorry if I answer myself, but i do not want to make the first post yet longer.
- What i tried to do: revert RunPowersaveCommand to its default (true). Stopped acpid. Then tried to debug better.
- What i discovered: 1) I killed xfce4-power-manager. 2)I touched an empty file in /etc/pm/sleep.d/00powersave (so /usr/lib/pm-utils/sleep.d/00powersave doesn't call pm-powersave during resume). 3)RunPowersaveCommand=false in /etc/Upower/Upower.conf.
- What Happened: something calls anyway "pm-powersave false" *sometimes* (may be 15% of the times) and this is just fool. I can't believe. What the hell is calling pm-powersave false? I killed every powermanagement software...so?
Please, give me some help if you can...

EDIT: another nice discovery!! doing "echo mem > /sys/power/state ... and same result: after 3-4 suspend, i found my pm-powersave script set on false...and i'm again without xfce4-power-manager, etc etc...
Is this possible?Am i just crazy may be?

Last edited by nierro (2012-06-13 20:20:32)

Offline

#3 2012-06-14 07:30:17

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: Little help -again- on power-management in xfce

Well, only to tell you, may be someone will be good enough and will have 10minutes to spend to reproduce the issue (and may be to vote for the bug), here is the link to my bug report : https://bugs.archlinux.org/task/30283 .
What i discovered more? The cause of the problem is upowerd. Doing the same experiment as above, with no xfce-p-m, no acpid, RunPowersaveCommand=false, and KILLING upowerd, everything works.
I removed my /var/log/pm-powersave and after 10 suspends in a row, nothing creates it (because nothing calls it).
So the problem is upowerd that tries anyway after suspend, to run its powersave commands (even if RunPowersaveCommand=false).
For more informations, please read th bug report!
Thanks

Offline

Board footer

Powered by FluxBB