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:
1 parent
7a2b965ce3
commit
83c8db10f1
38 files changed
+1351
-276
No files matched your search
@@ -17,30 +17,35 @@ case "$DEVICE" in
|
||||
DEVICE_DIR="nokia-argon"
|
||||
DEVICEINFO_FILE="deviceinfo"
|
||||
DTB_FILE="qcom-msm8905-nokia-argon.dtb"
|
||||
LID_PROFILE="slider"
|
||||
;;
|
||||
nokia-beatles|beatles)
|
||||
DEVICE="nokia-beatles"
|
||||
DEVICE_DIR="nokia-beatles"
|
||||
DEVICEINFO_FILE="deviceinfo"
|
||||
DTB_FILE="qcom-msm8905-nokia-beatles.dtb"
|
||||
LID_PROFILE="flip"
|
||||
;;
|
||||
nokia-tough|nokia-coconut|tough|coconut)
|
||||
DEVICE="nokia-tough"
|
||||
DEVICE_DIR="nokia-tough"
|
||||
DEVICEINFO_FILE="deviceinfo"
|
||||
DTB_FILE="qcom-msm8905-nokia-coconut.dtb"
|
||||
LID_PROFILE="none"
|
||||
;;
|
||||
nokia-sparkler|sparkler)
|
||||
DEVICE="nokia-sparkler"
|
||||
DEVICE_DIR="nokia-sparkler"
|
||||
DEVICEINFO_FILE="deviceinfo"
|
||||
DTB_FILE="qcom-msm8909-nokia-sparkler.dtb"
|
||||
LID_PROFILE="none"
|
||||
;;
|
||||
nokia-leo|leo)
|
||||
DEVICE="nokia-leo"
|
||||
DEVICE_DIR="nokia-sparkler"
|
||||
DEVICEINFO_FILE="deviceinfo.nokia-leo"
|
||||
DTB_FILE="qcom-msm8909-nokia-leo.dtb"
|
||||
LID_PROFILE="none"
|
||||
;;
|
||||
*)
|
||||
echo "Error: Unsupported device '$DEVICE'." >&2
|
||||
@@ -288,6 +293,7 @@ if [ -d "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/codecs" ] && \
|
||||
fi
|
||||
mkdir -p "$TARGET_ROOTFS/boot/dtbs"
|
||||
cp -af "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/dtbs/"*.dtb "$TARGET_ROOTFS/boot/dtbs/"
|
||||
rm -f "$TARGET_ROOTFS/boot"/qcom-*.dtb
|
||||
cp -af "$BASE_DIR/prebuilt/kernel-6.12.1-msm8916/dtbs/$DTB_FILE" "$TARGET_ROOTFS/boot/$DTB_FILE"
|
||||
|
||||
echo "[3/4] Installing prebuilt Xlibre, Sxmo X11 (dwm/dmenu/st), fcitx5-t9, and Bantam AI agent..."
|
||||
@@ -408,6 +414,23 @@ ln -sf /etc/init.d/kill-plymouth "$TARGET_ROOTFS/etc/runlevels/default/kill-plym
|
||||
ln -sf /etc/init.d/bananarchy-power-policy "$TARGET_ROOTFS/etc/runlevels/default/bananarchy-power-policy"
|
||||
ln -sf /etc/init.d/bananarchy-time-sync "$TARGET_ROOTFS/etc/runlevels/default/bananarchy-time-sync"
|
||||
ln -sf /etc/init.d/bananarchy-sshd-debug "$TARGET_ROOTFS/etc/runlevels/default/bananarchy-sshd-debug"
|
||||
mkdir -p "$TARGET_ROOTFS/usr/share/bananarchy"
|
||||
printf '%s\n' "$LID_PROFILE" > "$TARGET_ROOTFS/usr/share/bananarchy/lid-profile"
|
||||
chmod 0644 "$TARGET_ROOTFS/usr/share/bananarchy/lid-profile"
|
||||
if [ "$LID_PROFILE" = "flip" ]; then
|
||||
ln -sf /etc/init.d/bananarchy-lid "$TARGET_ROOTFS/etc/runlevels/default/bananarchy-lid"
|
||||
ln -sf /etc/init.d/bananarchy-cover-display "$TARGET_ROOTFS/etc/runlevels/default/bananarchy-cover-display"
|
||||
ln -sf /etc/init.d/bananarchy-volume-keys "$TARGET_ROOTFS/etc/runlevels/default/bananarchy-volume-keys"
|
||||
else
|
||||
rm -f "$TARGET_ROOTFS/etc/runlevels/default/bananarchy-lid" \
|
||||
"$TARGET_ROOTFS/etc/runlevels/default/bananarchy-cover-display" \
|
||||
"$TARGET_ROOTFS/etc/runlevels/default/bananarchy-volume-keys" \
|
||||
"$TARGET_ROOTFS/etc/udev/rules.d/72-nokia-beatles-cover.rules" \
|
||||
"$TARGET_ROOTFS/etc/bananarchy/cover-display.conf"
|
||||
printf '# Bananarchy hardware drivers that are not probed from a DT node.\n# msm8905-cam registers /dev/video0 (GC2395/GC2385 rear camera).\nmsm8905-cam\n' \
|
||||
> "$TARGET_ROOTFS/etc/modules-load.d/bananarchy-hardware.conf"
|
||||
chmod 0644 "$TARGET_ROOTFS/etc/modules-load.d/bananarchy-hardware.conf"
|
||||
fi
|
||||
mkdir -p "$TARGET_ROOTFS/var/lib/tinydm"
|
||||
ln -sf /usr/share/xsessions/sxmo.desktop "$TARGET_ROOTFS/var/lib/tinydm/default-session.desktop"
|
||||
|
||||
|
||||
Reference in new issue
Block a user