workaround: on non-scart modes, set aspect/policy
[enigma2.git] / lib / python / Plugins / SystemPlugins / Videomode / VideoHardware.py
index 09698736a032726f71abe3e8d3fec9549ca660c0..c6d6b864e9ca84bd0a93bf3b067348187bc045f1 100644 (file)
@@ -105,6 +105,7 @@ class VideoHardware:
                return True
 
        def setMode(self, port, mode, rate, force = None):
+               print "setMode - port:", port, "mode:", mode, "rate:", rate
                # we can ignore "port"
                self.current_mode = mode
                modes = self.rates[mode][rate]
@@ -131,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