Use s2idle for sleep until deep is working.

This commit is contained in:
fewtarius 2024-03-02 15:36:26 +00:00
parent a103b5bf90
commit 1ee126a698
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,14 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
. /etc/profile.d/001-functions
MYSLEEPMODE=$(get_setting system.suspendmode)
if [ -z "${MYSLEEPMODE}" ]
then
/usr/bin/suspendmode mem
fi
echo s2idle >/sys/power/mem_sleep

View file