diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-08-09 21:41:49 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-08-09 21:41:49 -0400 |
commit | 11ffb24605e892587d534aed7d49a8d274eedec4 (patch) | |
tree | 16c9a8fc09226a5304cde871d3b100895990fb17 /pts-core/functions/pts-functions_system_graphics.php | |
parent | a35aa0be6157abad67dbb19630682cf36ea4860c (diff) | |
download | phoronix-test-suite-upstream-11ffb24605e892587d534aed7d49a8d274eedec4.tar.gz phoronix-test-suite-upstream-11ffb24605e892587d534aed7d49a8d274eedec4.tar.xz phoronix-test-suite-upstream-11ffb24605e892587d534aed7d49a8d274eedec4.zip |
pts-core: Improve GPU string detection for open-source drivers
Diffstat (limited to 'pts-core/functions/pts-functions_system_graphics.php')
-rw-r--r-- | pts-core/functions/pts-functions_system_graphics.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pts-core/functions/pts-functions_system_graphics.php b/pts-core/functions/pts-functions_system_graphics.php index 56e0dd6..2919b2a 100644 --- a/pts-core/functions/pts-functions_system_graphics.php +++ b/pts-core/functions/pts-functions_system_graphics.php @@ -539,13 +539,13 @@ function graphics_processor_string() if(empty($info) || strpos($info, "Mesa ") !== FALSE) { - $info_pci = read_pci("VGA compatible controller:"); + $info_pci = read_pci("VGA compatible controller:", false); if(!empty($info_pci) && $info_pci != "Unknown") $info = $info_pci; } - if($info == "Unknown") + if(strpos($info, "Unknown") !== FALSE) { $log_parse = shell_exec("cat /var/log/Xorg.0.log | grep Chipset"); $log_parse = substr($log_parse, strpos($log_parse, "Chipset") + 8); |