mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 07:27:49 +00:00
xbmc-dharma: rework detection of loaded graphic driver
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
2c7f894272
commit
fc1bbd76cc
@ -28,19 +28,6 @@
|
|||||||
|
|
||||||
progress "setup XBMC"
|
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
|
# clean temp dir
|
||||||
#
|
#
|
||||||
@ -130,13 +117,12 @@ EOF
|
|||||||
#
|
#
|
||||||
|
|
||||||
# Always sync to vblank
|
# 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
|
cat >> $HOME/.xbmc/userdata/guisettings.xml << EOF
|
||||||
<videoscreen>
|
<videoscreen>
|
||||||
<vsync>2</vsync>
|
<vsync>2</vsync>
|
||||||
</videoscreen>
|
</videoscreen>
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "</settings>" >> $HOME/.xbmc/userdata/guisettings.xml
|
echo "</settings>" >> $HOME/.xbmc/userdata/guisettings.xml
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user