[Pm-utils] upower/pm-utils deadlock when pm-suspend called by upowerd

Victor Lowther victor.lowther at gmail.com
Wed Jun 23 09:46:35 PDT 2010


On Jun 23, 2010, at 4:39 AM, Vincent Untz <vuntz at gnome.org> wrote:

> 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!

Ok, I will push this out for the next 1.4 and 1.3 pm-utils release.

>
> Vincent
>
> -- 
> Les gens heureux ne sont pas pressés.
> _______________________________________________
> Pm-utils mailing list
> Pm-utils at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/pm-utils


More information about the devkit-devel mailing list