Fix connected sleep/wake lockup, s2idle drain, and USB fuel-gauge taper jump
This commit is contained in:
1 parent
3ea7d35aba
commit
e8065bb014
8 files changed
+396
-28
No files matched your search
@@ -142,10 +142,14 @@ int main(void) {
|
||||
geminux_policy_init(&pol);
|
||||
assert(pol.profile == POWER_PROFILE_BALANCED);
|
||||
assert(pol.lid_suspend_enabled);
|
||||
assert(pol.inhibit_ac_lid);
|
||||
assert(!geminux_should_suspend_on_lid(&pol));
|
||||
|
||||
/* Closing lid on battery should trigger S3 suspend */
|
||||
/* Closing lid on battery should trigger S3 suspend, but AC inhibits lid suspend */
|
||||
pol.lid_closed = true;
|
||||
pol.on_ac_power = true;
|
||||
assert(!geminux_should_suspend_on_lid(&pol));
|
||||
pol.on_ac_power = false;
|
||||
assert(geminux_should_suspend_on_lid(&pol));
|
||||
|
||||
/* Active voice call inhibitor blocks lid suspend */
|
||||
@@ -678,6 +682,7 @@ def main():
|
||||
),
|
||||
os.path.join(BASE_DIR, "patches", "kernel", "series"): (
|
||||
"0009-mt6797-wlan-drop-free-stability.patch",
|
||||
"0012-gemini-lid-wake-and-fg-taper-fix.patch",
|
||||
),
|
||||
os.path.join(overlay_dir, "etc", "profile.d", "10-geminux-env.sh"): (
|
||||
"export NO_AT_BRIDGE=1",
|
||||
@@ -714,6 +719,8 @@ def main():
|
||||
raise AssertionError("geminux-powerd.c must unload mt6797_consys and reload mt6797-consys")
|
||||
if 'if (ctx->airplane_mode)' not in powerd_src or '"airplane toggle"' not in powerd_src:
|
||||
raise AssertionError("geminux-powerd.c must guard CONSYS resume on airplane_mode and support airplane toggle")
|
||||
if '"/sys/power/state", "freeze"' in trig_src:
|
||||
raise AssertionError("trigger_suspend must not fall back to s2idle freeze")
|
||||
|
||||
with open(os.path.join(APPS_DIR, "geminux-control.c"), "r", encoding="utf-8") as handle:
|
||||
ctrl_src = handle.read()
|
||||
|
||||
Reference in new issue
Block a user