diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2008-01-25 01:08:58 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2008-01-25 01:08:58 +0000 |
| commit | 3861923553aad99f8b1a5ce5d81e7d9b035b65bb (patch) | |
| tree | 1ff28c6546f323ebd467c1fee2e96d6a0f7f7ec9 /lib/python/Plugins/SystemPlugins | |
| parent | 4a043c2bc10981a946bd0ad8f955e1510db3fcaa (diff) | |
| download | enigma2-3861923553aad99f8b1a5ce5d81e7d9b035b65bb.tar.gz enigma2-3861923553aad99f8b1a5ce5d81e7d9b035b65bb.zip | |
use special refresh rate selection for DVI ports
Diffstat (limited to 'lib/python/Plugins/SystemPlugins')
| -rw-r--r-- | lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py | 3 | ||||
| -rw-r--r-- | lib/python/Plugins/SystemPlugins/Videomode/videowizard.xml | 41 |
2 files changed, 41 insertions, 3 deletions
diff --git a/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py b/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py index 45ff6f0c..8fffa5a9 100644 --- a/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py +++ b/lib/python/Plugins/SystemPlugins/Videomode/VideoWizard.py @@ -48,7 +48,8 @@ class VideoWizard(Wizard): list = [] for port in self.hw.getPortList(): - list.append((port, port)) + if self.hw.isPortUsed(port): + list.append((port, port)) return list def inputSelectionMade(self, index): diff --git a/lib/python/Plugins/SystemPlugins/Videomode/videowizard.xml b/lib/python/Plugins/SystemPlugins/Videomode/videowizard.xml index b4b9faf4..933d5342 100644 --- a/lib/python/Plugins/SystemPlugins/Videomode/videowizard.xml +++ b/lib/python/Plugins/SystemPlugins/Videomode/videowizard.xml @@ -27,8 +27,11 @@ self["rc"].moveTo(500, 50, 1) self["rc"].startMoving() </code> </step> - <step id="rateselection" nextstep="end" timeout="10" timeoutaction="selectnext"> - <text value="Rate selection." /> + <step id="rateselection" nextstep="dvirateintroduction" timeout="10" timeoutaction="selectnext"> + <condition> +self.condition = (self.port != "DVI") + </condition> + <text value="Refresh rate selection." /> <displaytext value="Select video mode rate" /> <list type="dynamic" source="listRates" evaluation="rateSelectionMade" onselect="rateSelectionMoved" /> <code> @@ -42,6 +45,40 @@ self["rc"].moveTo(500, 50, 1) self["rc"].startMoving() </code> </step> + <step id="dvirateintroduction" nextstep="dvirateselection"> + <condition> +self.condition = (self.port == "DVI") + </condition> + <text value="In the next step, the refresh rates are probed. Your screen can go black while probing.\nPlease press OK to begin." /> + <displaytext value="Please follow the instructions on the TV" /> + <code> +self["arrowdown"].moveTo(557, 232, 1) +self["arrowdown"].startMoving() +self["arrowup"].moveTo(800, 232, 1) +self["arrowup"].startMoving() +self["rc"].moveTo(500, 50, 1) +self["rc"].startMoving() + </code> + </step> + <step id="dvirateselection" nextstep="end" timeout="10" timeoutaction="selectnext"> + <condition> +self.condition = (self.port == "DVI") + </condition> + <text value="The refresh rates are probed right now. If you can see this screen with 50 Hz selected, you should use this as the preferred option for best picture quality." /> + <displaytext value="Select video mode rate" /> + <list evaluation="rateSelectionMade" onselect="rateSelectionMoved"> + <listentry caption="50 Hz" step="50 Hz" /> + <listentry caption="60 Hz" step="60 Hz" /> + </list> + <code> +self["arrowdown"].moveTo(557, 232, 1) +self["arrowdown"].startMoving() +self["arrowup"].moveTo(800, 232, 1) +self["arrowup"].startMoving() +self["rc"].moveTo(500, 50, 1) +self["rc"].startMoving() + </code> + </step> <step id="end"> <text value="The input port should be configured now." /> <displaytext value="No picture on TV? Press EXIT and retry." /> |
