From e19f87ddd58994f4eecc4e132768841ecc5cf5f7 Mon Sep 17 00:00:00 2001 From: Po-Hsu Lin Date: Thu, 10 Dec 2015 11:43:06 +0800 Subject: provider:checkbox fix the Intel driver detection issue on I+A system. Force the script to return 'Intel' when it matches the pattern for running on the Intel GPU, to avoid false result on I+A system. --- bin/graphics_driver | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/graphics_driver b/bin/graphics_driver index 91568e1..b1b1cb7 100755 --- a/bin/graphics_driver +++ b/bin/graphics_driver @@ -199,12 +199,12 @@ class XorgLog(object): display = {'Output': display_name} continue - # For 4th Intel on 3.11 + # For 4th Intel after 3.11 m = re.search( r'\(II\) (.*)\(\d+\): switch to mode .* using (.*),', line) if m: self.displays[display_name] = display - self.video_driver = m.group(1) + self.video_driver = 'intel' # 'intel' is what we expect to see display_name = m.group(2) display = {'Output': display_name} continue -- cgit v1.2.3