aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-11-08 14:10:32 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-11-08 14:10:32 +0000
commitace3f764c4db999f9e63a904caf14282a7e3626f (patch)
tree40c403f7334f12e203ecf793ba35af72f7b258da /lib/python/Components
parent1096b055add5f5f5d5a3ba9f004d335d4567f0ca (diff)
downloadenigma2-ace3f764c4db999f9e63a904caf14282a7e3626f.tar.gz
enigma2-ace3f764c4db999f9e63a904caf14282a7e3626f.zip
show shutdown menu on long power button press
the old behavior (immediate shutdown) is choosable in usage config
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/UsageConfig.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/python/Components/UsageConfig.py b/lib/python/Components/UsageConfig.py
index 581e7cea..b3658018 100644
--- a/lib/python/Components/UsageConfig.py
+++ b/lib/python/Components/UsageConfig.py
@@ -34,6 +34,10 @@ def InitUsageConfig():
("intermediate", _("Intermediate")),
("expert", _("Expert")) ])
+ config.usage.on_long_powerpress = ConfigSelection(default = "show_menu", choices = [
+ ("show_menu", _("show shutdown menu")),
+ ("shutdown", _("immediate shutdown")) ] )
+
def setHDDStandby(configElement):
os.system("hdparm -S" + configElement.value + " /dev/ide/host0/bus0/target0/lun0/disc")
config.usage.hdd_standby.addNotifier(setHDDStandby)