Comment 36 for bug 1210077

Revision history for this message
Alberto Milone (albertomilone) wrote :

I discussed the issue with Andrea Azzarone and Martin Pitt, and the problem might be related to the signal coming from UPower not being reliable enough. We should really rely upon the PrepareForSleep signal coming from org.freedesktop.login1.Manager.

We should also make sure that PrepareForSleep returns False (as this means that the system has just resumed)

Something like the attached patch only with the "proxy_.Connect" line changed (so as to check that PrepareForSleep returns False) should work.