distribution/packages/hardware/quirks/devices/Anbernic RG503/030-suspend_mode

15 lines
270 B
Text
Raw Normal View History

#!/bin/sh
2023-06-23 03:14:11 +00:00
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2022-present Fewtarius
2023-06-23 03:14:11 +00:00
. /etc/profile.d/001-functions
2023-06-23 03:14:11 +00:00
MYSLEEPMODE=$(get_setting system.suspendmode)
if [ -z "${MYSLEEPMODE}" ]
then
/usr/bin/setsuspendmode freeze
fi
echo s2idle >/sys/power/mem_sleep