Keep kill-plymouth enabled so plymouthd releases DRM master before Xorg starts

This commit is contained in:
Luxferre committed 2026-10-27 08:13:51 +02:00
1 parent 68cf9c515b
commit 5132deb4d8
6 files changed
+24 -15

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
- Updated the `fcitx5` `superd` service wrapper (`bananarchy-fcitx5.sh`) and XIM environment propagation across `st`, `dmenu`, and `dwm-plugin` so T9 keypad input stays supervised and active across all terminal and menu sessions.
- Removed the non-applicable `Toggle Bar` entry from the `Config` menu.
- **Battery life and background service optimizations**:
- Removed `upowerd` and `sxmo_battery_monitor` (eliminating 3.5-second D-Bus broadcasts and shell forks in favor of direct `sysfs` `/sys/class/power_supply/` reads), `sxmo-x11-status` (updating the X11 root statusbar directly from `sxmo_hook_statusbar.sh`, `fcitx5-t9`, and `dmenu`), redundant 5-minute `mmcli` polling loops in `sxmo_modemmonitor.sh`, eMMC `/swapfile` (relying exclusively on compressed RAM `/dev/zram0`), `hkdm`, `haveged`, `iio-sensor-proxy`, `sleep-inhibitor`, `kill-plymouth`, `nftables`, `logbookd`, `openrc-user`, and unused `tty2`–`tty6` / `ttyMSM0` `getty` instances.
- Removed `upowerd` and `sxmo_battery_monitor` (eliminating 3.5-second D-Bus broadcasts and shell forks in favor of direct `sysfs` `/sys/class/power_supply/` reads), `sxmo-x11-status` (updating the X11 root statusbar directly from `sxmo_hook_statusbar.sh`, `fcitx5-t9`, and `dmenu`), redundant 5-minute `mmcli` polling loops in `sxmo_modemmonitor.sh`, eMMC `/swapfile` (relying exclusively on compressed RAM `/dev/zram0`), `hkdm`, `haveged`, `iio-sensor-proxy`, `sleep-inhibitor`, `nftables`, `logbookd`, and unused `tty2`–`tty6` / `ttyMSM0` `getty` instances.
---
+2
View File
@@ -35,5 +35,7 @@ permit nopass :wheel as root cmd tee args /sys/module/leds_msm8905_torch/paramet
permit nopass :wheel as root cmd /usr/bin/tee args /sys/module/leds_msm8905_torch/parameters/next_reboot_mode
permit nopass :wheel as root cmd /usr/bin/sxmo_power.sh
permit nopass :wheel as root cmd sxmo_power.sh
permit nopass :wheel as root cmd /usr/bin/plymouth args quit
permit nopass :wheel as root cmd plymouth args quit
permit nopass :wheel as root cmd rc-service args hexagonrpcd-adsp-sensorspd stop
permit nopass :wheel as root cmd systemctl args stop hexagonrpcd-adsp-sensorspd
@@ -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
@@ -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
+1 -2
View File
@@ -137,15 +137,14 @@ rm -rf \
"$TARGET_ROOTFS/etc/runlevels/default/haveged" \
"$TARGET_ROOTFS/etc/runlevels/default/iio-sensor-proxy" \
"$TARGET_ROOTFS/etc/runlevels/default/sleep-inhibitor" \
"$TARGET_ROOTFS/etc/runlevels/default/kill-plymouth" \
"$TARGET_ROOTFS/etc/runlevels/default/swapfile" \
"$TARGET_ROOTFS/etc/runlevels/default/nftables" \
"$TARGET_ROOTFS/etc/runlevels/boot/logbookd" \
"$TARGET_ROOTFS/etc/init.d/user.user" \
"$TARGET_ROOTFS/usr/share/superd/services/sxmo_battery_monitor.service" \
"$TARGET_ROOTFS/usr/share/superd/services/sxmo-x11-status.service" \
"$TARGET_ROOTFS/swapfile" \
"$TARGET_ROOTFS/var/log/logbookd.db"*
ln -sf /etc/init.d/kill-plymouth "$TARGET_ROOTFS/etc/runlevels/default/kill-plymouth"
mkdir -p "$TARGET_ROOTFS/var/lib/tinydm"
ln -sf /usr/share/xsessions/sxmo.desktop "$TARGET_ROOTFS/var/lib/tinydm/default-session.desktop"