Package release ZIPs, streamline docs, and backport X11 DPMS/lock fixes
- Streamline README, INSTALL, MANUAL, ARCHITECTURE, and POWER-OPTIMIZATION docs - Add release ZIP packager (package-image.sh, scripts/package-release-zip.py, rebuild-image.sh --package) with sanitized rootfs, SHA256SUMS, and FLASH-INSTRUCTIONS.txt - Add automatic offline MT6797 firmware ext4 injection in flash-mtk.py and scripts/extract-vendor-fw.py - Backport X11 DPMS wake + XResetScreenSaver in geminux-powerd and _GEMINUX_LOCK_READY + grab-first sync in geminux-lock, rebuild aarch64 prebuilts, and expand tests
This commit is contained in:
1 parent
5472d4273a
commit
180d0a91e6
18 files changed
+1242
-480
No files matched your search
@@ -723,6 +723,40 @@ def main():
|
||||
if '"/sys/power/state", "freeze"' in trig_src:
|
||||
raise AssertionError("trigger_suspend must not fall back to s2idle freeze")
|
||||
|
||||
powerd_path = os.path.join(
|
||||
os.path.dirname(APPS_DIR), "geminux-daemons", "geminux-powerd.c"
|
||||
)
|
||||
with open(powerd_path, "r", encoding="utf-8") as handle:
|
||||
powerd_dpms_src = handle.read()
|
||||
for needle in (
|
||||
"wake_x11_display_dpms",
|
||||
"DPMSForceLevel",
|
||||
"DPMSModeOn",
|
||||
"XResetScreenSaver",
|
||||
"poll(&pf, 1, 1800)",
|
||||
):
|
||||
if needle not in powerd_dpms_src:
|
||||
raise AssertionError(f"geminux-powerd.c missing expected DPMS/lock sync token: {needle}")
|
||||
tb_start = powerd_dpms_src.find("static void toggle_backlight")
|
||||
tb_end = powerd_dpms_src.find("\nstatic ", tb_start + 1)
|
||||
tb_src = powerd_dpms_src[tb_start:tb_end]
|
||||
if "wake_x11_display_dpms()" not in tb_src:
|
||||
raise AssertionError("toggle_backlight must invoke wake_x11_display_dpms() when waking display")
|
||||
|
||||
lock_path = os.path.join(APPS_DIR, "geminux-lock.c")
|
||||
with open(lock_path, "r", encoding="utf-8") as handle:
|
||||
lock_src = handle.read()
|
||||
for needle in ("publish_lock_ready", "_GEMINUX_LOCK_READY", "XSync"):
|
||||
if needle not in lock_src:
|
||||
raise AssertionError(f"geminux-lock.c missing expected readiness token: {needle}")
|
||||
ot_start = lock_src.find("static void on_timer")
|
||||
ot_end = lock_src.find("\nstatic ", ot_start + 1)
|
||||
ot_src = lock_src[ot_start:ot_end]
|
||||
grab_idx = ot_src.find("gemui_grab_input")
|
||||
pub_idx = ot_src.find("publish_lock_ready")
|
||||
if grab_idx < 0 or pub_idx < 0 or grab_idx > pub_idx:
|
||||
raise AssertionError("geminux-lock.c on_timer must attempt gemui_grab_input before publish_lock_ready")
|
||||
|
||||
with open(os.path.join(APPS_DIR, "geminux-control.c"), "r", encoding="utf-8") as handle:
|
||||
ctrl_src = handle.read()
|
||||
if "st->bl_path" not in ctrl_src or "flush_vol_helper(" not in ctrl_src:
|
||||
|
||||
Reference in new issue
Block a user