aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py')
-rw-r--r--lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py b/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py
index 177cbd09..f3e3c07a 100644
--- a/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py
+++ b/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py
@@ -137,6 +137,11 @@ class VideoHardware:
open("/proc/stb/video/aspect", "w").write("any")
open("/proc/stb/video/policy", "w").write("panscan")
+ def saveMode(self, port, mode, rate):
+ config.av.videoport.value = port
+ config.av.videomode[port].value = mode
+ config.av.videorate[mode].value = rate
+
def isPortAvailable(self, port):
# fixme
return True
@@ -194,6 +199,7 @@ class VideoHardware:
rate = config.av.videorate[mode].value
self.setMode(port, mode, rate)
+
config.av.edid_override = ConfigYesNo(default = False)
video_hw = VideoHardware()