mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 15:07: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"
|
||||
|
||||
# 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user