Example #1
0
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()
Example #2
0
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)
Example #3
0
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)
Example #4
0
def Cec_powerOff(self):
    if config.plugins.cec.sendpower.value and AdvHdiCecDOIT():
        print "[AdvHdmiCec] power off"
        hdmi_cec.ss_standby()
Example #5
0
def Cec_powerOff(self):
	if config.plugins.cec.sendpower.value and AdvHdiCecDOIT():
		print "[AdvHdmiCec] power off"
		hdmi_cec.ss_standby()
Example #6
0
	def powerOff(self):
		if config.cec.sendpower.value and not self.idle_to_standby:
			print "[Cec] power off"
			hdmi_cec.ss_standby()