1 from Screen import Screen
2 from Components.ActionMap import ActionMap
3 from Components.config import config
4 from Components.AVSwitch import AVSwitch
5 from enigma import eDVBVolumecontrol, eDBoxLCD, eServiceReference
11 self.avswitch.setInput("ENCODER")
12 #start last played service
13 #self.infobar.servicelist.zap()
14 self.session.nav.playService(eServiceReference(config.tv.lastservice.value))
18 #set brightness of lcd
19 eDBoxLCD.getInstance().setLCDBrightness(config.lcd.bright.value * 20)
24 if (eDVBVolumecontrol.getInstance().isMuted()):
26 print "mute already active"
29 eDVBVolumecontrol.getInstance().volumeToggleMute()
32 if self.wasMuted == 0:
33 eDVBVolumecontrol.getInstance().volumeToggleMute()
35 def __init__(self, session, infobar):
36 Screen.__init__(self, session)
37 self.infobar = infobar
38 self. avswitch = AVSwitch()
41 self["actions"] = ActionMap( [ "StandbyActions" ],
48 #stop actual played dvb-service
49 self.session.nav.stopService()
50 #set input to vcr scart
51 self.avswitch.setInput("SCART")
52 #set lcd brightness to standby value
53 eDBoxLCD.getInstance().setLCDBrightness(config.lcd.standby.value * 20)