Check for blanking disabled (#237)

This commit is contained in:
Alfredo Monclus 2021-08-22 18:39:02 -03:00 committed by GitHub
parent 46245bb275
commit 13e163faf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -529,8 +529,11 @@ class KlipperScreen(Gtk.Window):
return True
def wake_screen(self):
self.time = self._config.get_main_config_option('screen_blanking')
# Wake the screen (it will go to standby as configured)
os.system("xset -display :0 dpms force on")
if self.time != "off":
logging.debug("Screen wake up")
os.system("xset -display :0 dpms force on")
def set_screenblanking_timeout(self, time):
# Disable screen blanking