screen: some models need blanking for dpms to work properly

This commit is contained in:
alfrix 2022-08-17 07:34:27 -03:00 committed by Alfredo Monclus
parent 4124a67450
commit 836e4a3aea

View File

@ -671,7 +671,7 @@ class KlipperScreen(Gtk.Window):
self.set_screenblanking_timeout(self._config.get_main_config().get('screen_blanking'))
def set_screenblanking_timeout(self, time):
os.system("xset -display :0 s noblank")
os.system("xset -display :0 s blank")
os.system("xset -display :0 s off")
self.use_dpms = self._config.get_main_config().getboolean("use_dpms", fallback=True)