- 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
24 lines
511 B
Plaintext
Executable File
24 lines
511 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
# Nokia 2720 Flip hall-sensor lid handling (lock, blank, cover switch).
|
|
|
|
description="Bananarchy flip lid handler"
|
|
|
|
command="/usr/bin/bananarchy-lid"
|
|
command_background=true
|
|
pidfile="/run/bananarchy-lid.pid"
|
|
|
|
depend() {
|
|
need udev
|
|
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
|
|
}
|