activate language when used in standalone screen
[enigma2.git] / lib / python / Screens / Standby.py
index 2382276..09a87ce 100644 (file)
@@ -1,13 +1,22 @@
 from Screen import Screen
 from Components.ActionMap import ActionMap
 from Screen import Screen
 from Components.ActionMap import ActionMap
+from Components.config import config
 from enigma import *
 
 class Standby(Screen):
        def Power(self):
                print "leave standby"
 from enigma import *
 
 class Standby(Screen):
        def Power(self):
                print "leave standby"
+               #set input to encoder
+               eAVSwitch.getInstance().setInput(0)
                #start last played service
                #start last played service
-               self.infobar.servicelist.zap()
+               #self.infobar.servicelist.zap()
+               self.session.nav.playService(eServiceReference(config.tv.lastservice.value))
+               
+               #unmute adc
                self.leaveMute()
                self.leaveMute()
+               #set brightness of lcd
+               eDBoxLCD.getInstance().setLCDBrightness(config.lcd.bright.value * 20)
+               #kill me
                self.close()
 
        def setMute(self):
                self.close()
 
        def setMute(self):
@@ -32,9 +41,13 @@ class Standby(Screen):
                        "power": self.Power
                })
 
                        "power": self.Power
                })
 
+               #mute adc
                self.setMute()
                self.setMute()
+               #stop actual played dvb-service
                self.session.nav.stopService()
                self.session.nav.stopService()
-               
-               #stop/pause? playing services
-               #switch off avs
-               
\ No newline at end of file
+               #set input to vcr scart
+               eAVSwitch.getInstance().setInput(1)
+               #set lcd brightness to standby value
+               eDBoxLCD.getInstance().setLCDBrightness(config.lcd.standby.value * 20)
+               #clear lcd (servicename)
+               setLCD("                             ")