Move suspend mode back to device quirks as x55 does not need it.
This commit is contained in:
parent
f7aebd5188
commit
85f38f951f
5 changed files with 44 additions and 11 deletions
14
packages/hardware/quirks/devices/Anbernic RG353V/030-suspend_mode
Executable file
14
packages/hardware/quirks/devices/Anbernic RG353V/030-suspend_mode
Executable 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
|
||||
|
14
packages/hardware/quirks/devices/Anbernic RG503/030-suspend_mode
Executable file
14
packages/hardware/quirks/devices/Anbernic RG503/030-suspend_mode
Executable 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
|
||||
|
14
packages/hardware/quirks/devices/Powkiddy RK2023/030-suspend_mode
Executable file
14
packages/hardware/quirks/devices/Powkiddy RK2023/030-suspend_mode
Executable 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
|
||||
|
|
@ -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/*
|
||||
|
|
Loading…
Reference in a new issue