distribution/packages/hardware/quirks/devices/Anbernic RG353P/030-suspend_mode
2023-10-23 22:53:27 +00:00

14 lines
313 B
Bash
Executable file

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