aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2008-03-02 19:58:40 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2008-03-02 19:58:40 +0000
commit981ea0ab0bc77f156ed43f2e028ffbc806f68b54 (patch)
treee47f28a92a546b1f281ca97228024edcc495ca48 /lib/python/Plugins
parent4ea4f33a6a0382249996c4dae4db31ae2e059dbb (diff)
downloadenigma2-981ea0ab0bc77f156ed43f2e028ffbc806f68b54.tar.gz
enigma2-981ea0ab0bc77f156ed43f2e028ffbc806f68b54.zip
store video setup after finishing video wizard
Diffstat (limited to 'lib/python/Plugins')
-rw-r--r--lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py6
-rw-r--r--lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py2
-rw-r--r--lib/python/Plugins/SystemPlugins/Videomode/videowizard.xml3
3 files changed, 11 insertions, 0 deletions
diff --git a/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py b/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py
index 177cbd09..f3e3c07a 100644
--- a/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py
+++ b/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py
@@ -137,6 +137,11 @@ class VideoHardware:
open("/proc/stb/video/aspect", "w").write("any")
open("/proc/stb/video/policy", "w").write("panscan")
+ def saveMode(self, port, mode, rate):
+ config.av.videoport.value = port
+ config.av.videomode[port].value = mode
+ config.av.videorate[mode].value = rate
+
def isPortAvailable(self, port):
# fixme
return True
@@ -194,6 +199,7 @@ class VideoHardware:
rate = config.av.videorate[mode].value
self.setMode(port, mode, rate)
+
config.av.edid_override = ConfigYesNo(default = False)
video_hw = VideoHardware()
diff --git a/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py b/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py
index b4223b5f..0e67fb62 100644
--- a/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py
+++ b/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py
@@ -62,6 +62,7 @@ class VideoWizard(Wizard):
self.port = None
self.mode = None
+ self.rate = None
def createSummary(self):
@@ -135,6 +136,7 @@ class VideoWizard(Wizard):
def rateSelectionMade(self, index):
print "rateSelectionMade:", index
+ self.rate = index
self.rateSelect(index)
def rateSelectionMoved(self):
diff --git a/lib/python/Plugins/SystemPlugins/Videomode/videowizard.xml b/lib/python/Plugins/SystemPlugins/Videomode/videowizard.xml
index 681a6633..cb7d41ed 100644
--- a/lib/python/Plugins/SystemPlugins/Videomode/videowizard.xml
+++ b/lib/python/Plugins/SystemPlugins/Videomode/videowizard.xml
@@ -117,6 +117,9 @@ self.rateSelect("50Hz")
</code>
</step>
<step id="end">
+ <code>
+self.hw.saveMode(self.port, self.mode, self.rate)
+ </code>
<text value="The input port should be configured now.\nYou can now configure the screen by displaying some test pictures. Do you want to do that now?" />
<!--text value="You have successfully finished the video setup. If you want to change the settings later, you can do this in the settings menu."/-->
<displaytext value="No picture on TV? Press EXIT and retry." />