Zavai version works, reenable trying ousaged first
authorEnrico Zini <enrico@enricozini.org>
Fri, 2 Oct 2009 15:18:43 +0000 (16:18 +0100)
committerEnrico Zini <enrico@enricozini.org>
Fri, 2 Oct 2009 15:18:43 +0000 (16:18 +0100)
src/app_power.vala

index 11b33c8d69929517d721251ade6c5590eb1e723e..c1e0ec38c27cc303227834a5a3a0ff7fe42a690f 100644 (file)
@@ -87,8 +87,9 @@ public class Power : zavai.Resource, Object
                if (!done)
                {
                        try {
-                               //usage.Suspend();
-                               //done = true;
+                               usage.Suspend();
+                               done = true;
+                               zavai.log.info("Suspend was done with ousaged.");
                        } catch (Error e) {
                                zavai.log.error("Suspending phone with ousaged: " + e.message);
                        }
@@ -121,6 +122,7 @@ public class Power : zavai.Resource, Object
                                zavai.log.error("Cannot tell GSM to resume (but never mind): " + e.message);
                        }
                        done = true;
+                       zavai.log.info("Suspend was done with zavai.");
                }
        }
        public void do_shutdown()