diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2008-05-12 23:42:28 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2008-05-12 23:42:28 +0000 |
| commit | 2e3af63fd26317787d16f2fd7401bba1e36db574 (patch) | |
| tree | 48c9532c2748af7fbd384a83933c3e680027cc85 /lib/python/Plugins/SystemPlugins/Videomode | |
| parent | a15fb97d2595fd6dedca2f97ca8b875cd789e730 (diff) | |
| download | enigma2-2e3af63fd26317787d16f2fd7401bba1e36db574.tar.gz enigma2-2e3af63fd26317787d16f2fd7401bba1e36db574.zip | |
add DVI-PC mode for PC monitors (defaults to 640x480 which every pc
monitor should support)
Diffstat (limited to 'lib/python/Plugins/SystemPlugins/Videomode')
| -rw-r--r-- | lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py | 3 | ||||
| -rw-r--r-- | lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py | 13 |
2 files changed, 12 insertions, 4 deletions
diff --git a/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py b/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py index 87529af3..43543bb1 100644 --- a/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py +++ b/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py @@ -46,12 +46,13 @@ class VideoHardware: "1366x768" : { 60: "1366x768"}, "1366x768 multi" : { 50: "1366x768", 60: "1366x768_50"}, "1280x768": { 60: "1280x768"}, - "640x480" : { 60: "640x480"} + "640x480" : { 60: "640x480"} } modes["Scart"] = ["PAL", "NTSC", "Multi"] modes["YPbPr"] = ["720p", "1080i"] modes["DVI"] = ["720p", "1080i", "PC"] + modes["DVI-PC"] = ["PC"] widescreen_modes = set(["720p", "1080i"]) diff --git a/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py b/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py index f46b11c2..4043f602 100644 --- a/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py +++ b/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py @@ -103,7 +103,9 @@ 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 = [] @@ -137,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 @@ -164,9 +171,9 @@ class VideoWizard(WizardLanguage): def keyNumberGlobal(self, number): if number in [1,2,3]: if number == 1: - self.hw.saveMode("DVI", "720p", "multi") + self.hw.saveMode("DVI-TV", "720p", "multi") elif number == 2: - self.hw.saveMode("DVI", "1080i", "multi") + self.hw.saveMode("DVI-TV", "1080i", "multi") elif number == 3: self.hw.saveMode("Scart", "Multi", "multi") self.hw.setConfiguredMode() |
