From 49527edaa9715bc693b68c083ac1f1cfbb6d22ab Mon Sep 17 00:00:00 2001 From: Colin Date: Mon, 1 Jan 2024 06:38:43 +0000 Subject: [PATCH] sxmo_suspend.sh: fix rtcwake to use sudo --- hosts/modules/gui/sxmo/hooks/sxmo_suspend.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/modules/gui/sxmo/hooks/sxmo_suspend.sh b/hosts/modules/gui/sxmo/hooks/sxmo_suspend.sh index 9ad27b91..2dcd8d6c 100755 --- a/hosts/modules/gui/sxmo/hooks/sxmo_suspend.sh +++ b/hosts/modules/gui/sxmo/hooks/sxmo_suspend.sh @@ -124,7 +124,7 @@ class Suspender: def suspend(self, duration: int, mode: str): logger.info(f"calling suspend for duration: {duration}") if mode == 'rtcwake': - self.executor.exec(['rtcwake', '-m', 'mem', '-s', str(duration)], check=False) + self.executor.exec(['rtcwake', '-m', 'mem', '-s', str(duration)], sudo=True, check=False) elif mode == 'sleep': time.sleep(duration) else: