1 from Screen import Screen
2 from Components.ActionMap import ActionMap
3 from Components.config import config
10 eAVSwitch.getInstance().setInput(0)
11 #start last played service
12 #self.infobar.servicelist.zap()
13 self.session.nav.playService(eServiceReference(config.tv.lastservice.value))
17 #set brightness of lcd
18 eDBoxLCD.getInstance().setLCDBrightness(config.lcd.bright.value * 20)
23 if (eDVBVolumecontrol.getInstance().isMuted()):
25 print "mute already active"
28 eDVBVolumecontrol.getInstance().volumeToggleMute()
31 if self.wasMuted == 0:
32 eDVBVolumecontrol.getInstance().volumeToggleMute()
34 def __init__(self, session, infobar):
35 Screen.__init__(self, session)
36 self.infobar = infobar
39 self["actions"] = ActionMap( [ "StandbyActions" ],
46 #stop actual played dvb-service
47 self.session.nav.stopService()
48 #set input to vcr scart
49 eAVSwitch.getInstance().setInput(1)
50 #set lcd brightness to standby value
51 eDBoxLCD.getInstance().setLCDBrightness(config.lcd.standby.value * 20)
52 #clear lcd (servicename)