mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
xorg:
- move xorg related functions from /etc/sysconfig to /etc/conf.d/xorg - cleanup /etc/conf.d/xorg - remove the default xorg cursor with -nocursor
This commit is contained in:
parent
b3d392214c
commit
2c7f8dd991
@ -17,34 +17,6 @@
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
start_xorg() {
|
|
||||||
args="-s 0 -br -noreset -allowMouseOpenFail "
|
|
||||||
|
|
||||||
if lspci -n | grep 0300 | grep -q 10de; then
|
|
||||||
progress "Found nVidia card, enabling binary driver as requested"
|
|
||||||
mkdir -p /var/lib
|
|
||||||
ln -sf /usr/lib/libGL_nvidia.so.1 /var/lib/libGL.so
|
|
||||||
ln -sf /usr/lib/xorg/modules/extensions/libglx_nvidia.so /var/lib/libglx.so
|
|
||||||
else
|
|
||||||
progress "Not found nVidia card, enabling OSS driver as requested"
|
|
||||||
mkdir -p /var/lib
|
|
||||||
ln -sf /usr/lib/libGL_mesa.so.1 /var/lib/libGL.so
|
|
||||||
ln -sf /usr/lib/xorg/modules/extensions/libglx_mesa.so /var/lib/libglx.so
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir -p /var/run
|
|
||||||
acpid 2>&1 > /dev/null
|
|
||||||
|
|
||||||
mkdir -p /var/cache/xkb
|
|
||||||
exec /usr/bin/Xorg :0.0 vt01 ${args} > /dev/null 2>&1 &
|
|
||||||
}
|
|
||||||
|
|
||||||
wait_for_xorg () {
|
|
||||||
while [ ! -f /tmp/.X0-lock ]; do
|
|
||||||
true
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
wait_for_network () {
|
wait_for_network () {
|
||||||
while [ ! -f /var/run/connman/udhcpc.*.pid ]; do
|
while [ ! -f /var/run/connman/udhcpc.*.pid ]; do
|
||||||
true
|
true
|
||||||
|
@ -9,11 +9,37 @@
|
|||||||
# X environment variables.
|
# X environment variables.
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
DISPLAY=':0.0'
|
DISPLAY=':0.0'
|
||||||
TTY=1
|
XORG_ARGS="-s 0 -br -noreset -allowMouseOpenFail -nocursor"
|
||||||
XINITRC='/usr/lib/X11/xinit/xinitrc'
|
|
||||||
XSERVERRC='/usr/lib/X11/xinit/xserverrc'
|
|
||||||
|
|
||||||
export DISPLAY
|
export DISPLAY
|
||||||
export XINITRC
|
|
||||||
export XSERVERRC
|
#-------------------------------------------------------------------------------
|
||||||
export TTY
|
# do not change anything below
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
start_xorg() {
|
||||||
|
|
||||||
|
if lspci -n | grep 0300 | grep -q 10de; then
|
||||||
|
progress "Found nVidia card, enabling binary driver as requested"
|
||||||
|
mkdir -p /var/lib
|
||||||
|
ln -sf /usr/lib/libGL_nvidia.so.1 /var/lib/libGL.so
|
||||||
|
ln -sf /usr/lib/xorg/modules/extensions/libglx_nvidia.so /var/lib/libglx.so
|
||||||
|
else
|
||||||
|
progress "Not found nVidia card, enabling OSS driver as requested"
|
||||||
|
mkdir -p /var/lib
|
||||||
|
ln -sf /usr/lib/libGL_mesa.so.1 /var/lib/libGL.so
|
||||||
|
ln -sf /usr/lib/xorg/modules/extensions/libglx_mesa.so /var/lib/libglx.so
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir -p /var/run
|
||||||
|
acpid 2>&1 > /dev/null
|
||||||
|
|
||||||
|
mkdir -p /var/cache/xkb
|
||||||
|
exec /usr/bin/Xorg $DISPLAY vt01 $XORG_ARGS > /dev/null 2>&1 &
|
||||||
|
}
|
||||||
|
|
||||||
|
wait_for_xorg () {
|
||||||
|
while [ ! -f /tmp/.X0-lock ]; do
|
||||||
|
true
|
||||||
|
done
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user