distribution/packages/hardware/quirks/devices/Powkiddy RGB10 Max 3/030-suspend_mode

15 lines
288 B
Text
Raw Normal View History

2024-01-30 03:00:46 +00:00
#!/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