Пример #1
0
 def Power(self):
     print 'leave standby'
     self.avswitch.setInput('ENCODER')
     self.leaveMute()
     if SystemInfo['Display'] and SystemInfo['LCDMiniTV']:
         setLCDModeMinitTV(config.lcd.modeminitv.getValue())
     PowerTimer.resetTimerWakeup()
     RecordTimer.resetTimerWakeup()
     self.close(True)
Пример #2
0
	def Power(self):
		print "leave standby"
		#set input to encoder
		self.avswitch.setInput("ENCODER")
		#restart last played service
		#unmute adc
		self.leaveMute()
		# set LCDminiTV 
		if SystemInfo["Display"] and SystemInfo["LCDMiniTV"]:
			setLCDModeMinitTV(config.lcd.modeminitv.value)
		#remove wakup files and reset wakup state
		PowerTimer.resetTimerWakeup()
		RecordTimer.resetTimerWakeup()
		#kill me
		self.close(True)
Пример #3
0
 def Power(self):
     print "[Standby] leave standby"
     if (getBrandOEM() in ('fulan')):
         open("/proc/stb/hdmi/output", "w").write("on")
     #set input to encoder
     self.avswitch.setInput("ENCODER")
     #restart last played service
     #unmute adc
     self.leaveMute()
     # set LCDminiTV
     if SystemInfo["Display"] and SystemInfo["LCDMiniTV"]:
         setLCDModeMinitTV(config.lcd.modeminitv.value)
     #remove wakup files and reset wakup state
     PowerTimer.resetTimerWakeup()
     RecordTimer.resetTimerWakeup()
     #kill me
     self.close(True)
Пример #4
0
	def Power(self):
		print "leave standby"
		if (getBrandOEM() in ('fulan')):
			open("/proc/stb/hdmi/output", "w").write("on")
		#set input to encoder
		self.avswitch.setInput("ENCODER")
		#restart last played service
		#unmute adc
		self.leaveMute()
		# set LCDminiTV 
		if SystemInfo["Display"] and SystemInfo["LCDMiniTV"]:
			setLCDModeMinitTV(config.lcd.modeminitv.value)
		#remove wakup files and reset wakup state
		PowerTimer.resetTimerWakeup()
		RecordTimer.resetTimerWakeup()
		#kill me
		self.close(True)
Пример #5
0
	def Power(self):
		print "leave standby"
		#set input to encoder
		self.avswitch.setInput("ENCODER")
		#restart last played service
		#unmute adc
		self.leaveMute()
		# set LCDminiTV 
		if SystemInfo["Display"] and SystemInfo["LCDMiniTV"]:
			setLCDModeMinitTV(config.lcd.modeminitv.value)
		#remove wakup files and reset wakup state
		PowerTimer.resetTimerWakeup()
		RecordTimer.resetTimerWakeup()
		#kill me
		if os.path.exists("/usr/scripts/standby.sh") is True:
			os.system("chmod 755 /usr/scripts/standby.sh")
			os.system("/usr/scripts/standby.sh")
		else:
			print "/usr/scripts/standby.sh not found"
		self.close(True)
Пример #6
0
	def Power(self):
		print "leave standby"
		#set input to encoder
		self.avswitch.setInput("ENCODER")
		#restart last played service
		#unmute adc
		self.leaveMute()
		# set LCDminiTV
		if SystemInfo["Display"] and SystemInfo["LCDMiniTV"]:
			setLCDModeMinitTV(config.lcd.modeminitv.value)
		if (getBrandOEM() in ('fulan','clap') or getBoxType() in ('sf8008')):
			open("/proc/stb/hdmi/output", "w").write("on")
		#remove wakup files and reset wakup state
		PowerTimer.resetTimerWakeup()
		RecordTimer.resetTimerWakeup()
		#kill me
		if os.path.exists("/usr/scripts/standby.sh") is True:
			os.system("chmod 755 /usr/scripts/standby.sh")
			os.system("/usr/scripts/standby.sh")
		else:
			print "/usr/scripts/standby.sh not found"
		self.close(True)