2 <step id="inputselection" nextstep="modeselection" timeout="20" timeoutaction="selectnext">
3 <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." />
4 <displaytext value="Select video input with up/down buttons" />
5 <list type="dynamic" source="listInputChannels" evaluation="inputSelectionMade" onselect="inputSelectionMoved" />
8 self.clearSelectedKeys()
12 <step id="modeselection" nextstep="rateselection" timeout="20" timeoutaction="selectnext">
13 <text value="Video mode selection." />
14 <displaytext value="Select video mode" />
15 <list type="dynamic" source="listModes" evaluation="modeSelectionMade" onselect="modeSelectionMoved" />
17 self.clearSelectedKeys()
19 self.selectKey("DOWN")
20 self["portpic"].hide()
23 <step id="rateselection" nextstep="dvirateintroduction" timeout="20" timeoutaction="selectnext">
25 self.condition = (self.port != "DVI" or self.mode == "PC")
27 <text value="Refresh rate selection." />
28 <displaytext value="Select refresh rate" />
29 <list type="dynamic" source="listRates" evaluation="rateSelectionMade" onselect="rateSelectionMoved" />
31 self.clearSelectedKeys()
33 self.selectKey("DOWN")
36 <step id="dvirateintroduction" nextstep="dvirateselection">
38 self.condition = (self.port == "DVI" and self.mode in ["720p", "1080i"])
40 <text value="We will now test if your TV can also display this resolution at 50hz. If your screen goes black, wait 20 seconds and it will switch back to 60hz.\nPlease press OK to begin." />
41 <displaytext value="Please follow the instructions on the TV" />
43 self.clearSelectedKeys()
45 self.selectKey("DOWN")
46 self.rateSelect("60Hz")
49 <step id="dvirateselection" timeout="20" timeoutaction="changestep" timeoutstep="notworking50Hz">
51 self.condition = (self.port == "DVI" and self.mode in ["720p", "1080i"])
53 <text value="If you can see this page, please press OK." />
54 <displaytext value="" />
56 <listentry caption="50 Hz" step="working50Hz" />
59 self.clearSelectedKeys()
61 self.selectKey("DOWN")
62 self.rateSelect("50Hz")
65 self.rateSelect("60Hz")
68 <step id="notworking50Hz" nextstep="end">
70 self.condition = (self.port == "DVI" and self.mode in ["720p", "1080i"])
72 <text value="No 50 Hz, sorry. :(" />
73 <displaytext value="" />
75 self.clearSelectedKeys()
77 self.selectKey("DOWN")
80 <step id="working50Hz" nextstep="end" timeout="20" timeoutaction="nextstep">
82 self.condition = (self.port == "DVI" and self.mode in ["720p", "1080i"])
84 <text value="Your TV works with 50 Hz. Good!" />
85 <displaytext value="" />
87 self.clearSelectedKeys()
89 self.selectKey("DOWN")
90 self.rateSelect("50Hz")
95 self.hw.saveMode(self.port, self.mode, self.rate)
96 from Components.config import configfile
99 <text value="The input port should be configured now.\nYou can now configure the screen by displaying some test pictures. Do you want to do that now?" />
100 <!--text value="You have successfully finished the video setup. If you want to change the settings later, you can do this in the settings menu."/-->
101 <displaytext value="No picture on TV? Press EXIT and retry." />
102 <list evaluation="showTestCard" onselect="showTestCard">
103 <listentry caption="Yes" step="yes" />
104 <listentry caption="No" step="no" />