disabled power management, since it prevents also going monitor to sleep

Fri, 24 Aug 2018 10:27:47 +0200

author
mdd
date
Fri, 24 Aug 2018 10:27:47 +0200
changeset 38
700241b53fe7
parent 37
926424f97c8e
child 39
74801c0f2709

disabled power management, since it prevents also going monitor to sleep

printrun-src/printrun/pronsole.py file | annotate | diff | comparison | revisions
--- a/printrun-src/printrun/pronsole.py	Thu Aug 23 12:32:26 2018 +0200
+++ b/printrun-src/printrun/pronsole.py	Fri Aug 24 10:27:47 2018 +0200
@@ -1169,18 +1169,18 @@
                 if output:
                     self.log("Start command output:")
                     self.log(output.rstrip())
-        try:
-            powerset_print_start(reason = "Preventing sleep during print")
-        except:
-            self.logError(_("Failed to set power settings:")
-                          + "\n" + traceback.format_exc())
+        #try:
+        #    powerset_print_start(reason = "Preventing sleep during print")
+        #except:
+        #    self.logError(_("Failed to set power settings:")
+        #                  + "\n" + traceback.format_exc())
 
     def endcb(self):
-        try:
-            powerset_print_stop()
-        except:
-            self.logError(_("Failed to set power settings:")
-                          + "\n" + traceback.format_exc())
+        #try:
+        #    powerset_print_stop()
+        #except:
+        #    self.logError(_("Failed to set power settings:")
+        #                  + "\n" + traceback.format_exc())
         if self.p.queueindex == 0:
             print_duration = int(time.time() - self.starttime + self.extra_print_time)
             self.log(_("Print ended at: %(end_time)s and took %(duration)s") % {"end_time": format_time(time.time()),

mercurial