Suspend with pm-suspend
authorEnrico Zini <enrico@enricozini.org>
Sun, 29 Nov 2009 17:37:25 +0000 (18:37 +0100)
committerEnrico Zini <enrico@enricozini.org>
Sun, 29 Nov 2009 17:37:25 +0000 (18:37 +0100)
src/app_power.vala

index 4c93581b28d4f1e725ab3c1ac8160b57aebedce3..496a642b5aa0f262031a6719b2e39175c67056c7 100644 (file)
@@ -96,6 +96,8 @@ public class Power : zavai.Resource, Object
                }
                if (!done)
                {
+                       zavai.app.run_script("pm-suspend");
+                       /*
                        // From http://lindi.iki.fi/lindi/openmoko/susp
                        try {
                                gsm_device.Suspend();
@@ -121,6 +123,7 @@ public class Power : zavai.Resource, Object
                        } catch (Error e) {
                                zavai.log.error("Cannot tell GSM to resume (but never mind): " + e.message);
                        }
+                       */
                        done = true;
                        zavai.log.info("Suspend was done with zavai.");
                }