aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2008-02-11 14:39:43 +0000
committerFelix Domke <tmbinc@elitedvb.net>2008-02-11 14:39:43 +0000
commitc1e207b8fc71d8d909559887c0b8b9351ce9f86c (patch)
tree57581076cfdbf19d67ba544af45d7afae33f6700 /lib/python/Plugins
parenta49c13f0e72b875083fbbe349ea84516f76e10e5 (diff)
downloadenigma2-c1e207b8fc71d8d909559887c0b8b9351ce9f86c.tar.gz
enigma2-c1e207b8fc71d8d909559887c0b8b9351ce9f86c.zip
workaround: on non-scart modes, set aspect/policy
Diffstat (limited to 'lib/python/Plugins')
-rw-r--r--lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py b/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py
index a6d886c6..c6d6b864 100644
--- a/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py
+++ b/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py
@@ -132,6 +132,11 @@ class VideoHardware:
except IOError:
print "writing initial videomode to /etc/videomode failed."
+ # workaround: this should not be set here.
+ if port != "Scart":
+ open("/proc/stb/video/aspect", "w").write("any")
+ open("/proc/stb/video/policy", "w").write("panscan")
+
def isPortAvailable(self, port):
# fixme
return True