Example #1
0
	def powerOn(self):
		if config.cec.sendpower.value:
			if self.session.shutdown:
				self.idle_to_standby = True
			else:
				print "[Cec] power on"
				hdmi_cec.otp_source_enable()
Example #2
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 #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):
	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 #5
0
def Cec_powerOn(self):
	global g_AdvHdmi_initalized
	if config.cec.sendpower.value:
		if self.session.shutdown:
			self.idle_to_standby = True
		else:
			if config.plugins.AdvHdmiCec.enable_power_on.value and AdvHdmiCecDOIT():
				g_AdvHdmi_initalized = True
				if callHook(ADVHDMI_BEFORE_POWERON):
					_print("power on")
					hdmi_cec.otp_source_enable()
					callHook(ADVHDMI_AFTER_POWERON)
Example #6
0
def Cec_powerOn(self):
	global g_AdvHdmi_initalized
	if config.cec.sendpower.value:
		if self.session.shutdown:
			self.idle_to_standby = True
		else:
			if config.plugins.AdvHdmiCec.enable_power_on.value and AdvHdmiCecDOIT():
				g_AdvHdmi_initalized = True
				if callHook(ADVHDMI_BEFORE_POWERON):
					_print("power on")
					hdmi_cec.otp_source_enable()
					callHook(ADVHDMI_AFTER_POWERON)
Example #7
0
def Cec_powerOn(self):
    if config.plugins.cec.sendpower.value and AdvHdiCecDOIT():
        print "[AdvHdmiCec] power on"
        hdmi_cec.otp_source_enable()
Example #8
0
def Cec_powerOn(self):
	if config.plugins.cec.sendpower.value and AdvHdiCecDOIT():
		print "[AdvHdmiCec] power on"
		hdmi_cec.otp_source_enable()
Example #9
0
def Cec_powerOn(self):
	global g_AdvHdmi_initalized
	if config.plugins.cec.sendpower.value and AdvHdiCecDOIT():
		g_AdvHdmi_initalized = True
		print "[AdvHdmiCec] power on"
		hdmi_cec.otp_source_enable()