- 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
18 lines
555 B
Bash
Executable File
18 lines
555 B
Bash
Executable File
#!/bin/sh
|
|
# Make sure the out-of-tree camera driver, the cover-panel spidev driver and
|
|
# 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).
|
|
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
|
|
i=$((i + 1))
|
|
sleep 1
|
|
done
|
|
done
|