X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/8ad3d72d92a830d66a874ea56128c4a4e7b06ae0..485ab51b143b6308bc96f3c0028534c5961cdfb0:/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py
diff --git a/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py b/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py
index fb8f4016..ae337ef1 100644
--- a/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py
+++ b/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py
@@ -39,15 +39,15 @@ class VideoWizard(WizardLanguage):
-
-
-
+
+
+
-
-
-
-
+
+
+
+
""" % (resolveFilename(SCOPE_PLUGINS, "SystemPlugins/Videomode/Scart.png"))
def __init__(self, session):
@@ -74,7 +74,9 @@ class VideoWizard(WizardLanguage):
return VideoWizardSummary
def markDone(self):
- pass
+ config.misc.videowizardenabled.value = 0
+ config.misc.videowizardenabled.save()
+ configfile.save()
def listInputChannels(self):
list = []
@@ -101,13 +103,15 @@ class VideoWizard(WizardLanguage):
print "inputSelect:", port
modeList = self.hw.getModeList(self.selection)
print "modeList:", modeList
- self.hw.setMode(port = port, mode = modeList[0][0], rate = modeList[0][1][0])
+ self.port = port
+ ratesList = self.listRates(modeList[0][0])
+ self.hw.setMode(port = port, mode = modeList[0][0], rate = ratesList[0][0])
def listModes(self):
list = []
print "modes for port", self.port
for mode in self.hw.getModeList(self.port):
- if mode[0] != "PC":
+ #if mode[0] != "PC":
list.append((mode[0], mode[0]))
print "modeslist:", list
return list
@@ -135,6 +139,11 @@ class VideoWizard(WizardLanguage):
print mode
if mode[0] == querymode:
for rate in mode[1]:
+ if self.port == "DVI-PC":
+ print "rate:", rate
+ if rate == "640x480":
+ list.insert(0, (rate, rate))
+ continue
list.append((rate, rate))
return list