forked from openatv/enigma2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
videowizard.xml
94 lines (90 loc) · 3.23 KB
/
videowizard.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!--suppress XmlUnboundNsPrefix -->
<wizard>
<step id="inputselection" nextstep="modesdetection" timeout="10" timeoutaction="selectnext">
<condition>
self.condition = len(self.listInputChannels()) > 1
if len(self.listInputChannels()) == 1:
self.selection = "HDMI"
self.inputSelectionMoved()
</condition>
<text value="Video input selection\n\nPlease press OK if you can see this page on your TV (or select a different input port).\n\nThe next input port will be automatically probed in 10 seconds." />
<displaytext value="Select video input with up/down buttons" />
<list type="dynamic" source="listInputChannels" evaluation="inputSelectionMade" onselect="inputSelectionMoved" />
<code>
self["portpic"].show()
self.clearSelectedKeys()
self.selectKey("OK")
</code>
</step>
<step id="modesdetection" >
<condition>
self.condition = (self.port == "DVI" or self.port == "HDMI")
</condition>
<text value="Use automatic mode detection.\n This option reads all supported modes from your TV.\n Please disable it only if you want to customize the preferred configuration." />
<displaytext value="Use automatic mode detection.\n This option reads all supported modes from your TV.\n Please disable it only if you want to customize the preferred configuration." />
<list>
<listentry caption="Yes" step="modeauto" />
<listentry caption="No" step="modedefault" />
</list>
<code>
self.clearSelectedKeys()
self.selectKey("UP")
self.selectKey("DOWN")
</code>
</step>
<step id="modedefault" timeoutstep="modeselection" timeout="1" timeoutaction="changestep">
<condition>
self.condition = (self.port == "DVI" or self.port == "HDMI")
</condition>
<text value="Default Modes Selected." />
<displaytext value="Default Modes Selected." />
<code>
config.av.edid_override.setValue(True)
config.av.edid_override.save()
</code>
</step>
<step id="modeauto" timeoutstep="modeselection" timeout="1" timeoutaction="changestep">
<condition>
self.condition = (self.port == "DVI" or self.port == "HDMI")
</condition>
<text value="Auto Modes Selected." />
<displaytext value="Auto Modes Selected." />
<code>
config.av.edid_override.setValue(False)
config.av.edid_override.save()
</code>
</step>
<step id="modeselection" nextstep="rateselection" timeout="10" timeoutaction="selectnext">
<text value="Video mode selection." />
<displaytext value="Select video mode" />
<list type="dynamic" source="listModes" evaluation="modeSelectionMade" onselect="modeSelectionMoved" />
<code>
self.clearSelectedKeys()
self.selectKey("UP")
self.selectKey("DOWN")
self["portpic"].hide()
</code>
</step>
<step id="rateselection" nextstep="end" timeout="10" timeoutaction="selectnext">
<condition>
self.condition = (self.port != "DVI" or self.mode == "PC")
</condition>
<text value="Refresh rate selection." />
<displaytext value="Select refresh rate" />
<list type="dynamic" source="listRates" evaluation="rateSelectionMade" onselect="rateSelectionMoved" />
<code>
self.clearSelectedKeys()
self.selectKey("UP")
self.selectKey("DOWN")
</code>
</step>
<step id="end">
<code>
self.hw.saveMode(self.port, self.mode, self.rate)
from Components.config import configfile
configfile.save()
self.markDone()
self.close()
</code>
</step>
</wizard>