Files
bananarchy/overlay/rootfs/etc/init.d/bananarchy-cover-display
T
Luxferre 83c8db10f1 Release a1111 (lennon): isolate nokia-argon slider from 2720 Flip cover stack
- Write /usr/share/bananarchy/lid-profile per target in apply-bananarchy-overlay.sh (slider on nokia-argon, flip on nokia-beatles, none elsewhere), disable flip runlevel services, cover udev/config, and mux module loads on non-flip builds, and exit 0 immediately in flip daemons/init scripts when lid-profile != flip
- Guard startup Escape grab cleanup when locked and gate lid-state checks in display-power-sync, locker.so, and callscreen.so on lid-profile == flip so nokia-argon keeps pure a1108 sliding-lid behaviour
- Ship active-high shared cover backlight (kernel_backlight_invert = 0), active-black internal panel isolation (kernel_internal_sleep = 0), pixel-centered 240x240 cover UI, SW_LID hall sync, and shared Screen blank timeout on nokia-beatles
- Pin verified a1111 (lennon) image hashes for both nokia-argon and nokia-beatles and synchronize docs and host tests
2026-11-11 14:20:42 +02:00

45 lines
1.6 KiB
Plaintext
Executable File

#!/sbin/openrc-run
# Bananarchy cover display daemon. Only active on flip devices; the
# lid-profile file is written by scripts/apply-bananarchy-overlay.sh.
description="Nokia 2720 Flip external cover display"
# The recovered native bananarchy-coverd busy-loops at 100% CPU on the
# spidev backend (gpio110/DC is owned by panel-mipi-dbi-spi) and paints
# nothing. Keep that binary installed as a diagnostic, but run the compiled
# idle IPC server: it drives the external panel through /dev/spidev0.1 only
# while the flip is closed and hands the QUP5 bus back on open. No Python
# runs here.
command="/usr/bin/bananarchy-cover-idle"
command_args="--config /etc/bananarchy/cover-display.conf"
command_background="yes"
pidfile="/run/bananarchy/cover-display.pid"
output_log="/run/bananarchy/cover-display.log"
error_log="/run/bananarchy/cover-display.log"
depend() {
need udev
after udev-settle
}
start_pre() {
mkdir -p /run/bananarchy
chmod 0755 /run/bananarchy
# /run is tmpfs: clear stale transition guards after every reboot.
rm -f /run/bananarchy/cover-backlight \
/run/bananarchy/cover-bl-force \
/run/bananarchy/cover-power-state \
/run/bananarchy/cover-runtime.conf 2>/dev/null || true
}
start() {
if [ "$(cat /usr/share/bananarchy/lid-profile 2>/dev/null)" != "flip" ]; then
ebegin "Skipping cover display (not a flip device)"
eend 0
return 0
fi
default_start
# Seed the compact network/battery indicators once at boot; later changes
# arrive from the NetworkManager dispatcher (bananarchy-cover-event.sh).
/usr/bin/bananarchy-cover-event.sh network >/dev/null 2>&1 &
}