[PATCH] s3: fix the display time of resume for Timekeeping suspended string missing

Ivan Hu ivan.hu at canonical.com
Tue May 16 10:12:06 UTC 2023


Buglink: https://bugs.launchpad.net/fwts/+bug/2019727

Signed-off-by: Ivan Hu <ivan.hu at canonical.com>
---
 src/acpi/s3/s3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
2.34.1




More information about the fwts-devel mailing list