Message ID | 20230516101206.53913-1-ivan.hu@canonical.com |
---|---|
State | Accepted |
Headers | show |
Series | s3: fix the display time of resume for Timekeeping suspended string missing | expand |
diff --git a/src/acpi/s3/s3.c b/src/acpi/s3/s3.c index 9afae102..ba009426 100644 --- a/src/acpi/s3/s3.c +++ b/src/acpi/s3/s3.c @@ -510,7 +510,7 @@ static int s3_scan_times( s3_suspend_finish = ts; continue; } - if (strstr(txt, "Timekeeping suspended")) { + if (strstr(txt, "Timekeeping suspended") || strstr(txt, "resume from suspend-to-idle")) { s3_resume_start = ts; if (s3_suspend_finish < 0.0) s3_suspend_finish = previous_ts;
Buglink: https://bugs.launchpad.net/fwts/+bug/2019727 Signed-off-by: Ivan Hu <ivan.hu@canonical.com> --- src/acpi/s3/s3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)