summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions_system_graphics.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-08-27 22:07:51 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-08-27 22:07:51 -0400
commit7e693bd6399b37386555a207cc9f429b0457904d (patch)
tree8f509b8321521324eb775f79a20026261a674429 /pts-core/functions/pts-functions_system_graphics.php
parent5619f57bd37074e0214fa538a5cbc1af5ea395e4 (diff)
downloadphoronix-test-suite-upstream-7e693bd6399b37386555a207cc9f429b0457904d.tar.gz
phoronix-test-suite-upstream-7e693bd6399b37386555a207cc9f429b0457904d.tar.xz
phoronix-test-suite-upstream-7e693bd6399b37386555a207cc9f429b0457904d.zip
pts-core: Improve Intel graphics memory detection and other drivers that
report the capacity as VideoRam instead of VideoRAM
Diffstat (limited to 'pts-core/functions/pts-functions_system_graphics.php')
-rw-r--r--pts-core/functions/pts-functions_system_graphics.php4
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 2bd808c..8d15dcc 100644
--- a/pts-core/functions/pts-functions_system_graphics.php
+++ b/pts-core/functions/pts-functions_system_graphics.php
@@ -686,12 +686,12 @@ function graphics_memory_capacity()
// fglrx driver reports video memory to: (--) fglrx(0): VideoRAM: XXXXXX kByte, Type: DDR
// xf86-video-ati and xf86-video-radeonhd also report their memory information in a similar format
- $info = shell_exec("cat /var/log/Xorg.0.log | grep VideoRAM");
+ $info = shell_exec("cat /var/log/Xorg.0.log | grep -i VideoRAM");
if(empty($info))
$info = shell_exec("cat /var/log/Xorg.0.log | grep \"Video RAM\"");
- if(($pos = strpos($info, "RAM:")) > 0)
+ if(($pos = strpos($info, "RAM:")) > 0 || ($pos = strpos($info, "Ram:")) > 0)
{
$info = substr($info, $pos + 5);
$info = substr($info, 0, strpos($info, " "));