From da4f7968933977b567ec9277568c30effbc9c642 Mon Sep 17 00:00:00 2001 From: liaou3 Date: Mon, 12 Aug 2024 10:10:59 +0800 Subject: [PATCH] Enter suspend via 'systemctl suspend' in suspend.sh --- providers/base/bin/suspend.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/base/bin/suspend.sh b/providers/base/bin/suspend.sh index aa2517896e..52df0212a4 100755 --- a/providers/base/bin/suspend.sh +++ b/providers/base/bin/suspend.sh @@ -10,6 +10,6 @@ if [ "$architecture" = "x86_64" ] || [ "$architecture" = "i386" ]; then checkbox-support-fwts_test -f none -s s3 --s3-device-check --s3-device-check-delay="${STRESS_S3_WAIT_DELAY:-45}" --s3-sleep-delay="${STRESS_S3_SLEEP_DELAY:-30}" rm /tmp/fwts_results.log else - rtcwake -v -d "${RTC_DEVICE_FILE:-rtc0}" -m mem -s "${STRESS_S3_SLEEP_DELAY:-30}" + rtcwake -v -d "${RTC_DEVICE_FILE:-/dev/rtc0}" -m no -s "${STRESS_S3_SLEEP_DELAY:-30}" && systemctl suspend || exit 1 fi