Add config option to startup enigma2 in standby mode
authorLittlesat <littlesat99@yahoo.com>
Mon, 10 Mar 2014 09:45:57 +0000 (10:45 +0100)
committerLittlesat <littlesat99@yahoo.com>
Mon, 10 Mar 2014 09:45:57 +0000 (10:45 +0100)
Navigation.py
data/setup.xml
lib/python/Components/UsageConfig.py

index 9fbdd39..af1e381 100644 (file)
@@ -36,6 +36,8 @@ class Navigation:
                self.__wasTimerWakeup = getFPWasTimerWakeup()
                if self.__wasTimerWakeup:
                        RecordTimer.RecordTimerEntry.setWasInDeepStandby()
+               if config.usage.startup_to_standby.value:
+                       Notifications.AddNotification(Screens.Standby.Standby)  
 
        def wasTimerWakeup(self):
                return self.__wasTimerWakeup
index 6b2c0a1..ec3e77a 100644 (file)
@@ -21,6 +21,7 @@
                <item level="2" text="Descramble http streams" description="When enabled, http streams are descrambled on the server side. The (remote) client receiver does not have to do descrambling.">config.streaming.descramble</item>
                <item level="2" text="Fan operation" description="Configure how the fan should operate" requires="Fan">config.usage.fan</item>
                <item level="2" text="Fan speed" description="Configure the speed of the fan" requires="FanPWM">config.usage.fanspeed</item>
+               <item level="2" text="Startup to Standby" description="Startup the set top box in standby">config.usage.startup_to_standby</item>
        </setup>
        <setup key="userinterface" title="User interface">
                <item level="0" text="Show animation while busy" description="Show busy indicator when the system is busy.">config.usage.show_spinner</item>
index 129b977..3a315bf 100644 (file)
@@ -94,6 +94,8 @@ def InitUsageConfig():
                ("intermediate", _("Intermediate")),
                ("expert", _("Expert")) ])
 
+       config.usage.startup_to_standby = ConfigYesNo(default = False)
+
        config.usage.on_long_powerpress = ConfigSelection(default = "show_menu", choices = [
                ("show_menu", _("Show shutdown menu")),
                ("shutdown", _("Immediate shutdown")),