mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
xorg-server:
- add init script to preparing start of xorg - remove xorg init script - move loading of nvidia driver to init script for preparing xorg start
This commit is contained in:
parent
8b53890f33
commit
bbfa9f24f6
@ -46,12 +46,6 @@
|
||||
cp -PR /usr/config/$i $HOME/.config
|
||||
done
|
||||
|
||||
# loading NVidia driver
|
||||
if lspci -n | grep 0300 | grep -q 10de; then
|
||||
progress "loading NVidia driver"
|
||||
$IONICE modprobe nvidia
|
||||
fi
|
||||
|
||||
# caching xbmc
|
||||
[ "$XBMC_CACHING" = "yes" ] && cache_xbmc
|
||||
|
||||
|
27
packages/x11/xserver/xorg-server/init.d/12_configure-xorg
Normal file
27
packages/x11/xserver/xorg-server/init.d/12_configure-xorg
Normal file
@ -0,0 +1,27 @@
|
||||
# configure X.Org video settings
|
||||
#
|
||||
# runlevels: openelec, text, debug
|
||||
|
||||
if lspci -n | grep 0300 | grep -q 10de; then
|
||||
|
||||
progress "Found nVidia card, loading NVidia driver"
|
||||
$IONICE modprobe nvidia &
|
||||
|
||||
progress "Found nVidia card, enabling NVIDIA GLX as requested"
|
||||
$IONICE mkdir -p /var/lib
|
||||
$IONICE ln -sf /usr/lib/libGL_nvidia.so.1 /var/lib/libGL.so
|
||||
$IONICE ln -sf /usr/lib/xorg/modules/extensions/libglx_nvidia.so /var/lib/libglx.so
|
||||
|
||||
else
|
||||
|
||||
progress "Not found nVidia card, enabling Mesa GLX as requested"
|
||||
$IONICE mkdir -p /var/lib
|
||||
$IONICE ln -sf /usr/lib/libGL_mesa.so.1 /var/lib/libGL.so
|
||||
$IONICE ln -sf /usr/lib/xorg/modules/extensions/libglx_mesa.so /var/lib/libglx.so
|
||||
|
||||
fi
|
||||
|
||||
# Make some needed directorys
|
||||
$IONICE mkdir -p /var/cache/xkb
|
||||
$IONICE mkdir -m 1777 -p /tmp/.ICE-unix
|
||||
$IONICE chown root:root /tmp/.ICE-unix
|
Loading…
x
Reference in New Issue
Block a user