Le mardi 22 juin 2010, à 19:32 -0500, Victor Lowther a écrit : > On Tue, 2010-06-22 at 18:33 -0500, Victor Lowther wrote: > > On Tue, 2010-06-22 at 12:54 +0200, Vincent Untz wrote: > > > Hi, > > > > > > (I'm not subscribed, please cc me if you need input from me :-)) > > > > > > There's a nice deadlock when pm-suspend is called by upowerd:
[...] > > > The results of this is that the calling process is blocked for some time > > > (a dbus timeout), which can result in ugly ghost windows. See > > > https://bugzilla.novell.com/show_bug.cgi?id=615646 for example. > > > > > > Richard is thinking that the pm-powersave part might be better handled > > > by upowerd itself instead of a hook for pm-suspend... > > > > pm-utils is supposed to be lower level than upowerd. Since we no longer > > rely on hal, we should just teach on_ac_power how to get what we need > > straight from sysfs. > > > > It looks pretty strightforward, I will have a patch shortly. > > OK, there is a rewritten on_ac_power in pm-utils git master. Check it > out and see if it works for you. Works great, thanks! Vincent -- Les gens heureux ne sont pas pressés. _______________________________________________ Pm-utils mailing list Pm-utils@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/pm-utils