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