Use ousaged only for suspending
[gregoa/zavai.git] / src / app_power.vala
index 4bdf2e63396a3a73dd209b4e94100600ee3a5400..156320e0e02f212bf70e3bc66ae55c29b4f07663 100644 (file)
@@ -424,7 +424,7 @@ public class Backlight: zavai.Service
        {
                if (started) return;
                try {
-                       usage.RequestResource("Display");
+                       //usage.RequestResource("Display");
                        zavai.app.run_script(zavai.config.homedir + "/display lock_on");
                        zavai.log.info("Acquired display");
                        base.start();
@@ -439,7 +439,7 @@ public class Backlight: zavai.Service
        {
                if (!started) return;
                try {
-                       usage.ReleaseResource("Display");
+                       //usage.ReleaseResource("Display");
                        zavai.app.run_script(zavai.config.homedir + "/display defaults");
                        zavai.log.info("Released display");
                        base.stop();