warn about dpms failures
This commit is contained in:
parent
683b72ab20
commit
34a9151910
@ -587,6 +587,8 @@ class KlipperScreen(Gtk.Window):
|
|||||||
os.system("xset -display :0 +dpms")
|
os.system("xset -display :0 +dpms")
|
||||||
if functions.get_DPMS_state() == functions.DPMS_State.Fail:
|
if functions.get_DPMS_state() == functions.DPMS_State.Fail:
|
||||||
logging.info("DPMS State FAIL")
|
logging.info("DPMS State FAIL")
|
||||||
|
self.show_popup_message("DPMS has failed to load")
|
||||||
|
self._config.set("main", "use_dpms", "False")
|
||||||
else:
|
else:
|
||||||
logging.debug("Using DPMS")
|
logging.debug("Using DPMS")
|
||||||
os.system("xset -display :0 s off")
|
os.system("xset -display :0 s off")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user