make file extensions case insensitive in mediaplayer and servicefs
[enigma2.git] / lib / python / Screens / Standby.py
index bb38da106ba675c19fd95f8e793eeaa666e250d9..9e3ade454ddf8f5ad15b3bd406588ff2781344ab 100644 (file)
@@ -1,14 +1,23 @@
 from Screen import Screen
 from Components.ActionMap import ActionMap
+from Components.config import config
+from Components.AVSwitch import AVSwitch
 from enigma import *
 
 class Standby(Screen):
        def Power(self):
                print "leave standby"
+               #set input to encoder
+               self.avswitch.setInput("ENCODER")
                #start last played service
-               eAVSwitch.getInstance().setInput(0)
-               self.infobar.servicelist.zap()
+               #self.infobar.servicelist.zap()
+               self.session.nav.playService(eServiceReference(config.tv.lastservice.value))
+               
+               #unmute adc
                self.leaveMute()
+               #set brightness of lcd
+               eDBoxLCD.getInstance().setLCDBrightness(config.lcd.bright.value * 20)
+               #kill me
                self.close()
 
        def setMute(self):
@@ -26,18 +35,19 @@ class Standby(Screen):
        def __init__(self, session, infobar):
                Screen.__init__(self, session)
                self.infobar = infobar
+               self. avswitch = AVSwitch()
                print "enter standby"
 
                self["actions"] = ActionMap( [ "StandbyActions" ],
                {
                        "power": self.Power
-               })
+               }, -1)
 
+               #mute adc
                self.setMute()
+               #stop actual played dvb-service
                self.session.nav.stopService()
-               eAVSwitch.getInstance().setInput(1)
-
-               
-               #stop/pause? playing services
-               #switch off avs
-               
\ No newline at end of file
+               #set input to vcr scart
+               self.avswitch.setInput("SCART")
+               #set lcd brightness to standby value
+               eDBoxLCD.getInstance().setLCDBrightness(config.lcd.standby.value * 20)