Keep kill-plymouth enabled so plymouthd releases DRM master before Xorg starts
This commit is contained in:
1 parent
68cf9c515b
commit
5132deb4d8
6 files changed
+24
-15
No files matched your search
@@ -66,6 +66,10 @@ XORG_BIN="Xorg"
|
||||
XORG_MODPATH="/usr/lib/xorg/modules/xlibre-25,/usr/lib/xorg/modules"
|
||||
[ -d /tmp/x11/usr/lib/xorg/modules ] && XORG_MODPATH="/tmp/x11/usr/lib/xorg/modules/xlibre-25,/tmp/x11/usr/lib/xorg/modules"
|
||||
|
||||
if pidof -s plymouthd >/dev/null 2>&1; then
|
||||
/usr/bin/plymouth quit >/dev/null 2>&1 || doas -n /usr/bin/plymouth quit >/dev/null 2>&1 || true
|
||||
fi
|
||||
|
||||
if ! pidof -s Xorg >/dev/null 2>&1; then
|
||||
"$XORG_BIN" :0 -s 0 -dpms -nocursor -nolisten tcp -config "$XORG_CONFIG" -modulepath "$XORG_MODPATH" -logfile /tmp/Xorg.0.log >/dev/null 2>&1 </dev/null &
|
||||
i=0
|
||||
|
||||
@@ -17,12 +17,14 @@ if command -v fc-cache > /dev/null && [ -z "$(ls -A /var/cache/fontconfig 2>/dev
|
||||
fc-cache >/dev/null 2>&1 &
|
||||
fi
|
||||
|
||||
sxmo_jobs.sh start daemon_manager superd
|
||||
|
||||
# let time to superd to start correctly
|
||||
while ! superctl status > /dev/null 2>&1; do
|
||||
sleep 0.05
|
||||
done
|
||||
if ! superctl status > /dev/null 2>&1; then
|
||||
pkill -9 -x superd > /dev/null 2>&1 || true
|
||||
rm -f "$XDG_RUNTIME_DIR/superd.lock" "$XDG_RUNTIME_DIR/superd.sock"
|
||||
sxmo_jobs.sh start daemon_manager superd
|
||||
while ! superctl status > /dev/null 2>&1; do
|
||||
sleep 0.05
|
||||
done
|
||||
fi
|
||||
|
||||
if [ -n "$SXMO_ROTATE_START" ]; then
|
||||
sxmo_rotate.sh
|
||||
|
||||
Reference in new issue
Block a user