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:
@@ -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")
|
||||
|
Reference in New Issue
Block a user