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
This commit is contained in:
Luxferre committed 2026-11-11 14:20:42 +02:00
1 parent 7a2b965ce3
commit 83c8db10f1
38 files changed
+1351 -276

No files matched your search

@@ -3,18 +3,18 @@
# /home/user/.config/bananarchy/cover-display.conf and are applied by
# the xcover DWM plugin at session start.
# kernel = the default shipping path. The KaiOS 3.10 DTS shows that both
# GC9305s share CS0, gpio110 D/C and one PMIC PWM backlight; gpio13 selects
# the panel, gpio23 is the external reset, and gpio21 is TE. While the flip is
# closed the daemon claims gpio13/gpio23, pulses reset, replays the stock
# 240x240 init through the kernel driver's debugfs command hook, and flushes a
# 240x240 /dev/fb0 damage rect. Live probing showed the shared PWM is
# active-low for the cover and active-high for the main panel: duty 0 lights
# the cover, duty 14 lights the internal panel. The marker tells
# bananarchy-display-power-sync which side owns the bus. Opening the flip
# restores the mux, normal brightness and the internal panel. auto = /dev/fb1
# with the opt-in two-panel DT, otherwise spidev; fb/spidev force those legacy
# paths; none keeps the bus untouched.
# kernel = the default shipping path. The KaiOS 3.10 DTS and kernel driver show
# that both GC9305s share CS0, gpio110 D/C and one active-high PMIC MPP2 PWM
# backlight; gpio13 selects the panel, gpio23 is the external reset, and gpio21
# is TE. While the flip is closed and lit, the daemon wakes DRM with gpio13 low,
# clears the normally-white internal 240x320 panel to solid black in DISPON so
# it blocks the shared backlight, switches gpio13 high, pulses gpio23, replays
# the stock 240x240 init through the kernel driver's debugfs command hook, and
# flushes a 240x240 /dev/fb0 damage rect. While dark, both panels sleep and
# DPMS Off powers down the panel regulators. Opening the flip restores gpio13
# low, normal brightness and the internal panel. auto = /dev/fb1 with the
# opt-in two-panel DT, otherwise spidev; fb/spidev force those legacy paths;
# none keeps the bus untouched.
backend = kernel
main_fb_device = /dev/fb0
kernel_dpms_helper = /usr/bin/bananarchy-cover-dpms.sh
@@ -23,10 +23,12 @@ kernel_command_path = /sys/kernel/debug/dri/0/command
kernel_backlight_path = /sys/class/backlight/backlight/brightness
kernel_backlight_power_path = /sys/class/backlight/backlight/bl_power
kernel_backlight_marker = /run/bananarchy/cover-backlight
# 14 is the normal internal-panel level and also the external-panel OFF duty.
# 14 is the normal active-high PWM brightness for whichever panel is lit.
kernel_backlight_level = 14
# 1 = external backlight active-low (duty 0 ON), 0 = active-high.
kernel_backlight_invert = 1
# 0 = shared PMIC MPP2 backlight active-high (stock 2720 Flip), 1 = active-low.
kernel_backlight_invert = 0
# 0 = keep internal normally-white GC9305 scanning black GRAM while cover is lit.
kernel_internal_sleep = 0
fb_device = /dev/fb1
spidev_device = /dev/spidev0.1
gpiochip_device = /dev/gpiochip0
@@ -25,8 +25,10 @@ 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-bl-force \
/run/bananarchy/cover-power-state 2>/dev/null || true
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() {
+9
View File
@@ -12,3 +12,12 @@ depend() {
after udev-settle
before bananarchy-cover-display tinydm
}
start() {
if [ "$(cat /usr/share/bananarchy/lid-profile 2>/dev/null)" != "flip" ]; then
ebegin "Skipping flip lid handler (not a flip device)"
eend 0
return 0
fi
default_start
}
@@ -11,3 +11,12 @@ depend() {
need udev
after udev-settle
}
start() {
if [ "$(cat /usr/share/bananarchy/lid-profile 2>/dev/null)" != "flip" ]; then
ebegin "Skipping side volume keys (not a flip device)"
eend 0
return 0
fi
default_start
}
@@ -3,7 +3,11 @@
# the spi-mux modules are loaded even when the boot-runlevel "modules" service
# could not process /etc/modules (it needs /bin/sed, which was missing on some
# rootfs builds).
for mod in msm8905-cam spidev mux-core mux-gpio spi-mux; do
HW_MODS="msm8905-cam"
if [ "$(cat /usr/share/bananarchy/lid-profile 2>/dev/null)" = "flip" ]; then
HW_MODS="$HW_MODS spidev mux-core mux-gpio spi-mux"
fi
for mod in $HW_MODS; do
i=0
while [ "$i" -lt 5 ]; do
/sbin/modprobe -q "$mod" && break