aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python')
-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." />