From 344ffd10a4f5b54546fe5e382dbf40a8cf7ecdbb Mon Sep 17 00:00:00 2001 From: ghost Date: Wed, 5 Aug 2009 17:38:15 +0200 Subject: [PATCH] Plugins/Videomode/VideoHardware.py: remove DVI-PC when not DVI-PC modes are usable --- lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py b/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py index 64f79e0..71529a0 100644 --- a/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py +++ b/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py @@ -95,6 +95,10 @@ class VideoHardware: self.readAvailableModes() + if self.modes.has_key("DVI-PC") and not self.getModeList("DVI-PC"): + print "remove DVI-PC because of not existing modes" + del self.modes["DVI-PC"] + self.createConfig() # self.on_hotplug.append(self.createConfig) -- 2.7.4