summaryrefslogtreecommitdiff
diff options
authorPo-Hsu Lin <po-hsu.lin@canonical.com>2015-12-10 11:43:06 +0800
committerPo-Hsu Lin <po-hsu.lin@canonical.com>2015-12-10 11:43:06 +0800
commite19f87ddd58994f4eecc4e132768841ecc5cf5f7 (patch)
tree09dd78c8b653a720b64390340b5fc328379e2420
parent395a718f8e8a143c14d1c046b7a212432503c934 (diff)
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.
-rwxr-xr-xbin/graphics_driver4
1 files 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