aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2008-04-10 20:11:06 +0000
committerFelix Domke <tmbinc@elitedvb.net>2008-04-10 20:11:06 +0000
commit3a774aaf137dab965c4cda13c0a59ccf53dbcb72 (patch)
tree9356d8f455472587cfbc36d6d203ce7894f426df /lib/python
parent8ad3d72d92a830d66a874ea56128c4a4e7b06ae0 (diff)
downloadenigma2-3a774aaf137dab965c4cda13c0a59ccf53dbcb72.tar.gz
enigma2-3a774aaf137dab965c4cda13c0a59ccf53dbcb72.zip
set fastblank correctly
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py25
1 files changed, 21 insertions, 4 deletions
diff --git a/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py b/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py
index 893fa5f6..d20bc630 100644
--- a/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py
+++ b/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py
@@ -85,6 +85,7 @@ class VideoHardware:
# self.timer.callback.append(self.readPreferredModes)
# self.timer.start(1000)
+ config.av.colorformat.addNotifier(self.updateFastblank)
def AVSwitchSetInput(self, mode):
self.standby = mode == "SCART"
@@ -276,25 +277,41 @@ class VideoHardware:
open("/proc/stb/video/policy", "w").write(policy)
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"]:
- mode = "scart"
+ input = "scart"
sb = "vcr"
else:
- mode = "off"
+ input = "off"
sb = "0"
else:
- mode = "encoder"
+ input = "encoder"
sb = "auto"
open("/proc/stb/avs/0/sb", "w").write(sb)
- open("/proc/stb/avs/0/input", "w").write(mode)
+ 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 config.av.videoport.value == "Scart" and config.av.colorformat.value == "rgb":
+ fb = "high"
+ else:
+ fb = "low"
+ open("/proc/stb/avs/0/fb", "w").write(fb)
config.av.edid_override = ConfigYesNo(default = False)
video_hw = VideoHardware()