def Cec_powerOff(self): global g_AdvHdmi_initalized if config.plugins.cec.sendpower.value and AdvHdiCecDOIT(): print "[AdvHdmiCec] power off" if not g_AdvHdmi_initalized: print "[AdvHdmiCec] Workaround: enable Hdmi-Cec-Source (^=poweron)" hdmi_cec.otp_source_enable() hdmi_cec.ss_standby()
def Cec_powerOff(self): global g_AdvHdmi_initalized if config.cec.sendpower.value and config.plugins.AdvHdmiCec.enable_power_off.value and AdvHdmiCecDOIT(): if callHook(ADVHDMI_BEFORE_POWEROFF): _print("power off") if not g_AdvHdmi_initalized: _print("Workaround: enable Hdmi-Cec-Source (^=poweron)") hdmi_cec.otp_source_enable() hdmi_cec.ss_standby() callHook(ADVHDMI_AFTER_POWEROFF)
def Cec_powerOff(self): if config.plugins.cec.sendpower.value and AdvHdiCecDOIT(): print "[AdvHdmiCec] power off" hdmi_cec.ss_standby()
def powerOff(self): if config.cec.sendpower.value and not self.idle_to_standby: print "[Cec] power off" hdmi_cec.ss_standby()