Wake the screen at print start and end (#229)

* Wake the screen at print start and end

* job_status: Wake screen on re-print

Co-authored-by: Jordan <jordan.ruthe@gmail.com>
This commit is contained in:
Alfredo Monclus
2021-08-19 22:07:24 -03:00
committed by GitHub
parent 8bfaf69109
commit 41e917bc41
2 changed files with 9 additions and 0 deletions

View File

@@ -528,6 +528,10 @@ class KlipperScreen(Gtk.Window):
self._menu_go_back()
return True
def wake_screen(self):
# Wake the screen (it will go to standby as configured)
os.system("xset -display :0 dpms force on")
def set_screenblanking_timeout(self, time):
# Disable screen blanking
os.system("xset -display :0 s off")