+ open("/proc/stb/denc/0/wss", "w").write(wss)
+ self.updateSlowblank()
+ self.updateFastblank()
+
+ def updateSlowblank(self):
+ if self.standby:
+ from Components.SystemInfo import SystemInfo
+ if SystemInfo["ScartSwitch"]:
+ input = "scart"
+ sb = "vcr"
+ else:
+ input = "off"
+ sb = "0"
+ else:
+ input = "encoder"
+ sb = "auto"
+
+ open("/proc/stb/avs/0/sb", "w").write(sb)
+ open("/proc/stb/avs/0/input", "w").write(input)
+
+ def updateStandby(self):
+ self.updateSlowblank()
+ self.updateFastblank()
+
+ def updateFastblank(self, *args):
+ if self.standby:
+ from Components.SystemInfo import SystemInfo
+ if SystemInfo["ScartSwitch"]:
+ fb = "vcr"
+ else:
+ fb = "low"
+ else:
+ if self.current_port == "Scart" and config.av.colorformat.value == "rgb":
+ fb = "high"
+ else:
+ fb = "low"
+ open("/proc/stb/avs/0/fb", "w").write(fb)