From: Stefan Pluecken Date: Sun, 2 Mar 2008 19:58:40 +0000 (+0000) Subject: store video setup after finishing video wizard X-Git-Tag: 2.6.0~1488 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/981ea0ab0bc77f156ed43f2e028ffbc806f68b54 store video setup after finishing video wizard --- 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") + +self.hw.saveMode(self.port, self.mode, self.rate) +