fix standby for hardware without scart switch
authorghost <andreas.monzner@multimedia-labs.de>
Fri, 6 Feb 2009 16:59:27 +0000 (17:59 +0100)
committerghost <andreas.monzner@multimedia-labs.de>
Fri, 6 Feb 2009 16:59:27 +0000 (17:59 +0100)
lib/python/Screens/Standby.py

index 4c3a17201a41f02fc774ca91f3c01214908250d5..d09f28afb95a19ae78c2f22f61196e5e36eaadef 100644 (file)
@@ -2,6 +2,7 @@ from Screen import Screen
 from Components.ActionMap import ActionMap
 from Components.config import config
 from Components.AVSwitch import AVSwitch
 from Components.ActionMap import ActionMap
 from Components.config import config
 from Components.AVSwitch import AVSwitch
+from Components.SystemInfo import SystemInfo
 from enigma import eDVBVolumecontrol
 
 inStandby = None
 from enigma import eDVBVolumecontrol
 
 inStandby = None
@@ -49,7 +50,10 @@ class Standby(Screen):
                #stop actual played dvb-service
                self.session.nav.stopService()
                #set input to vcr scart
                #stop actual played dvb-service
                self.session.nav.stopService()
                #set input to vcr scart
-               self.avswitch.setInput("SCART")
+               if SystemInfo["ScartSwitch"]:
+                       self.avswitch.setInput("SCART")
+               else:
+                       self.avswitch.setInput("AUX")
                #set lcd brightness to standby value
                config.lcd.standby.apply()
                self.onShow.append(self.__onShow)
                #set lcd brightness to standby value
                config.lcd.standby.apply()
                self.onShow.append(self.__onShow)