From bf06e8fab523a7778da59999461d1acc97314188 Mon Sep 17 00:00:00 2001 From: Tito Valentin <7767846+iamteedoh@users.noreply.github.com> Date: Wed, 18 Nov 2026 20:55:14 -0500 Subject: [PATCH] omamobile-omarchy 0.1.49: add the 3 lock view lines the 4.5 patch 0023 is missing On Omarchy 4.5 the battery on my lock screen showed the old level after a wake and took 8 to 13 seconds to catch up. Patch 0023 for 4.0.6 passes wakeSerial, blankSerial and displayDark into the LockView in Service.qml. The 4.5 version of 0023 doesn't have those 3 lines, so the lock view never knows the screen went dark or woke up. I added them back. Tested on my Pixel 7 Pro. Before, the lock didn't read the battery on wake. With the 3 lines it reads it right away and the level is right as soon as the screen lights. Also added a check for the 3 lines to test/port45.py since the one in test/patches.py only runs for 4.0.6. Assisted-by: Claude --- ...3-lock-a-glance-view-for-touch-only-devices.patch | 12 +++++++++++- packages/omamobile-omarchy/test/port45.py | 7 +++++++ packages/omamobile-omarchy/version | 2 +- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/packages/omamobile-omarchy/patches/0023-lock-a-glance-view-for-touch-only-devices.patch b/packages/omamobile-omarchy/patches/0023-lock-a-glance-view-for-touch-only-devices.patch index f01017d6b..4526f44dd 100644 --- a/packages/omamobile-omarchy/patches/0023-lock-a-glance-view-for-touch-only-devices.patch +++ b/packages/omamobile-omarchy/patches/0023-lock-a-glance-view-for-touch-only-devices.patch @@ -982,7 +982,17 @@ } function submitPassword(value) { -@@ -903,7 +914,18 @@ +@@ -510,6 +521,9 @@ + LockView { + id: lockView + keypad: root.keypad ++ wakeSerial: root.wakeSerial ++ blankSerial: root.blankSerial ++ displayDark: root.displayDark + anchors.fill: parent + backgroundPath: root.backgroundPath + videoPosterPath: root.videoPosterPath +@@ -903,7 +917,18 @@ // it and re-arm the blank timer (a phone's power button). function wake(): string { if (!root.currentlyLocked()) return "unlocked" diff --git a/packages/omamobile-omarchy/test/port45.py b/packages/omamobile-omarchy/test/port45.py index 761ae47b7..0f892d058 100644 --- a/packages/omamobile-omarchy/test/port45.py +++ b/packages/omamobile-omarchy/test/port45.py @@ -98,6 +98,13 @@ def actual(t, ex, version, make_root, run, ok, read, series, package, parse_qml) and 'if (root.displayDark && !root.darkTapWakes()) return' in view and 'if (lock.darkTapWakes()) {' in read(root, lock + 'LockGlance.qml'), 'real4.5: a dark touch-only lock leaves the double tap to omamobile-doubletap (0029)') + # The lock sets these three in Service.qml; its lock surface's view only + # hears of a wake or a dark screen if they are passed in. + lock_wiring = read(root, lock + 'Service.qml') + ok('wakeSerial: root.wakeSerial' in lock_wiring + and 'blankSerial: root.blankSerial' in lock_wiring + and 'displayDark: root.displayDark' in lock_wiring, + 'real4.5: the lock passes its wake, blank and dark state to the lock view (0023)') about = read(root, 'usr/bin/omarchy-launch-about') ok('layout_room()' in about and 'about_fastfetch "${logo_args[@]}"' in about and 'about_fastfetch "${measure_args[@]}" --pipe false' in about, diff --git a/packages/omamobile-omarchy/version b/packages/omamobile-omarchy/version index 5946febf1..352e98e2f 100644 --- a/packages/omamobile-omarchy/version +++ b/packages/omamobile-omarchy/version @@ -1 +1 @@ -0.1.48 +0.1.49