From 902e98577fb0e00bd09a1c5331c6816f5c91aced Mon Sep 17 00:00:00 2001 From: Mike Hiretsky Date: Fri, 25 Mar 2011 14:25:39 +0300 Subject: [PATCH] Add detect video driver by cmdline param. --- pym/cl_fill.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pym/cl_fill.py b/pym/cl_fill.py index 1d7b9b4..5b63520 100644 --- a/pym/cl_fill.py +++ b/pym/cl_fill.py @@ -446,6 +446,9 @@ class fillVars(varsShare): os.listdir(xorg_modules_dir))) else: list_avialable_drivers = [] + videoVal = self.getValueFromCmdLine("calculate",4) + if videoVal in list_avialable_drivers + ["auto"]: + return videoVal if display and list_avialable_drivers: reDriver = re.compile('|'.join(map(lambda x: "%s_drv.so"%x, list_avialable_drivers)))