mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
xbmc-dharma: rework detection of loaded graphic driver
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
@@ -28,19 +28,6 @@
|
||||
|
||||
progress "setup XBMC"
|
||||
|
||||
# find used graphic driver
|
||||
if [ -d /sys/module/i915 ]; then
|
||||
DRIVER="intel"
|
||||
elif [ -d /sys/module/nouveau ]; then
|
||||
DRIVER="nouveau"
|
||||
elif [ -d /sys/module/nvidia ]; then
|
||||
DRIVER="nvidia"
|
||||
elif [ -d /sys/module/radeon ]; then
|
||||
DRIVER="radeon"
|
||||
else
|
||||
DRIVER="other"
|
||||
fi
|
||||
|
||||
#
|
||||
# clean temp dir
|
||||
#
|
||||
@@ -130,13 +117,12 @@ EOF
|
||||
#
|
||||
|
||||
# Always sync to vblank
|
||||
if [ "$DRIVER" = "radeon" -o "$DRIVER" = "nvidia" ] ; then
|
||||
if [ "$GPUTYPE" = "NVIDIA" -o "$GPUTYPE" = "RADEON" ] ; then
|
||||
cat >> $HOME/.xbmc/userdata/guisettings.xml << EOF
|
||||
<videoscreen>
|
||||
<vsync>2</vsync>
|
||||
</videoscreen>
|
||||
EOF
|
||||
fi
|
||||
|
||||
echo "</settings>" >> $HOME/.xbmc/userdata/guisettings.xml
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user