diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-11-08 14:10:32 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-11-08 14:10:32 +0000 |
| commit | ace3f764c4db999f9e63a904caf14282a7e3626f (patch) | |
| tree | 40c403f7334f12e203ecf793ba35af72f7b258da /lib/python | |
| parent | 1096b055add5f5f5d5a3ba9f004d335d4567f0ca (diff) | |
| download | enigma2-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')
| -rw-r--r-- | lib/python/Components/UsageConfig.py | 4 |
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) |
