workaround: on non-scart modes, set aspect/policy
authorFelix Domke <tmbinc@elitedvb.net>
Mon, 11 Feb 2008 14:39:43 +0000 (14:39 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Mon, 11 Feb 2008 14:39:43 +0000 (14:39 +0000)
lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py

index a6d886c..c6d6b86 100644 (file)
@@ -132,6 +132,11 @@ class VideoHardware:
                except IOError:
                        print "writing initial videomode to /etc/videomode failed."
 
                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
        def isPortAvailable(self, port):
                # fixme
                return True