Move suspend mode back to device quirks as x55 does not need it.

This commit is contained in:
fewtarius 2023-09-04 15:53:57 +00:00
parent f7aebd5188
commit 85f38f951f
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A
5 changed files with 44 additions and 11 deletions

View file

@ -0,0 +1,14 @@
#!/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

View file

@ -0,0 +1,14 @@
#!/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

View file

@ -0,0 +1,14 @@
#!/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

View file

@ -64,14 +64,5 @@ ln -sf /usr/share/locale /storage/.config/emulationstation/locale >>/var/log/con
### Add items below this line that are safe to remove after a period of time.
################################################################################
for COMPONENT in 001-deviceconfig \
99-jslisten \
999-export \
98-controller \
99-mixer \
do
if [ -e "/storage/.config/profile.d/${COMPONENT}" ]
then
rm -f /storage/.config/profile.d/${COMPONENT}
fi
done
### REMOVE AFTER THE UPDATE
rm -f /storage/.config/profile.d/*