From f3fc9a1866a3db3dd36e26a8ca00534763fbba4e Mon Sep 17 00:00:00 2001 From: W4HO <87742609+W4HO-ham@users.noreply.github.com> Date: Thu, 29 Oct 2026 10:23:51 -0647 Subject: [PATCH 1/3] omamobile-fingerprint 0.1.12: allow LHBM on the Pixel 9a's panel too The 9a's panel driver (panel_google_tg4c, linux-omarchy-mobile#126) refuses the fingerprint circle unless allow_lhbm is set, as cheetah's does, and until now the palmtop set it from a hand-written file in /etc/modprobe.d. The package's modprobe file now carries both panels' lines, so a fresh install gets the circle without a hand step. --- .../vendor/modprobe.d/omamobile-fingerprint-lhbm.conf | 6 ++++-- packages/omamobile-fingerprint/version | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/omamobile-fingerprint/vendor/modprobe.d/omamobile-fingerprint-lhbm.conf b/packages/omamobile-fingerprint/vendor/modprobe.d/omamobile-fingerprint-lhbm.conf index 995399d9a..96ef4f1c0 100644 --- a/packages/omamobile-fingerprint/vendor/modprobe.d/omamobile-fingerprint-lhbm.conf +++ b/packages/omamobile-fingerprint/vendor/modprobe.d/omamobile-fingerprint-lhbm.conf @@ -1,8 +1,10 @@ # SPDX-License-Identifier: MIT # The under-display fingerprint sensor needs the panel's local high # brightness mode (LHBM): a bright circle over the sensor while a finger is -# on it. panel_samsung_s6e3hc4 refuses LHBM unless allow_lhbm is set; only +# on it. The panel drivers refuse LHBM unless allow_lhbm is set; only # omamobile-fp-bridge turns it on, during a touch on the sensor, and the # panel driver turns it off again after at most 3 s -# (device/cheetah/FINGERPRINT-PLAN.md F7). +# (device/cheetah/FINGERPRINT-PLAN.md F7; the Pixel 9a's panel in +# device/tegu/FINGERPRINT-PLAN.md F6c-F10). options panel_samsung_s6e3hc4 allow_lhbm=1 +options panel_google_tg4c allow_lhbm=1 diff --git a/packages/omamobile-fingerprint/version b/packages/omamobile-fingerprint/version index 20f49513e..0e24a92ff 100644 --- a/packages/omamobile-fingerprint/version +++ b/packages/omamobile-fingerprint/version @@ -1 +1 @@ -0.1.11 +0.1.12 From 702b6c2d66273385726fa278a1b1879cdb180b05 Mon Sep 17 00:00:00 2001 From: W4HO <87742609+W4HO-ham@users.noreply.github.com> Date: Thu, 29 Oct 2026 12:24:34 -0647 Subject: [PATCH 2/3] omamobile-fingerprint: the test checks both panels' allow_lhbm lines So that neither phone's line is dropped by accident later. --- packages/omamobile-fingerprint/test/all | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/omamobile-fingerprint/test/all b/packages/omamobile-fingerprint/test/all index a0a4422d7..61114765c 100755 --- a/packages/omamobile-fingerprint/test/all +++ b/packages/omamobile-fingerprint/test/all @@ -76,6 +76,10 @@ for f in usr/lib/omamobile-fp/omamobile-fp-chroot usr/lib/omamobile-fp/omamobile done # nothing Google's may be staged [[ -z $(find "$stage" -path '*/root/*' -print -quit) ]] || fail "vendor files staged" +# both panels keep their allow_lhbm line (the 7 Pro's s6e3hc4, the 9a's tg4c) +lhbm=$stage/usr/lib/modprobe.d/omamobile-fingerprint-lhbm.conf +[[ $(grep -c '^options panel_samsung_s6e3hc4 allow_lhbm=1$' "$lhbm") == 1 ]] || fail "s6e3hc4 allow_lhbm line missing" +[[ $(grep -c '^options panel_google_tg4c allow_lhbm=1$' "$lhbm") == 1 ]] || fail "tg4c allow_lhbm line missing" if command -v systemd-analyze >/dev/null; then out=$(systemd-analyze verify --man=no "$stage/usr/lib/systemd/system/omamobile-fp.service" 2>&1 || true) out=$(grep -v -e 'not executable' -e 'No such file' -e 'is not a regular file' -e '^$' <<<"$out" || true) From 48f3333f64f70663924e1c3b924d796f11c58749 Mon Sep 17 00:00:00 2001 From: W4HO <87742609+W4HO-ham@users.noreply.github.com> Date: Fri, 30 Oct 2026 13:18:22 -0647 Subject: [PATCH 3/3] omamobile-fingerprint 0.1.12: check the allow_lhbm lines before the prebuilt skip CI has no bionic prebuilts, so test/all stopped at its SKIP line before the two allow_lhbm checks. They now read the shipped vendor/modprobe.d file ahead of the skip, and the staged copy is only checked for existence. --- packages/omamobile-fingerprint/test/all | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/omamobile-fingerprint/test/all b/packages/omamobile-fingerprint/test/all index 61114765c..7919f7cbc 100755 --- a/packages/omamobile-fingerprint/test/all +++ b/packages/omamobile-fingerprint/test/all @@ -42,6 +42,11 @@ grep -c '^ro.hardware=' lib/props.conf >/dev/null && fail "props.conf keeps a ph for f in lib/omamobile-tipc-probe lib/omamobile-fp-ctl; do python3 -c 'import ast, sys; ast.parse(open(sys.argv[1]).read())' "$f" || fail "python: $f" done +# both panels keep their allow_lhbm line (the 7 Pro's s6e3hc4, the 9a's tg4c), +# read from the file the package ships, so CI checks it without the prebuilts +lhbm=vendor/modprobe.d/omamobile-fingerprint-lhbm.conf +[[ $(grep -c '^options panel_samsung_s6e3hc4 allow_lhbm=1$' "$lhbm") == 1 ]] || fail "s6e3hc4 allow_lhbm line missing" +[[ $(grep -c '^options panel_google_tg4c allow_lhbm=1$' "$lhbm") == 1 ]] || fail "tg4c allow_lhbm line missing" # The bionic prebuilts are built on the computer with the Android toolchain # and never committed; a checkout without them (CI) checks the rest only. if [[ ! -f prebuilt/omamobile-fp-shim.so ]]; then @@ -76,10 +81,8 @@ for f in usr/lib/omamobile-fp/omamobile-fp-chroot usr/lib/omamobile-fp/omamobile done # nothing Google's may be staged [[ -z $(find "$stage" -path '*/root/*' -print -quit) ]] || fail "vendor files staged" -# both panels keep their allow_lhbm line (the 7 Pro's s6e3hc4, the 9a's tg4c) -lhbm=$stage/usr/lib/modprobe.d/omamobile-fingerprint-lhbm.conf -[[ $(grep -c '^options panel_samsung_s6e3hc4 allow_lhbm=1$' "$lhbm") == 1 ]] || fail "s6e3hc4 allow_lhbm line missing" -[[ $(grep -c '^options panel_google_tg4c allow_lhbm=1$' "$lhbm") == 1 ]] || fail "tg4c allow_lhbm line missing" +# the modprobe file reached the stage +[[ -f $stage/usr/lib/modprobe.d/omamobile-fingerprint-lhbm.conf ]] || fail "not staged: modprobe.d/omamobile-fingerprint-lhbm.conf" if command -v systemd-analyze >/dev/null; then out=$(systemd-analyze verify --man=no "$stage/usr/lib/systemd/system/omamobile-fp.service" 2>&1 || true) out=$(grep -v -e 'not executable' -e 'No such file' -e 'is not a regular file' -e '^$' <<<"$out" || true)