distribution/packages/hardware/quirks/devices/Powkiddy RGB30/030-suspend_mode

15 lines
270 B
Text
Raw Normal View History

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