From 154b6436ce14dbe254022a198d93ad3b84eabf83 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Wed, 20 Jul 2011 23:09:19 +0200 Subject: [PATCH] xbmc: add gpu type detection Signed-off-by: Stephan Raue --- packages/mediacenter/xbmc/profile.d/xbmc.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/mediacenter/xbmc/profile.d/xbmc.conf b/packages/mediacenter/xbmc/profile.d/xbmc.conf index 84c1a778a6..0495a2733e 100644 --- a/packages/mediacenter/xbmc/profile.d/xbmc.conf +++ b/packages/mediacenter/xbmc/profile.d/xbmc.conf @@ -27,3 +27,11 @@ XBMC_HOME="/usr/share/xbmc" export XBMC_HOME + +GPUDEVICE=$(lspci -n | grep 0300) +GPUTYPE="OTHER" +[ "$(echo $GPUDEVICE | grep 8086)" ] && GPUTYPE="INTEL" # 8086 == INTEL +[ "$(echo $GPUDEVICE | grep 10de)" ] && GPUTYPE="NVIDIA" # 10de == NVIDIA +[ "$(echo $GPUDEVICE | grep 1002)" ] && GPUTYPE="AMD" # 1002 == AMD + +export GPUTYPE \ No newline at end of file